简体   繁体   中英

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. I want remove all old version of Python without 3.8: 在此处输入图片说明

How remove from PyCharm old version of Python like: 3.7, 2.7, 3 etc.?

If you want to remove old Python versions (or virtualenvs), you should go to:

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.

In this way, python interpreter will be removed.

@giordano, thank you, but I still see old version: a) my view in project interpreters: 在此处输入图片说明

b) my view in add python interpreter 在此处输入图片说明

How delete old version python like 3.7 (red color), and python2 etc from point "b)"?

The interpreter paths in your original screenshot define detected interpreters. The ones that are not configured in PyCharm but found on your file system. 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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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