python 离线安装报错due to an EnvironmentError: [Errno 13]

今天安装numpy,结果总是timeout,于是就想自己下载whl,然后手动安装,结果下载了https://files.pythonhosted.org/packages/9b/af/4fc72f9d38e43b092e91e5b8cb9956d25b2e3ff8c75aed95df5569e4734e/numpy-1.17.4-cp37-cp37m-manylinux1_x86_64.whl

执行安装的时候pip3 install ./numpy-1.17.4-cp37-cp37m-manylinux1_x86_64.whl却报错

Could not install packages due to an EnvironmentError: [Errno 13] Permission denied: '/usr/local/lib64/python3.7'
Consider using the `--user` option or check the permissions.

根据错误提示,安装的命令行改为

pip3 install --user ./numpy-1.17.4-cp37-cp37m-manylinux1_x86_64.whl

就ok了

发布了275 篇原创文章 · 获赞 46 · 访问量 28万+

猜你喜欢

转载自blog.csdn.net/youyudexiaowangzi/article/details/103362908