PyCharm and external libraries

matplotlib, pycharm

Solution

I suggest to use Python virtual environment. It is really easy with PyCharm.

PyCharm > Preferences... > Project Interpreter > Python Interpreters

Click "Create Virtual Environment" and pick your base interpreter.

Click "Install" and install any packages you need. You can also add other repositories if the default ones do not contain required libraries. Another benefit is that you can see which libraries have newer version and can be updated.

Problem

I have started to use PyCharm IDE, but I was not able to determine how to manage external libraries there. For instance, PyCharm does not see `matplotlib`. In PyCharm's file manager, I clearly see the list of external libraries and there is no `matplotlib`. However, I have it installed and I know its location. How can I add this library to PyCharm environment?

Original source

Related problems