etc/pip.conf inside conda environment

0 views
Skip to first unread message

tomasz.droz...@gmail.com

unread,
Oct 23, 2017, 5:10:19 AM10/23/17
to conda - Public
Some time ago (like 3 weeks) I have created conda environment.
And inside that environment I added:

environment1\
   
...
    etc
\
       pip
.conf

So now when I activate this environment1, pip see this file:

>>> from pip import create_main_parser
>>> parser = create_main_parser()
>>> print(parser.files)
['/etc/xdg/pip/pip.conf', '/etc/pip.conf', '/home/tomek/.pip/pip.conf', '/home/tomek/.config/pip/pip.conf', '/conda_envs/environment1/etc/pip.conf']
>>> print(parser.config.read(parser.files))
['/conda_envs/environment1/etc/pip.conf']


But when I now create environment2,
and add etc/pip.conf to my environemnt2 as for environment1,
I have problem because (after activating environment2 of course) pip does not see this config file:

>>> from pip import create_main_parser
>>> parser = create_main_parser()
>>> print(parser.files)
['/etc/xdg/pip/pip.conf', '/etc/pip.conf', '/home/tomek/.pip/pip.conf', '/home/tomek/.config/pip/pip.conf']
>>> print(parser.config.read(parser.files))
[]

Any idea why, what to check, etc. ???
Reply all
Reply to author
Forward
0 new messages