How can I add interpreter to PyCharm?
31,508
Solution 1
Just read the PyCharm's Docs.
https://www.jetbrains.com/pycharm/quickstart/configuring_interpreter.html
Step by step:
- Go to
Settings
. - Go to the section
Project Interpreter
. - Click on the plus (+) button and select the
Local
option. - Search for the interpreter, in Linux it is used to be in
/usr/bin/python
or/usr/bin/pythonX.Y
where X and Y are the version. In Windows, it is used to be inC:\python
. - Last step save the settings and you have configured the interpreter.
PD: If you are on Linux python is installed and if you are using Windows, you can download from here: https://www.python.org/downloads/windows/
Solution 2
I think it's better to run this command
$ sudo apt-get install python3-distutils
![Admin](/assets/logo_square_200-5d0d61d6853298bd2a4fe063103715b4daf2819fc21225efa21dfb93e61952ea.png)
Author by
Admin
Updated on July 17, 2022Comments
-
Admin almost 2 years
When I try to run code in editor,it says that there is no available interpreters.Please,help.How can I solve the problem?