[英]Pycharm run the virtual environment with wrong python version
I moved to a new PC then cloned my project, already set interpreter but terminal keeps using an old version of Python which is the default on my Mac.我搬到了一台新电脑,然后克隆了我的项目,已经设置了解释器,但终端一直使用旧版本的 Python,这是我 Mac 上的默认设置。 How can I run newer (venv) Python version in the terminal?
如何在终端中运行更新的(venv)Python 版本?
Update image: Using virtualenv in the terminal (not built-in by PyCharm)更新图像:在终端中使用 virtualenv(不是 PyCharm 内置的)
@vicktor9450 I will outline steps required to ensure that when you type python
in your terminal it starts the shell with python3
@vicktor9450 我将概述所需的步骤,以确保当您在终端中键入
python
,它会使用python3
启动 shell
virtualenv venv --python=python3
virtualenv venv --python=python3
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.