![](/img/trans.png)
[英]How do I configure a Python interpreter in IntelliJ IDEA with the PyCharm plugin?
[英]How can I detect if IntelliJ IDEA or PyCharm is installed and get the path to the exe on Windows by using Python?
我正在寻找一段代码Python代码,如果已安装,它们将为我提供IntelliJ IDEA或PyCharm exe的路径。
通常,我想对Eclipse进行检测,但是似乎Eclipse没有安装程序:(
安装路径存储在注册表中: HKEY_CURRENT_USER\\JetBrains\\IntelliJ IDEA\\<build number>\\(Default)
(如果需要PyCharm安装路径,请用PyCharm替换IntelliJ IDEA)
您可以使用_winreg模块来读取注册表并检索路径。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.