5

When I install packages with python 3 on ubuntu 16.04, they get installed to my local user ~/.local/lib/python3.5/site-packages. How do I force pip to install to the system-wide site packages?

I'm trying by using pip3 install <pkg>

Thanks.

This is NOT a duplicate of How to make my Python module available system wide on Linux? - because that is about creating your own module, not a a strange way that pip is working for a Pypi module. Not even close, actually, other than they both deal with modules.

Community
  • 1
  • 1
Marc
  • 3,259
  • 4
  • 30
  • 41
  • i guess you are looking for this: http://stackoverflow.com/questions/17236675/how-to-make-my-python-module-available-system-wide-on-linux – Shubham Namdeo Jan 30 '17 at 03:28
  • Possible duplicate of [How to make my Python module available system wide on Linux?](http://stackoverflow.com/questions/17236675/how-to-make-my-python-module-available-system-wide-on-linux) – Shubham Namdeo Jan 30 '17 at 03:30
  • @ShubhamNamdeo - nope. that's for creating your own modules. This is for a module from pip. – Marc Jan 30 '17 at 04:18
  • The Ubuntu people don't want you to do that, because the system-wide package set is normally managed by APT rather than Pip. Why do you want to do that, and why can't you use a virtualenv? – Kevin Jan 30 '17 at 04:28
  • @Kevin - mostly - no exp using virtual env on linux. – Marc Jan 30 '17 at 04:36
  • Some useful information missing from the question: what command are you running? – anthony sottile Jan 30 '17 at 04:47
  • If you want to install to the system you probably want `sudo pip3 install ...` instead of `pip3 install ...` – anthony sottile Jan 30 '17 at 05:00

0 Answers0