[英]How do I setup the python interpreter in pycharm for a cross-platform project?
I have a cross-platform python project (it's a whole bunch of scripts) that I run (and develop) on Windows as well as Linux (Redhat and Ubuntu). 我有一个跨平台的python项目(一堆脚本),我在Windows和Linux(Redhat和Ubuntu)上运行(并开发)。 Everything works fine except the fact that I have to go and "Configure Python Interpreter" everytime I open the project in a different operating system. 一切正常,除了每次我在不同的操作系统中打开项目时都必须去“配置Python解释器”这一事实。
My python executable locations for the Windows and Linux systems are something like: For windows: c:/Anaconda/python.exe For linux: /home/username/anaconda/python 我在Windows和Linux系统上的python可执行文件位置类似于:对于Windows:c:/Anaconda/python.exe对于Linux:/ home / username / anaconda / python
Is there a way that I can make Pycharm point to the right Python Interpreter based on the Operating system that is opened in ? 有没有一种方法可以根据在中打开的操作系统使Pycharm指向正确的Python解释器?
实际上,我对此很感兴趣 ……有人已经在这里回答了这个问题: 在多个操作系统(不同的解释器路径)之间共享一个PyCharm项目。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.