成功解决python下载numpy报错。各种错,各种飘红,原来这
么简单就改好了。。
在新电脑上安装tensorflow,numpy,怎么就这么曲折,前前后后五六种错误。。如果你的错没有这么多,直接看最后⼀步就好了
错1:
错2:
python since paCould not install packages due to an EnvironmentError: [WinError 5] 拒绝访问。
错3:
ERROR: Command errored out with exit status 1:
command: 'D:\SOFTWARE\Python\' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\MSI-
NB\\AppData\\Local\\Temp\\pip-install-7xe7zjv9\\numpy_e781e20ff980480f8215bf2506badbf5\\setup.p
y'"'"'; __file__='"'"'C:\\Users\\MSI-NB\\AppData\\Local\\Temp\\pip-install-7xe7zjv9\\numpy_e781e20ff980480f8215bf2506badbf5\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);ad().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d 'C:\Users\MSI-NB\AppData\Local\Temp\pip-wheel-xln11lng'
cwd: C:\Users\MSI-NB\AppData\Local\Temp\pip-install-7xe7zjv9\numpy_e781e20ff980480f8215bf2506badbf5\
错4:python新手代码错了应该怎么改
Could not install packages due to an EnvironmentError
错5:
Try to run this command from the system terminal. Make sure that you use the correct version of 'pip' installed for your Python interpreter located at 'D:\SOFTWARE\Python\'.
错6:
package wheel is not installed
等等。。
然⽽只要改⼀下我的下载命令就好了
不过在这之前我还进⾏了⼀个2个操作:
1.更新了我的pip,我在命令⾏更新报错,就直接在官⽹下了⼀个,直接点击setup会闪退,在命令⾏中安装就好了,到安装⽬录后python setup.py install
2.由于错6,安装wheel  pip install wheel
最后安装numpy时, pip install numpy==1.12.0 是不⾏的,换成
pip3 install numpy scipy matplotlib -i pypi.tuna.tsinghua.edu/simple
就好啦

版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系QQ:729038198,我们将在24小时内删除。