My Virtual Environment is using my System Python rather than my Venv's Python

。_饼干妹妹 提交于 2021-02-11 15:21:38

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!