[英]python error could not install packages due to an environmenterror winerror 5 access is denied
I get the following error when i tried to install scipy.state .当我尝试安装 scipy.state 时出现以下错误。 I am running pip3 on a windows 10 machine with Python 3.8.1.我在装有 Python 3.8.1 的 Windows 10 机器上运行 pip3。
-I have installed Scipy first - 我先安装了 Scipy
C:\\WINDOWS\\system32>pip3 install scipy Requirement already satisfied: scipy in c:\\users\\elnaz khatmi\\appdata\\local\\packages\\pythonsoftwarefoundation.python.3.7_qbz5n2kfra8p0\\localcache\\local-packages\\python37\\site-packages (1.4.1) Requirement already satisfied: numpy>=1.13.3 in c:\\users\\elnaz khatmi\\appdata\\local\\packages\\pythonsoftwarefoundation.python.3.7_qbz5n2kfra8p0\\localcache\\local-packages\\python37\\site-packages (from scipy) (1.18.1) C:\\WINDOWS\\system32>pip3 install scipy 已经满足要求:scipy in c:\\users\\elnaz khatmi\\appdata\\local\\packages\\pythonsoftwarefoundation.python.3.7_qbz5n2kfra8p0\\localcache\\local-packages\\python37\\site-packages (1.4 .1) 要求已经满足: numpy>=1.13.3 in c:\\users\\elnaz khatmi\\appdata\\local\\packages\\pythonsoftwarefoundation.python.3.7_qbz5n2kfra8p0\\localcache\\local-packages\\python37\\site-packages(来自scipy) (1.18.1)
-and then i installed scipy.state but i see an error: - 然后我安装了 scipy.state 但我看到一个错误:
C:\\WINDOWS\\system32>pip3 install scipy.stats ERROR: Could not find a version that satisfies the requirement scipy.stats (from versions: none) ERROR: No matching distribution found for scipy.stats C:\\WINDOWS\\system32>pip3 install scipy.stats 错误:找不到满足 scipy.stats 要求的版本(来自版本:无)错误:找不到与 scipy.stats 匹配的发行版
I tried to uninstall and reinstall it but i have got the following error我尝试卸载并重新安装它,但出现以下错误
C:\\WINDOWS\\system32>pip3 install --upgrade --force-reinstall --user scipy.stats ERROR: Could not find a version that satisfies the requirement scipy.stats (from versions: none) ERROR: No matching distribution found for scipy.stats C:\\WINDOWS\\system32>pip3 install --upgrade --force-reinstall --user scipy.stats 错误:找不到满足 scipy.stats 要求的版本(来自版本:无)错误:找不到匹配的发行版scipy.stats
You just have to install scipy.你只需要安装scipy。
C:\WINDOWS\system32>pip3 install scipy
Once scipy is installed, scipy.stats is usable in python with :一旦安装了 scipy,scipy.stats 就可以在 python 中使用:
from scipy import stats
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.