简体   繁体   中英

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 . I am running pip3 on a windows 10 machine with Python 3.8.1.

-I have installed Scipy first

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)

-and then i installed scipy.state but i see an error:

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

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

You just have to install scipy.

C:\WINDOWS\system32>pip3 install scipy

Once scipy is installed, scipy.stats is usable in python with :

from scipy import stats

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM