use*_*381 5 python django pip python-module python-2.7
我试图安装一个名为python-phonenumbers的python模块,我收到了这个错误
sudo pip install git + git://github.com/daviddrysdale/python-phonenumbers.git
清理...命令/ 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
我在这里附上了完整的日志 http://paste2.org/WZzCdz7Y
更新
我错误地把以下行
sudo pip install git://github.com/daviddrysdale/python-phonenumbers.git
Run Code Online (Sandbox Code Playgroud)
代替
sudo pip install git+git://github.com/daviddrysdale/python-phonenumbers.git
Run Code Online (Sandbox Code Playgroud)
这并不是对最初的失败的回应,而是对自 6.0 发布以来从 Google 进来的其他人(就像我一样)的回应。看起来这是由于最新版本中地理数据的增加而引入的内存错误,因此在安装时可用内存量有限的系统上会失败。该问题正在此处跟踪:https ://github.com/daviddrysdale/python-phonenumbers