eight04 / vpip

A CLI which aims to provide an npm-like experience when installing Python packages.
MIT License
4 stars 1 forks source link

pip will install packages to user site by default #4

Closed eight04 closed 2 years ago

eight04 commented 5 years ago

https://github.com/pypa/pip/issues/1668 https://github.com/pypa/pip/pull/7002 Investigate how does it work with venv.

takluyver commented 5 years ago

It should still work as before with a venv - it will only do a user install if it doesn't have write access to the site-packages directory where a normal install would go. And only if site.ENABLE_USER_SITE is true as well.

eight04 commented 4 years ago

It seems that the Python installer doesn't add user-site to %PATH% if you selected Install for all users (which installs python to program files).

As the result, even if the link success, the user still can't access the CLI.

Windows 10 64bit Python 3.8.1 32bit