问题
I am following a tutorial on virtual environments (for Python) from the
Coding Train (Here: https://www.youtube.com/watch?v=nnhjvHYRsmM). As I follow the tutorial, I see that, when which python
is typed (in Terminal), the output should be the venv's Python in which it had installed.
However, my system, for whatever reason this may be, decided to use it's own installed version of Python, instead. This means that all the dependencies (/modules) are screwed up and that I can't simply type out python
to run my Python interpreter, overall defeating the purpose of a virtual environment.
How and why could/would this happen? Thanks.
Note: This is a follow-up post to a larger, underlying problem (Why aren't my imports for Python working in VSCode? ). I am using a MacBook Air (13-Inch, Early 2014) running macOS Catalina (Version 10.15.3). Again, thank you for any answers.
来源:https://stackoverflow.com/questions/62857559/my-virtual-environment-is-using-my-system-python-rather-than-my-venvs-python