pycharm没有看到python3

pycharm没有看到python3

本文介绍了pycharm没有看到python3.7解释器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在Linux Mint 19 Tara Xfce上使用Pycharm Community 2018.1.4.

I'm using Pycharm Community 2018.1.4 on Linux Mint 19 Tara Xfce.

它与Python 3.5解释器一起很好地工作.我将Python 3.7安装为系统上的默认Python解释器.

It works well with Python 3.5 interpreter.I installed Python 3.7 to be the default Python interpreter on the system.

python -V命令返回Python 3.7.0b3我想在Pycharm中使用Python 3.7.

python -V command returns Python 3.7.0b3I would like to use Python 3.7 in Pycharm.

我尝试过:

which python

/usr/bin/python

which python3.7

/usr/local/bin/python3.7

当我进入File > Settings > ProjectInterpreter > Add时,没有/usr/local文件夹,并且/usr/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

我可以在终端中cd/usr/local/bin文件夹,但是Pycharm不能.我重新启动,卸载/重新安装了Pycharm,刷新了其内部浏览器,重新启动了我的PC.什么都没改变.

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.

我想念什么?

推荐答案

您需要将解释器添加到可用解释器列表中.

You will need to add the interpreter to the list of available interpreters.

使用which python查找解释器的路径,然后在设置">项目解释器">添加">系统解释器"窗口中,单击"..."按钮并添加该解释器. (以下屏幕截图来自macOS,但在Linux上应该相同.)

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

这篇关于pycharm没有看到python3.7解释器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-05 09:56