简体   繁体   English

如何从pycharm中删除旧版本的python?

[英]How to remove old version python from pycharm?

I have a problem with old version Python on my MacBook before I started to use Docker.在我开始使用 Docker 之前,我的 MacBook 上的旧版本 Python 有问题。 I want remove all old version of Python without 3.8:我想删除所有没有 3.8 的旧版本 Python: 在此处输入图片说明

How remove from PyCharm old version of Python like: 3.7, 2.7, 3 etc.?如何从 PyCharm 旧版本的 Python 中删除,例如:3.7、2.7、3 等?

If you want to remove old Python versions (or virtualenvs), you should go to:如果你想删除旧的 Python 版本(或 virtualenvs),你应该去:

File -> Settings -> Project -> Project interpreter

Then, click on the gear icon on the top-right corner of the window and click on "show all".然后,单击窗口右上角的齿轮图标并单击“全部显示”。
Choose the Python Interpreter and remove it clicking the minus icon on the right side of the window.选择 Python 解释器并单击窗口右侧的减号图标将其删除。

In this way, python interpreter will be removed.这样,python解释器将被删除。

@giordano, thank you, but I still see old version: a) my view in project interpreters: @giordano,谢谢,但我仍然看到旧版本:a)我在项目解释器中的观点: 在此处输入图片说明

b) my view in add python interpreter b) 我在添加 python 解释器中的观点在此处输入图片说明

How delete old version python like 3.7 (red color), and python2 etc from point "b)"?如何从“b)”点删除旧版本的python,如3.7(红色)和python2等?

The interpreter paths in your original screenshot define detected interpreters.原始屏幕截图中的解释器路径定义了检测到的解释器。 The ones that are not configured in PyCharm but found on your file system.未在 PyCharm 中配置但在您的文件系统中找到的那些。 They have no name and their icons are a bit pale.他们没有名字,他们的图标有点苍白。

Interpreter path on the first position could be an interpreter that was used before for creating a virtual environment.第一个位置的解释器路径可能是之前用于创建虚拟环境的解释器。 This settings could be overwritten by creating new virtual environment with another base interpreter.可以通过使用另一个基本解释器创建新的虚拟环境来覆盖此设置。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM