简体   繁体   English

由于环境错误,python 错误无法安装软件包 winerror 5 访问被拒绝

[英]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.

相关问题 由于环境错误,无法安装 Open-CV:[WinError 5] 访问被拒绝 - Could not install Open-CV due to an EnvironmentError: [WinError 5] Access is denied 如何修复“由于环境错误而无法安装软件包:[WinError 123]”? - How to fix "Could not install packages due to an EnvironmentError: [WinError 123]"? 如何修复“由于环境错误无法安装软件包:[WinError 32]” - How to fix "Could not install packages due to an EnvironmentError: [WinError 32]" 由于 EnvironmentError 无法安装软件包:[WinError 32] 该进程无法访问该文件,因为它正被另一个进程使用 - Could not install packages due to an EnvironmentError: [WinError 32] The process cannot access the file because it is being used by another process 错误:由于环境错误,无法安装软件包: - ERROR: Could not install packages due to an EnvironmentError: Openstack:错误:由于 EnvironmentError 无法安装软件包 - Openstack: ERROR: Could not install packages due to an EnvironmentError heroku 错误:由于环境错误而无法安装软件包: - heroku error : Could not install packages due to an EnvironmentError: (ChatterBot) 由于 EnvironmentError 无法安装软件包:[Errno 13] 权限被拒绝: - (ChatterBot) Could not install packages due to an EnvironmentError: [Errno 13] Permission denied: pip 安装过程中出错:由于 EnvironmentError 无法安装软件包:[Errno 13] 权限被拒绝 - Error during pip install: Could not install packages due to an EnvironmentError: [Errno 13] Permission denied 错误:由于环境错误而无法安装软件包:[Errno 13] 权限被拒绝:'/var/project_env/bin/pip' - ERROR: Could not install packages due to an EnvironmentError: [Errno 13] Permission denied: '/var/project_env/bin/pip'
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM