Installation error of python package using pip

徘徊边缘 提交于 2019-12-07 06:24:21

问题


I tried to install a python module called python-phonenumbers I got this error

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

I attached the complete log here 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

回答1:


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



来源:https://stackoverflow.com/questions/19632714/installation-error-of-python-package-using-pip

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!