这一天都在安装mxnet…
尝试了网上许多方法都无法安装,因为我的python是3.9的,网上大部分教程都是3.8及以下的,阿里云资源上也没有mxnet3.9的win版本,试了很多很多方法都无法安装,一直报错
note: This error originates from a subprocess, and is likely not a problem with pip.
Rolling back uninstall of numpy
Moving to d:\anaconda\lib\site-packages\numpy-1.21.5.dist-info\
from D:\anaconda\Lib\site-packages\~umpy-1.21.5.dist-info
Moving to d:\anaconda\lib\site-packages\numpy\
from D:\anaconda\Lib\site-packages\~umpy
Moving to d:\anaconda\scripts\f2py.exe
from C:\Users\Wuruiqian\AppData\Local\Temp\pip-uninstall-_ns9djsa\f2py.exe
error: legacy-install-failure
× Encountered error while trying to install package.
╰─> numpy
note: This is an issue with the package mentioned above, not pip.
hint: See above for output from the failure.
上面提示不是pip问题,是package包的问题,如果pip版本太低的话也会报错,需要升级pip
解决方法:
1.自己在anaconda建一个环境并取一个名字,比如我取的名字是mxnet
conda creat -n mxnet python=3.9
2.激活环境
activate mxnet
3.此时在anaconda/envs文件夹下会有一个mxnet文件夹
下载完mxnet-1.9.0+mkl-cp39-cp39-win_amd64.whl后将其复制到anaconda/envs/mxnet/scripts文件夹下面
4在anaconda内将位置定位到scripts文件夹下面
5.安装mxnet
pip install mxnet-1.9.0+mkl-cp39-cp39-win_amd64.whl
6.查看是否安装成功
conda list
成功!
如有想要mxnet-1.9.0+mkl-cp39-cp39-win_amd64.whl的后台可私信我哦
-----------4月16分界线-------------------------
要的人太多,统一放网盘了
链接:https://pan.baidu.com/s/1HFFEn7cOl3qID7gH5p7o1w
提取码:5025
麻烦点个赞哦
-----------5月24分界线-------------------------
链接: https://pan.baidu.com/s/18qsgzbC0WlAs0FEblMdWow?pwd=2pey 提取码: 2pey 复制这段内容后打开百度网盘手机App,操作更方便哦