Add External Library to PyCharm 2022.1.4 (Professional Edition)

We built a series of python files that we want to share across multiple projects and stored them remotely as /ourpython/lib.

 

Using Settings > Python Interpreter > Wheel (symbol) > Show All > File (symbol) we added /ourpython/lib  (added by user).

How do I import that external library into pycharm so my code knows it is there and stops throwing errors that "unresolved reference".    The code works on the external server as we have export PYTHONPATH = :/ourpython/lib added.

 

2 comments
Comment actions Permalink

Do you have that library on your local machine?
If not, then there is no way for PyCharm to resolve it. Although using JetBrains Gateway may be a good solution as it allows working on projects fully remotely.

0
Comment actions Permalink

The files are in a project called python-lib which is loaded on all are computers working on the project.   

0

Please sign in to leave a comment.