[英]I have two python 3 versions on my Mac. How do I use the new version and/remove the old one?
I have Python 3.6.5 and Python 3.7.4 installed.我安装了 Python 3.6.5 和 Python 3.7.4。
python --version
gives me 3.6, while给我 3.6,而
python3 --version
gives me 3.7.给我 3.7。 Running code in PyCharm indicates that it is still using 3.6.
在 PyCharm 中运行代码表明它仍在使用 3.6。 How do I update it to start using 3.7, and/or remove 3.6?
如何更新它以开始使用 3.7,和/或删除 3.6?
I've looked around SO and other forums, but so far nothing seemed to be relevant to this specific issue.我环顾了 SO 和其他论坛,但到目前为止,似乎没有与此特定问题相关的内容。
If you want to keep your other python versions and want PyCharm to run your code in the 3.7 version you can simply go into your PyCharm preference and set the project interpreter to 3.7.如果您想保留其他 Python 版本并希望 PyCharm 在 3.7 版本中运行您的代码,您只需进入 PyCharm 首选项并将项目解释器设置为 3.7。
Here is a stack overflow question showing you how这是一个堆栈溢出问题,向您展示如何
If you don't see the python interpreter there you can add it manually before setting it in the preferences.如果您在那里没有看到 python 解释器,您可以在首选项中设置它之前手动添加它。 Here is a doc page that might help
这是一个可能有帮助的文档页面
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.