PyCharm 无法识别我的 Python 安装路径 [英] PyCharm doesn't recognize my Python installation path

查看:123
本文介绍了PyCharm 无法识别我的 Python 安装路径的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这与 this 相同,但对于 <强>Python.

This is the same question as this else but for Python.

问题是我已经构建了自己的 Python 解释器安装程序包(我已经添加了模块和附加功能),一旦安装,我就找不到在 PyCharm IDE,我找不到手动指定python解释器位置的选项.

The thing is that I've built my own installer package of Python interpreter (I've added modules and extras) and once installed I can't find the way to set the location of my custom Python installation dir in PyCharm IDE, I can't find any option to manually specify the location of python interpreter.

虽然我不知道是否存在该选项,但我正在考虑其他替代方案,如果 PyCharm IDE 从注册表值中获取原始 Python 路径,那么它应该足以设置位置,但我不知道pycharm是使用配置文件还是reg键来获取python位置,以及这个值在哪里修改,我需要帮助.

While I don't know if exist that option I'm thinking in other alternative, If maybe the PyCharm IDE takes the original Python path from a registry value then it should be sufficient for set the location, but I don't know if pycharm uses a config file or a reg key to get the python location and where is this value to modify it, I need help.

PS:我在 RubyMine IDE 上遇到了同样的问题.

PS: I'm having the same problem for RubyMine IDE.

推荐答案

对于 PyCharm,在 IDE 中转到 File -> <强>设置.在项目设置导航面板中,选择项目解释器,然后选择Python解释器,然后在右侧面板中,点击右上角的绿色加号 (+) 图标并选择 local.导航到要指定为解释器的 python 可执行文件.

For PyCharm, in the IDE go to File -> Settings. In the Project Settings navigation panel, select Project Interpreter and then Python Interpreters, then in the right panel, click on the green plus (+) icon on the top right and select local. Navigate to the python executable you would like to specify as your interpreter.

这篇关于PyCharm 无法识别我的 Python 安装路径的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆