3

I've a project which I develop both in Windows and Linux. The IML file is a problem for me because the location of the Python interpreter. It is stored in the

<orderEntry type="jdk" jdkType="Python SDK" jdkName="...">
  • On Windows, it points to: C:\Python27\python.exe
  • On Linux, it points to: /usr/bin/python2.7

How can I square this circle? Can I simply not check-in the IML file?

Uri London
  • 10,631
  • 5
  • 51
  • 81
  • possible duplicate of [Can I easily share a PyCharm project across multiple operating systems?](http://stackoverflow.com/questions/14440025/can-i-easily-share-a-pycharm-project-across-multiple-operating-systems) – Piotr Dobrogost Jul 30 '14 at 20:51

1 Answers1

2

Interpreters paths are stored globally, in PyCharm preferences. But the Python interpreter selected for the project is stored in project by name. The full interpreter path is used as interpreter name by default (that is obviously different on different platforms). If you need to share your project files, you need to specify a different name for your interpreter. This can be done in "File | Settings | Project Interpreter | Interpreter Settings (Gear Icon) | More... | Edit"

See http://youtrack.jetbrains.com/issue/PY-13390#comment=27-759239

lena
  • 90,154
  • 11
  • 145
  • 150