3 ms·
What do you mean "python install[s] globally and only globally"? That's not true. You can instruct pip to install to any place you want.
by erfgh 6y ago
What do you mean "python install[s] globally and only globally"? That's not true. You can instruct pip to install to any place you want.
- rk06 6y agothe thing is python cli has no concept of locally scoped libraries. you can install libs wherever you want, but all python.exe will refer to the same global location. this is why you need to activate virtualenv every time you open a new command line, so that it can set ENV variables for the current session and force python to use the locally scoped folders. While in C# et all. the compiler knows to check files locally. and you don't need to activate (or deactivate) environment at all.
- erfgh 6y agoYou don't need a virtualenv. You can simply launch python with the PYTHONPATH environment variable (there are also other ways).