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

Youn Nam
Youn Nam
143 Points

Peewee installation error

I tried to install peewee by typing pip install peewee, but it is saying that sqlite3.h cannot be found.

Please help

C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\x86_amd64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -IC:\Users\youndukn\Anaconda3.6\include -IC:\Users\youndukn\Anaconda3.6\include "-IC:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.10240.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\8.1\include\shared" "-IC:\Program Files (x86)\Windows Kits\8.1\include\um" "-IC:\Program Files (x86)\Windows Kits\8.1\include\winrt" /Tcplayhouse_sqlite_ext.c /Fobuild\temp.win-amd64-3.6\Release\playhouse_sqlite_ext.obj _sqlite_ext.c playhouse_sqlite_ext.c(490): fatal error C1083: Cannot open include file: 'sqlite3.h': No such file or directory error: command 'C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\x86_amd64\cl.exe' failed with exit status 2

1 Answer

Jeff Muday
MOD
Jeff Muday
Treehouse Moderator 28,720 Points

The problem is you are using Anaconda's "pip" which does not work well for non-Anaconda libraries. Anaconda is great for numerical python programming (numpy, scipy, nltk, machine learning), but for web programming, I'd stick with standard python from python.org.

Also, it is HIGHLY ENCOURAGED to change your windows environmental variables to make sure Anaconda is NOT in your path... otherwise you can potentially call up the wrong pip or wrong python version.

Ultimately, you should look into mastering "virtualenv", this will save you a ton of problems where you can have multiple python environments customized to particular projects.