Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
423 views
in Technique[技术] by (71.8m points)

python - How can I add interpreter to PyCharm?

When I try to run code in editor,it says that there is no available interpreters.Please,help.How can I solve the problem?

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

Just read the PyCharm's Docs.

https://www.jetbrains.com/pycharm/quickstart/configuring_interpreter.html

Step by step:

  1. Go to Settings.
  2. Go to the section Project Interpreter .
  3. Click on the plus (+) button and select the Local option.
  4. 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 in C:python.
  5. 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/


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...