I am using a macbook pro 15 as local machine and I have a remote server running ubuntu 14.04
I want to use the remote intepreter to run all the computation but I want t
Sometimes you can have everything set up correctly (interpreter, deployment, Path mapping, etc) but PyCharm keeps trying to use your local path on the remote machine.
If this happens, try this 4 fixes:
File->Invalid Caches / Restart
...if the problem is still not fixed:
Preferences->Python Interpreter->Path Mappings
and check the path mappings of the interpreter. They should look more or less like this:...again, if the previous step didn't work:
Run->Edit Configurations...
and check if the path mappings are correct:ModuleNotFoundError
but the connection seems to work, go to Run->Edit Configurations...->Environment Variables
and add your project's root path to the PYTHONPATH
variable.