Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Python Django Basics What a View! Running the Server

why i get sqlite3 missing error (virual env)? how to fix it

i get this error

django.core.exceptions.ImproperlyConfigured: Error loading either pysqlite2 or sqlite3 modules (tried in that order): No module named '_sqlite3'

pls help to fix this issue

Hi there, just had the same issue. I googled and go this answer:

When you setup your virtual environment you need to give the environment access to the site packages with the following command

virtualenv --system-site-packages your virtual environment name

1 Answer

python in localhost uses pip for the installation of whether django or virtual environment. you can use this command in your system32 file if windows:-- use Cmd C:\WINDOWS\system32> pip install virtualenvwrapper-win

it will do the job