无法在虚拟env python 3.6中安装numpy

时间:2018-03-24 13:22:38

标签: numpy pip virtualenv python-3.6 raspbian

我已尝试pip install numpypip install numpy==1.13.3并且我一直收到此错误:

 Command "/home/pi/.virtualenvs/venv_python36/bin/python3.6 -u -c
 "import setuptools,
 tokenize;__file__='/tmp/pip-build-f4w3ieb6/numpy/setup.py';f=getattr(tokenize,
 'open', open)(__file__);code=f.read().replace('\r\n',
 '\n');f.close();exec(compile(code, __file__, 'exec'))" install
 --record /tmp/pip-ngusfvpy-record/install-record.txt --single-version-externally-managed --compile --install-headers /home/pi/.virtualenvs/venv_python36/include/site/python3.6/numpy"
 failed with error code 1 in /tmp/pip-build-f4w3ieb6/numpy/

它在python 3.5上运行良好

完整日志:https://pastebin.com/Jah0FVcc(发布时间太长)

1 个答案:

答案 0 :(得分:0)

pip install -U setuptools解决了问题,我能够安装numpy而不会出现问题