Import error with remote interpreter in pycharm
<p>I am trying to run my code in the server using ssh remote interpreter. </p>

<p>The connection and the deployment work but when I want to import libraries located in the server it gives an import error </p>

<blockquote>
  <p>ssh://nour@****.com:22/usr/bin/python -u</p>
  
  <p>/home/nour/myProject/main.py Traceback
  (most recent call last):   File
  "/home/nour/main.py", line 11,
  in 
      from clplibs.clp import ContinuousLearningPlatform as clp ImportError: No module named clplibs.clp</p>
  
  <p>Process finished with exit code 1</p>
</blockquote>

<p>I've found a solution, the environment variables (including python path) should be defined from pycharm: Run/Debug configurations-> Environment variables. Pycharm won't use bashrc paths.</p>

python ssh pycharm interpreter