简体   繁体   English

使用pip安装python包的错误

[英]Installation error of python package using pip

I tried to install a python module called python-phonenumbers I got this error 我试图安装一个名为python-phonenumbers的python模块,我收到了这个错误

sudo pip install git+git://github.com/daviddrysdale/python-phonenumbers.git sudo pip install git + git://github.com/daviddrysdale/python-phonenumbers.git

Cleaning up... Command /usr/bin/python -c "import setuptools; file ='/tmp/pip-YQ6XJC-build/setup.py';exec(compile(open( file ).read().replace('\\r\\n', '\\n'), file , 'exec'))" install --record /tmp/pip-s3GdMz-record/install-record.txt --single-version-externally-managed failed with error code -9 in /tmp/pip-YQ6XJC-build Storing complete log in /home/ubuntu/.pip/pip.log 清理...命令/ usr / bin / python -c“import setuptools; file ='/ tmp / pip-YQ6XJC-build / setup.py'; exec(compile(open( file ).read()。replace( '\\ r \\ n','\\ n'), file ,'exec'))“install --record /tmp/pip-s3GdMz-record/install-record.txt --single-version-external-managed failed with / tmp / pip -YQ6XJC-build中的错误代码-9存储完整的日志/home/ubuntu/.pip/pip.log

I attached the complete log here http://paste2.org/WZzCdz7Y 我在这里附上了完整的日志http://paste2.org/WZzCdz7Y

update 更新

I mistakenly put the following line 我错误地把以下行

 sudo pip install git://github.com/daviddrysdale/python-phonenumbers.git

instead of 代替

sudo pip install git+git://github.com/daviddrysdale/python-phonenumbers.git

This is not in response to the original failure, but to others who have come in from Google (like I have) since the 6.0 release. 这不是对原始失败的回应,而是对自6.0版本以来从谷歌进入的其他人(如我所知)的回应。 It looks like this a memory bug introduced by an increase in the geodata in the latest release, and so will fail on systems with a limited amount of memory available at the time of install. 看起来这是由最新版本中地理数据增加引入的内存错误,因此在安装时可用内存有限的系统上会失败。 The issue is being tracked here: https://github.com/daviddrysdale/python-phonenumbers 这个问题正在跟踪: https//github.com/daviddrysdale/python-phonenumbers

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM