博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
virtualenv 更新_Virtualenv支持更新
阅读量:2518 次
发布时间:2019-05-11

本文共 2009 字,大约阅读时间需要 6 分钟。

virtualenv 更新

alternate text

This is you: I use virtualenv all the time and I love it!

这就是您:我一直都在使用virtualenv,我喜欢它!

This is you: “I use virtualenv all the time and I love it! But I hate having to manually upgrade setuptools within my virtualenvs because the ”.

这就是您:“我一直都在使用virtualenv,我喜欢它! 但是我讨厌不得不在我的virtualenvs中手动升级setuptools,因为 ”。

Actually this is me, but it may be you too. If this is you, you may be familiar with the following process. If not, you may want to be.

其实这是我,但也可能是您。 如果是您,则您可能熟悉以下过程。 如果没有,您可能想要成为。

Virtualenv和SetupTools (Virtualenv and setuptools)

When a virtualenv is created, virtualenv installs setuptools from a local distribution located in site-packages/virtualenv_support. If that setuptools is out of date, so is the setuptools in your new virtualenv. To avoid having to manually upgrade setuptools within newly created virtualenvs, you can do this:

创建virtualenv时,virtualenv从位于site-packages/virtualenv_support的本地发行版中安装setuptools。 如果该setuptools已过期,则新virtualenv中的setuptools也将过期。 为了避免在新创建的virtualenvs中手动升级setuptools,可以执行以下操作:

$ cd /usr/local/lib/python2.7/site-packages/virtualenv_support$ curl -O https://pypi.python.org/packages/source/s/setuptools/setuptools-3.3.zip$ cd /usr/local/lib/python2.7/site-packages/virtualenv_support$ curl -O https://pypi.python.org/packages/source/s/setuptools/setuptools-3.3.zip

Et voila!

瞧!

$ bin/pip show setuptools---Name: setuptoolsVersion: 3.3Location: /private/var/folders/1k/fmmlqcfn5jsbcqrqsw3q_slm0000gn/T/tmpE4vB1l/lib/python2.7/site-packagesRequires:$ bin/pip show setuptools---Name: setuptoolsVersion: 3.3Location: /private/var/folders/1k/fmmlqcfn5jsbcqrqsw3q_slm0000gn/T/tmpE4vB1l/lib/python2.7/site-packagesRequires:

If you are a Buildout user, this should save you endless frustration with Buildout attempting to upgrade Setuptools…

如果您是Buildout用户,这应该可以免除Buildout尝试升级Setuptools的烦恼...

attempting to upgrade Setuptools…

尝试升级Setuptools…

attempting to upgrade Setuptools…

尝试升级Setuptools…

attempting to upgrade Setuptools…

尝试升级Setuptools…

翻译自:

virtualenv 更新

转载地址:http://xnqwd.baihongyu.com/

你可能感兴趣的文章
ElasticSearch简要总览
查看>>
浏览器的工作原理
查看>>
2.4.6 计算机语言表示算法
查看>>
Android SDK简介-读书笔记(一)
查看>>
android 构建数据库SQLite
查看>>
单工、半双工和全双工的定义
查看>>
Hdu【线段树】基础题.cpp
查看>>
时钟系统
查看>>
BiTree
查看>>
5个基于HTML5的加载动画推荐
查看>>
水平权限漏洞的修复方案
查看>>
静态链接与动态链接的区别
查看>>
Android 关于悬浮窗权限的问题
查看>>
如何使用mysql
查看>>
增强一个对象的方法(继承、装饰者模式、动态代理)
查看>>
十一、多线程——8-线程池
查看>>
四、基础类库中的常用类——4-国际化与格式化
查看>>
Anders Hejlsberg访谈:Checked Exceptions的问题
查看>>
revit api 使用过滤器
查看>>
几日工作记录
查看>>