pip3安装numpy报错

pip3 安装numpy报错

pip3 install -i https://pypi.doubanio.com/simple/ --trusted-host pypi.doubanio.com  numpy

报错如下:

Command "/usr/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-qj6ko0m6/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-oge8_4l5-record/install-record.txt --single-version-externally-managed --compile --user --prefix=" failed with error code 1 in /tmp/pip-build-qj6ko0m6/numpy/

解决方法:

pip3 install --upgrade pip

参考

你可能感兴趣的:(Linux与python,numpy,python,深度学习)