Pip --user installs package to Default user directory on Windows 10 Pip --user installs package to Default user directory on Windows 10 python python

Pip --user installs package to Default user directory on Windows 10


You can try setting the install target with the --target option like so:

pip install --target=C:\Users\Autouser\Appdata\Roaming\Python\site-packages package_name

If that doesn't work, another option is to try using --install-option like this:

pip install --install-option="--prefix=$PREFIX_PATH" package_name

Finally, if all else fails, here's one more way to do it:

PYTHONUSERBASE=/path/to/install/to pip install --user

You can specify which python version to install the package for by using python2.x -m pip install ...

Hopefully one of these helps you! :)


Try running cmd as admin when installing


Unfortunately I had to fix the problem in production quickly, so I gave up and installed it without the --user option to c:/python27/... directory.I guess one of @DeltaMarine101 suggestions would help.