使用pip的python软件包的安装错误 [英] Installation error of python package using pip
问题描述
我试图安装一个名为python-phonenumbers的python模块 我收到此错误
I tried to install a python module called python-phonenumbers I got this error
sudo pip安装git + git://github.com/daviddrysdale/python-phonenumbers.git
sudo pip install git+git://github.com/daviddrysdale/python-phonenumbers.git
清理...命令/usr/bin/python -c"import setuptools; 文件 ='/tmp/pip-YQ6XJC-build/setup.py'; exec(compile(open( file ).read().replace('\ r \ n', '\ n'),文件,'exec'))安装--record /tmp/pip-s3GdMz-record/install-record.txt --single-version-externally-managed失败,在/tmp/pip-YQ6XJC-build中出现错误代码-9存储完整的登录名 /home/ubuntu/.pip/pip.log
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
我在此处附上了完整的日志 http://paste2.org/WZzCdz7Y
I attached the complete log here http://paste2.org/WZzCdz7Y
更新
我错误地输入了以下行
sudo pip install git://github.com/daviddrysdale/python-phonenumbers.git
代替
sudo pip install git+git://github.com/daviddrysdale/python-phonenumbers.git
推荐答案
这不是对最初的失败的回应,而是对自6.0版本以来从Google来的其他人(例如我)的回应.看起来这是由最新版本中的地理数据增加引起的内存错误,因此在安装时可用内存量有限的系统上将失败.该问题正在此处跟踪: https://github.com/daviddrysdale/python-phonenumbers
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. 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
这篇关于使用pip的python软件包的安装错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!