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 trialJonathan Grieve
Treehouse Moderator 91,253 PointsCan I use SQLalchemy without using a Virtual Environment
I'm running into one roadblock after another. (I use Windows so that's probably why ;-) )
I have my env
folder. So I'm able to install and create a venv but I just can't activate it. To do so takes me out of (env) all together in my command line.
I also seem to be in a continuous loop with upgrading my pip version (pip version 21.1.1; however, version 21.1.2 is available.)
despite upgrading numerous times.
I often have this kind of baggage when working with package managers like this.
Is it possible to continue without doing all of this?
1 Answer
Chris Freeman
Treehouse Moderator 68,441 PointsHey Jonathan Grieve,
It’s certainly possible to run sqlalchemy outside of a virtual environment. Especially since sqlalchemy doesn’t know if it’s actually running in a venv or not.
One pip issue is being sure that you’re running the pip that’s inside the venv and not some other pip from the system level. One work around with pip issues is called it at the module level.
If you confirm python
is being run from the venv version, then try using python -m pip <module>
to install packages.
You can also try python -m pip install --upgrade pip
Hope this helps! Post back if you need more help. Good luck!!!
Jonathan Grieve
Treehouse Moderator 91,253 PointsJonathan Grieve
Treehouse Moderator 91,253 PointsThanks Chris,
I have confirmed I've been able at least follow the first lesson and create a model without a venv so that's been good. but I'm still no closer to getting into a venv so if I am I'll let you know. ☺