「pip安装总是报错?①」如何用国内镜像下载&pip安装gifmaze错误ERROR Could not find a version that satisfies the requirement gifmaze

「pip安装总是报错?①」如何用国内镜像下载&pip安装gifmaze错误ERROR Could not find a version that satisfies the requirement gifmaze

虹棠包
2021-04-10 / 0 评论 / 22 阅读 /
温馨提示:
本文最后更新于2024年03月07日,已超过424天没有更新,若内容或图片失效,请留言反馈。

下载方法:

C:\>D:\软件\python-3.9.0\python.exe -m pip install gifmaze --user

报错

ERROR: Could not find a version that satisfies the requirement gifmaze
ERROR: No matching distribution found for gifmaze

解决方法:
用国内镜像下载:
可以改用豆瓣或阿里巴巴的镜像
核心语法:

pip install XXXX -i https://XXXX
C:\>pip install gifmaze -i http://pypi.douban.com/simple/ --trusted-host pypi.douban.com
Looking in indexes: http://pypi.douban.com/simple/
Collecting gifmaze
  Downloading http://pypi.doubanio.com/packages/a3/1a/119ae70996a71364ab1b5a6c4343fe9f6092be90dd182d9e1c8bd498f40c/gifmaze-0.3.0.tar.gz (184 kB)
     |████████████████████████████████| 184 kB 437 kB/s
Building wheels for collected packages: gifmaze
  Building wheel for gifmaze (setup.py) ... done
  Created wheel for gifmaze: filename=gifmaze-0.3.0-py3-none-any.whl size=16631 sha256=cc5ee97e68281d39d70cc42feb7a766e5106f77c31548ba97bfad2061c2f2243
  Stored in directory: c:\users\dell\appdata\local\pip\cache\wheels\ef\e5\02\3620e601be81730632a5824929993f77c50cb7146f77e2b53a
Successfully built gifmaze
Installing collected packages: gifmaze
Successfully installed gifmaze-0.3.0

下载成功,问题解决。

1

评论 (0)

取消