问题出现
跟着杨帆大佬的文章安装mmaction,
执行 python .\setup.py develop
出现了下载不动的情况
Searching for opencv-contrib-python
Reading https://pypi.org/simple/opencv-contrib-python/
Downloading https://files.pythonhosted.org/packages/xxxxxxxxxxxxxx
解决方法
- 进入python环境中修改setuptools包 (\Lib\site-packages\setuptools)
- package_index.py 和 command\easy_install.py 文件中修改源:
https://pypi.org/simple/ 改为 http://mirrors.aliyun.com/pypi/simple/
清华大学 :https://pypi.tuna.tsinghua.edu.cn/simple/
阿里云:http://mirrors.aliyun.com/pypi/simple/
中国科学技术大学 :http://pypi.mirrors.ustc.edu.cn/simple/
华中科技大学:http://pypi.hustunique.com/
腾讯源:http://mirrors.cloud.tencent.com/pypi/simple
华为镜像源:https://repo.huaweicloud.com/repository/pypi/simple/