28

I have just gotten in to using PyCharm. I spend half my time on a Windows machine and the other half on Linux. I have been using Dropbox to sync my projects between the two (in addition to version control). This mostly works fine, except each time I switch operating systems, I have to reset the PyCharm project interpreter, because the paths for the two operating systems are different.

Is my only option to have two different working copies, one for each operating system (i.e. stop using Dropbox for PyCharm projects)? Or, is there some way to get PyCharm to use multiple Python interpreters and fall-back on one that works, so that I can store both the Windows and the Linux configuration in a single PyCharm project file and have it work automatically?

1 Answer 1

21

Use the "Edit" button in Settings | Python Interpreters on both machines to rename the interpreter to something that doesn't include the full path ("Python 2.7" for example). The project file stores the name of the interpreter, not the path, so this will allow the project file to reference the same interpreter on both machines.

Sign up to request clarification or add additional context in comments.

1 Comment

I'm new to Pycharm (using 4.0.3) and it took me a while to find the edit setting. The edit button is in Settings - Project interpreter - click on the wheel next to the interpreter path - click more - select interpreter - click on the pencil to rename and redefine the path.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.