为什么在我启动 Pycharm 时弹出 python 安装程序,而我的 python 解释器在哪里?
Why is python setup popping up when I start Pycharm and where is my python interpreter?
当我启动 Pycharm 时,会弹出这个 python 设置菜单。
Python 3.7.4 甚至不是我使用的版本。其他一切正常,我可以关闭它,但这很烦人。
有一个same question,答案是
You appear to be using the installer .exe as if it were the Python interpreter. Install Python to somewhere first, then use the python.exe in the bin directory inside that.
但是我找不到我的 bin 目录在哪里。我的 Python37-32 文件夹看起来是这样的。
如何找到我的 python 口译员?
根据official python documentation。
The Python interpreter is usually installed as
/usr/local/bin/python3.8 on those machines where it is available;
putting /usr/local/bin in your Unix shell’s search path makes it
possible to start it by typing the command:
由于您在这里使用 Windows,因此您已经位于 python 解释器所在的位置。所以别再看了。
看截图,我很担心你是否安装正确python。
如果您没有 select 的复选框,请将 Python 3.7 添加到 PATH,向导预计你手动做这就是错误的原因。
我会卸载并重新安装 Python,这次 确保选中该框 。我相信您的错误消息应该会消失。
或者,如果您不打算卸载。根据 python 文档 here,您可以将 python 变量设置为 PATH
变量并尝试。
打开一些项目 -> 文件 -> 设置 -> 项目:... -> 项目解释器 -> 全部显示 ... 查看添加到 PyCharm.[=15 的可用解释器列表=]
从新打开的列表中找到并删除指向 Python distributive 的解释器。
在过去的某个时候,您在 PyCharm 中添加了 Python 安装程序作为项目解释器,所以现在当 IDE 尝试将此 exe
用于 运行 改为触发一些后台任务(例如获取 sys.path
)安装向导。
更正 python.exe
指向 PyCharm 就在你的屏幕截图上
当我启动 Pycharm 时,会弹出这个 python 设置菜单。
Python 3.7.4 甚至不是我使用的版本。其他一切正常,我可以关闭它,但这很烦人。 有一个same question,答案是
You appear to be using the installer .exe as if it were the Python interpreter. Install Python to somewhere first, then use the python.exe in the bin directory inside that.
但是我找不到我的 bin 目录在哪里。我的 Python37-32 文件夹看起来是这样的。
如何找到我的 python 口译员?
根据official python documentation。
The Python interpreter is usually installed as /usr/local/bin/python3.8 on those machines where it is available; putting /usr/local/bin in your Unix shell’s search path makes it possible to start it by typing the command:
由于您在这里使用 Windows,因此您已经位于 python 解释器所在的位置。所以别再看了。
看截图,我很担心你是否安装正确python。
如果您没有 select 的复选框,请将 Python 3.7 添加到 PATH,向导预计你手动做这就是错误的原因。
我会卸载并重新安装 Python,这次 确保选中该框 。我相信您的错误消息应该会消失。
或者,如果您不打算卸载。根据 python 文档 here,您可以将 python 变量设置为 PATH
变量并尝试。
打开一些项目 -> 文件 -> 设置 -> 项目:... -> 项目解释器 -> 全部显示 ... 查看添加到 PyCharm.[=15 的可用解释器列表=]
从新打开的列表中找到并删除指向 Python distributive 的解释器。
在过去的某个时候,您在 PyCharm 中添加了 Python 安装程序作为项目解释器,所以现在当 IDE 尝试将此 exe
用于 运行 改为触发一些后台任务(例如获取 sys.path
)安装向导。
更正 python.exe
指向 PyCharm 就在你的屏幕截图上