Re: pip --user by default

2018-01-15 Thread Abdur-Rahmaan Janhangeer
another thing which amazed me with pip is that you can write library1 == 1.2.7 library2 == 3.6.1 in requirements.txt and pip install requirements.txt will install those libs On 13 Jan 2018 17:16, "Thomas Jollans" wrote: > Hi, > > I recently discovered the wonders of pip.conf: if I create a fi

Re: pip --user by default

2018-01-15 Thread Skip Montanaro
> I just tried that and it turns out that that installs the package into > the main anaconda/miniconda installation rather than the conda env. > Definitely not what you want. Yes, installing in the root environment (as it's called) is generally a bad idea. I use Conda at work, in a shared sort of

Re: pip --user by default

2018-01-15 Thread Thomas Jollans
On 2018-01-15 19:46, Skip Montanaro wrote: >>> Inside of a virtualenv, what's the difference between a --user install >>> and a system one? >>> >> >> It errors out: >> >> % pip install --user urllib3 >> Can not perform a '--user' install. User site-packages are not visible >> in this virtualenv. >

Re: pip --user by default

2018-01-15 Thread Skip Montanaro
>> Inside of a virtualenv, what's the difference between a --user install >> and a system one? >> > > It errors out: > > % pip install --user urllib3 > Can not perform a '--user' install. User site-packages are not visible > in this virtualenv. I was able to 'pip install --user ...' a package yest

Re: pip --user by default

2018-01-15 Thread Thomas Jollans
On 2018-01-15 18:33, Rob Gaddi wrote: > > Inside of a virtualenv, what's the difference between a --user install > and a system one? > It errors out: % pip install --user urllib3 Can not perform a '--user' install. User site-packages are not visible in this virtualenv. -- https://mail.pyth

Re: pip --user by default

2018-01-15 Thread Rob Gaddi
On 01/13/2018 04:54 AM, Thomas Jollans wrote: Hi, I recently discovered the wonders of pip.conf: if I create a file ~/.config/pip/pip.conf* with: [install] user = true then pip will install to the --user site-packages by default, rather than trying to install packages into system directories.

pip --user by default

2018-01-13 Thread Thomas Jollans
Hi, I recently discovered the wonders of pip.conf: if I create a file ~/.config/pip/pip.conf* with: [install] user = true then pip will install to the --user site-packages by default, rather than trying to install packages into system directories. The trouble is that this fails when you also us