我正在尝试使用 virtualenv 进行测试。不幸的是,我碰到了一堵墙,
当我尝试从内部 pypi 服务器 pip 安装我的应用程序时,它失败了。我认为这是因为 virtualenv 使用的是自己的 pip 而不是全局的。
我怎样才能让它使用全局点子?
这就是我正在做的事情:
virtualenv ENV
source ENV/bin/activate
pip install django <---- this works
pip install django-tyrell <---- this cant be found
这是输出
[localhost] run: pip install django-tyrell
[localhost] out: Downloading/unpacking django-tyrell
[localhost] out: Could not find any downloads that satisfy the requirement django-tyrell
[localhost] out: No distributions at all found for django-tyrell
[localhost] out: Storing complete log in /tmp/tmpGLJUzf
[localhost] out:
Fatal error: run() received nonzero return code 1 while executing!
Requested: pip install django-tyrell
Executed: /bin/bash -l -c "cd fabrics && source ENV/bin/activate && pip install django-tyrell"