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 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.)

e4633fccea6c326cc6a6e40bee6e81e3.png

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值