是否可以强制virtualenv使用pypi提供的最新设置工具和pip?本质上,我在寻找--never-download
标志的相对。
目前,当我制作一个新的virtualenv时,它使用与virtualenv捆绑在一起的本地(旧)版本。
$ v.mk testvenv
New python executable in testvenv/bin/python
Installing setuptools............done.
Installing pip...............done.
$ pip show setuptools
---
Name: setuptools
Version: 0.6c11
Location: /Users/cwilson/.virtualenvs/testvenv/lib/python2.7/site-packages/setuptools-0.6c11-py2.7.egg
Requires:
$ pip search setuptools
[...]
setuptools - Easily download, build, install, upgrade, and
uninstall Python packages
INSTALLED: 0.6c11
LATEST: 0.7.2
[...]
我需要最新的setuptools库,而
--extra-search-dir
标志对我不起作用(尽管它显然已经修复)。然而,在不使用setuptools的情况下制作一个virtualenv,然后直接从PyPi安装,效果很好。 E、 g.要设置名为
test
的virtualenv:使用测试
显示正确的版本。
出于安全原因,它不受支持。
我也不能使用
--extra-search-dir
选项,因为它当前已损坏https://github.com/pypa/virtualenv/issues/327看起来唯一的选择就是等待virtualenv维护人员更新捆绑包?
安装virtualenv后,可以使用
pip install -U pip
升级pip。我相信您可以编写一个引导脚本来自动执行此步骤。
相关问题 更多 >
编程相关推荐