我已尝试pip install numpy
和pip 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(发布时间太长)
答案 0 :(得分:0)
pip install -U setuptools
解决了问题,我能够安装numpy而不会出现问题