title: No module named sqlite
body: <p>i am a beginner i need to create a python virtual_environment for installing Django. I am using the following steps for installing python and virtualenv </p>
  
  <pre><code>cd /usr/src/
  wget http://www.python.org/ftp/python/3.5.1./Python-3.5.1.tgz
  tar zxf Python-3.5.1.tgz
  cd python-3.5.1
  mkdir /usr/local/python-3.5
  ./configure --prefix=/usr/local/python'.$python.' --with-threads --enable-shared --with-zlib=/usr/include &amp;&amp; make &amp;&amp; make altinstall
  echo "/usr/local/python3.5/lib" &gt; python3.5.conf
  mv python3.5.conf /etc/ld.so.conf.d/python3.5.conf
  /sbin/ldconfig
  ln -sfn /usr/local/python3.5/bin/python3.5 /usr/bin/python3.5
  wget https://pypi.python.org/packages/source/s/setuptools/setuptools-11.3.1.tar.gz
  tar xzf setuptools-11.3.1.tar.gz
  cd setuptools-11.3.1
  /usr/local/python3.5/bin/python3.5 setup.py install
  /usr/local/python3.5/bin/easy_install-3.5 pip
  ln -sfn /usr/local/python3.5/bin/pip3.5 /usr/bin/pip3.5
  /usr/local/python3.5/bin/pip3.5 install virtualenv
  </code></pre>
  
  <p>then i am created a virtualenv based on this,
  and enter into python shell and use </p>
  
  <pre><code>import sqlite
  </code></pre>
  
  <p>i got following error</p>
  
  <pre><code>Traceback (most recent call last):
    File "&lt;stdin&gt;", line 1, in &lt;module&gt;
  ImportError: No module named 'sqlite'
  </code></pre>
  
  <p>And i tried to run a django project installed in the virtalenv i got following errors.</p>
  
  <pre><code>raise ImproperlyConfigured("Error loading either pysqlite2 or sqlite3 modules (tried in that order): %s" % exc)
  django.core.exceptions.ImproperlyConfigured: Error loading either pysqlite2 or sqlite3 modules (tried in that order): No module named '_sqlite3'
  </code></pre>
  
  <p>I am using CentOS release 6.8 (Final).</p>