0

I have been working on a project that required me to install several python modules. When using the pip command, it has installed them to

C:\Users\username \AppData\Roaming\Python\Python37\site-packages

on the desktop I have remoted into. But if someone else remotes into this desktop they are unable to access these modules I believe this is because they are not installed under the global directory

C:\Program Files (x86)\Python37\Lib\site-packages

How do I install via pip to this global directory?

mkrieger1
  • 14,486
  • 4
  • 43
  • 54
  • 1
    Does this answer your question? [How do I install a pip package globally instead of locally?](https://stackoverflow.com/questions/36936212/how-do-i-install-a-pip-package-globally-instead-of-locally) – mkrieger1 Aug 11 '21 at 17:04
  • What pip command did you use exactly? – mkrieger1 Aug 11 '21 at 17:12
  • 1
    All you need to do is make sure that you use the `pip` belonging to the all-users Python, either by manipulating the PATH environment variable or explicitly specifying the path to pip. It's the same principle as in @uinstinct 's answer, except you're choosing between two ordinary installations instead of an installation vs. a venv. – Karl Knechtel Aug 11 '21 at 17:14
  • I am running this on windows, I don't think the sudo option works for me that is posted in that article. Do you need my version of pip? I am just running "pip install " from the cmd prompt – user14838970 Aug 12 '21 at 01:12
  • Adding on to this, when I do an Install I get the following message: "Defaulting to user installation because normal site-packages is not writeable". My python version is 3.9.5 – user14838970 Aug 13 '21 at 17:55

0 Answers0