Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Adding external libraries in PyCharm Professional 4

I'm trying to add external libraries to my project, but there seems no way to do so in PyCharm 4 (Professional). I found several similar questions with accepted answers, however those seem only work on older PyCharm versions.

This is one example: PyCharm and external libraries

Does anyone know how to add paths for external Python packages and modules in PyCharm 4 Professional?

like image 956
tamasgal Avatar asked Feb 02 '15 07:02

tamasgal


1 Answers

With the latest PyCharm version (2018.1) under File -> Default Settings -> Project Interpreter you can select which interpreter to use (OS default or any other distribution you may have manually installed).

The box in the middle lists all the packages currently installed, while the + button at the bottom allow to install packages from public repositories.

If you want to add custom packages you have to manually specify the path:

select "Show All..."

Select the interpreter and click on "Show paths for the selected interpreter"

enter image description here

Add the path of the new module

enter image description here

like image 158
Cavaz Avatar answered Oct 05 '22 20:10

Cavaz