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 trialTinotenda Mangarai
3,828 PointsMySql not working
When I tried to run the code in the video, I am getting this error. Some help please
Traceback (most recent call last): File "C:/Users/user/AppData/Local/Programs/Python/Python37-32/students.py", line 2, in <module> from peewee import * ModuleNotFoundError: No module named 'peewee'
2 Answers
Jeff Muday
Treehouse Moderator 28,722 PointsDid you receive any errors when you installed Peewee? I have multiple versions of Python and many virtual environments. It is easy to get these confused. You can look on your hard drive for peewee.py. I don't know where you installed Python or what operating system you are using, so I can't give you an exact location of where to look.
An alternative to installing with Pip is to install Peewee manually. I believe you could just download peewee.py from the github repository and put it in the same directory as your source code.
https://github.com/coleifer/peewee
You could copy peewee.py directly from here:
https://raw.githubusercontent.com/coleifer/peewee/master/peewee.py
Jeff Muday
Treehouse Moderator 28,722 PointsIt looks like you may not have installed the Peewee library.
It should be installed in Treehouse Workspaces. But if you are using your own computer you will need to go to the command line and install it.
Typically--
pip install peewee
Here is the install documentation link below:
https://docs.peewee-orm.com/en/unstable-2.0/peewee/installation.html
Tinotenda Mangarai
3,828 PointsI installed the pee wee but i am still getting the same error.
Tinotenda Mangarai
3,828 PointsTinotenda Mangarai
3,828 PointsI have Python 3.7 and I am using Windows 10.