etc/pip.conf inside conda environment

瀏覽次數:0 次
跳到第一則未讀訊息

tomasz.droz...@gmail.com

未讀,
2017年10月23日 清晨5:10:192017/10/23
收件者: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. ???
回覆所有人
回覆作者
轉寄
0 則新訊息