python刚下没有解释器,pycharm没有看到python3.7解释器
I'm using Pycharm Community 2018.1.4 on Linux Mint 19 Tara Xfce.It works well with Python 3.5 interpreter.I installed Python 3.7 to be the default Python interpreter on the system.python -V command re
I'm using Pycharm Community 2018.1.4 on Linux Mint 19 Tara Xfce.
It works well with Python 3.5 interpreter.
I installed Python 3.7 to be the default Python interpreter on the system.
python -V command returns Python 3.7.0b3
I would like to use Python 3.7 in Pycharm.
I've tried :
which python
/usr/bin/python
which python3.7
/usr/local/bin/python3.7
When I go to File > Settings > Project and Interpreter > Add and there is no /usr/local folder and there is no python3.7 in /usr/bin
I can cd to /usr/local/bin folder in the terminal, but Pycharm just can't.
I restarted, uninstalled/reinstalled Pycharm, refreshed its inner browser, restarted my pc. Nothing changed.
What am I missing?
解决方案
You will need to add the interpreter to the list of available interpreters.
Use which python to find out the path of the interpreter, then in the Settings > Project Interpreter > Add > System Interpreter window hit the "..." button and add that interpreter. (The screenshot below is from macOS, but it should be the same on Linux.)

魔乐社区(Modelers.cn) 是一个中立、公益的人工智能社区,提供人工智能工具、模型、数据的托管、展示与应用协同服务,为人工智能开发及爱好者搭建开放的学习交流平台。社区通过理事会方式运作,由全产业链共同建设、共同运营、共同享有,推动国产AI生态繁荣发展。
更多推荐
所有评论(0)