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 trialAlexander Cordes
Courses Plus Student 12,628 PointsCan't import sqlachemy in REPL
So i'm in my venv and I installed sqlalchemy. I can import it in my models.py file but not in the REPL even though it shows up when I enter pip list. What am I missing?
3 Answers
Chris Freeman
Treehouse Moderator 68,441 PointsIs the powershell not honoring the venv?
Perhaps this thread can help: https://stackoverflow.com/questions/1365081/virtualenv-in-powershell
Alexander Cordes
Courses Plus Student 12,628 PointsI switched terminal from powershell to cmd and that seems to work. Still doesn't work in powershell. Also, even though it gave me no errors importing it into my file, when I ran the .py file in powershell it said module not found.
Alexander Cordes
Courses Plus Student 12,628 PointsI assume by honoring you mean that the name of the venv shows up in front of the path in the terminal? It does. I'll check out the link and use cmd for now because that works fine. Thanks for the help.
Chris Freeman
Treehouse Moderator 68,441 PointsChris Freeman
Treehouse Moderator 68,441 PointsPerhaps
pip
generating the list is not the same as the pip in the venv. Trypython -m pip freeze
to see if things differ.python --version
both inside and outside the venv to see if there's difference