本文已参与「新人创作礼」活动,一起开启掘金创作之路。
这个问题出现在我想使用pip install nibabel 导入nibabel包的时候
在导入时会出现上述问题,在查找资料后发现是pip源的问题,因此这里可以使用下述的镜像来进行下载:
阿里云 mirrors.aliyun.com/pypi/simple…
中国科技大学 pypi.mirrors.ustc.edu.cn/simple/
豆瓣(douban) pypi.douban.com/simple/
清华大学 pypi.tuna.tsinghua.edu.cn/simple/
上述镜像使用只需要在原有命令的基础上后面加上:“-i 镜像” 如:
pip install nibabel
可以改为
pip install nibabel -i https://pypi.mirrors.ustc.edu.cn/simple/
我这里使用中科大的镜像成功了
但是使用阿里云镜像依然报错
所以多尝试几个镜像即可