Package install local, even though setting not selected

Hi,

 

I'm adding / installing some packages through PyCharm, as outlined here,

https://www.jetbrains.com/help/pycharm/installing-uninstalling-and-upgrading-packages.html

 

What's odd ... I am not selecting "Install to user's site packages directory" ... but the packages still seem to be going there. Perhaps because I'm not running PyCharm as root, so it can't install to the global directory? But in that case, shouldn't this check-box be auto-enabled, and the option to uncheck it disabled?

 

Thanks!

0
4 comments

When you install packages from PyCharm, it simply runs `pip install <package_name>` in the background. So, I suggest to open system terminal, and try `python -m pip install <package_name>` there for the same python interpreter. 

If the behavior is different in this case, this may be an IDE-related issue.

0

Hi,

I think the actual install is correct - the same as the shell. But the IDE is not indicating that the install is user / local, not global ... so just correct this in the IDE?

Thanks!

0

Well, if the checkbox to "Install to user's site packages directory" is disabled, it should install to global, but the python's packaging tool is installing it to user's site-packages for whatever reason, I don't think we can detect/control this from IDE

0

OK, NP - not a biggie, just a bit confusing. Or, perhaps check the package info (e.g. pip3 show package)?

 

Thanks!

0

Please sign in to leave a comment.