Installing Python Packages in PyCharm

In PyCharm, open the Preferences/Settings window, then go to Project > Project Interpreter. You should see a screen that looks like this:

The project interpreter dialog

On the bottom, click on the plus (+) sign, then search for your Python package. For this set of instructions, we will use the networkx package. The description should read "Python package for creating and manipulating graphs and networks".

The package selection dialog

Click "Install Package"; once it says "Package 'networkx' installed successfully", close both windows.