[英]Error when running 'pip install -r requirements.txt --upgrade'
When i run following command in my Django project: 当我在Django项目中运行以下命令时:
pip install -r requirements.txt --upgrade pip install -r requirements.txt-升级
I get following error: 我收到以下错误:
Detected a distutils installed project ('argparse') which we cannot uninstall. 检测到我们无法卸载的distutils已安装项目('argparse')。 The metadata provided by distutils does not contain a list of files which have been installed, so pip does not know which files to uninstall. distutils提供的元数据不包含已安装文件的列表,因此pip不知道要卸载哪些文件。
My requirements.txt file is as follow: 我的requirements.txt文件如下:
Django==1.8.1
MySQL-python==1.2.5
pycrypto==2.6.1
Pillow==2.4.0
simplejson==2.3.2
uWSGI==2.0.8
pyBarcode==0.7
python-dateutil==2.4.0
xlwt==0.7.5
xhtml2pdf==0.0.6
reportlab==3.1.8
pymssql==2.0.1
boto
raven==5.1.1
djangorestframework==3.2.2
djangorestframework-jwt
django-model-utils==2.3.1
django-rest-swagger==0.3.3
django-session-security
pytz==2014.4
testtools
extras
testscenarios
django-ipware
My pip version is pip 8.0.0 and I am using ubuntu. 我的点子版本是点子8.0.0,我正在使用ubuntu。 Can any one help to resolve issue? 任何人都可以帮助解决问题吗?
这听起来很像是您击中https://github.com/pypa/pip/issues/3384-临时解决方案是将pip <8
If you're using a virtualenv, this shouldn't happen,if it does, then here is a similar question to your problem. 如果您使用的是virtualenv,则不应该这样做,如果确实如此,那么这与您的问题类似。
OS X Uninstall a distutils installed project OS X卸载distutils已安装项目
If you do remove the argparse package, it can be installed again using pip. 如果确实删除了argparse软件包,则可以使用pip再次安装它。
Don't have enough reputation to write this as a comment yet. 尚无足够声誉,无法将此作为评论撰写。 :( :(
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.