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
Jesse Kroon
1,741 PointsPython - Opening a .py file which uses "import peewee" on a pc that doesn't have peewee installed
Hello everyone,
For a school assignment I need to make a rankinglist. I want to make use of peewee and sqlite database to store the data. For it to get graded I need to upload the .py file. However, if my assessor doesn't have peewee installed on his pc, how will he/she be able to test if the program works? Is it possible to "add" the module in some way so that the .py file can still import peewee?
Hope the question makes sense!
2 Answers
Stuart McIntosh
Python Web Development Techdegree Graduate 22,874 PointsYou will have to look into packaging and create a requirements.txt file via a pip freeze command.
Here is a good resource : https://python-packaging.readthedocs.io/en/latest/
Jesse Kroon
1,741 PointsI've read it through and seems a bit advanced for me still. Maybe I should try and get the assessor to just pip install peewee? I know they have Python installed, so that shouldn't be a problem.