【发布时间】:2023-03-10 17:16:01
【问题描述】:
当我使用 CMD 安装 numpy (pip install numpy) 时遇到此错误!
我的胜利是 10。pyyhon 的版本是 3.7.3
pip install numpy
C:\Users\Hamed>pip3 install numpy
Collecting numpy
Using cached https://files.pythonhosted.org/packages/4e/9d/c129d78e6b942303b762ccfdf1f8339de80c5e6021b14ef0c99ec5bdc6aa/numpy-1.16.3-cp37-cp37m-win_amd64.whl
Installing collected packages: numpy
Could not install packages due to an EnvironmentError: [WinError 5] Access is denied: 'c:\\program files\\python37\\Lib\\site-packages\\numpy'
Consider using the `--user` option or check the permissions.
【问题讨论】:
-
要么打开一个具有管理员权限的 cmd 行,要么使用 Python 虚拟环境,要么运行
pip install --user。
标签: python numpy installation pip