【发布时间】:2015-03-22 00:35:52
【问题描述】:
我在我的 debian 7.8 上从源代码编译了 python 3.4。
我已经使用pip 和virtualenv(django、pillow 等)安装了一些 Python 包,但是安装python-phonenumbers(https://github.com/daviddrysdale/python-phonenumbers)时出错。
我尝试使用 virtualenv 并没有运行 pip3 install phonenumbers 并手动下载存档并运行python3 setup.py install。每次我得到同样的错误:
Command "/usr/local/bin/python3.4 -c "import setuptools, tokenize;
__file__='/tmp/pip-build-ogsbxm_d/phonenumbers/setup.py';
exec(compile(getattr(tokenize, 'open', open)(__file__)
.read().replace('\r\n', '\n'), __file__, 'exec'))"
install --record /tmp/pip-98gunm55-record/install-record.txt
--single-version-externally-managed --compile"
failed with error code -9 in /tmp/pip-build-ogsbxm_d/phonenumbers
我在我的 Windows 和 ubuntu 14.04 上尝试过 - 一切正常。我该如何解决?
【问题讨论】:
-
/tmp/pip-build-ogsbxm_d/phonenumbers 中有什么内容?
-
它在我查看之前已被删除
标签: python debian pip python-3.4