python - pip 安装后总出现版本无法满足的提示

 mobiledu2502876651 发布于 2022-11-01 15:08

之前自己的PIP崩溃了。所以重装Python2.7.11(Windows7 64bit),升级了PIP(8.1.1),也安装了所有的之前用过的库。但是最近发现,无论采用PIP安装任何库,只要是新的库,都会提示同样的错误:

C:\Python27\Lib\site-packages>pip install sqlmap
Collecting sqlmap
  Could not find a version that satisfies the requirement sqlmap (from versions: )
No matching distribution found for sqlmap

C:\Python27\Lib\site-packages>pip install sqlmap -i http://pypi.douban.com/simple/
Collecting sqlmap
  The repository located at pypi.douban.com is not a trusted or secure host and is being ignored. If this repository is
available via HTTPS it is recommended to use HTTPS instead, otherwise you may silence this warning and allow it anyways
with '--trusted-host pypi.douban.com'.
  Could not find a version that satisfies the requirement sqlmap (from versions: )
No matching distribution found for sqlmap

C:\Python27\Lib\site-packages>pip install wxPython
Collecting wxPython
  Could not find a version that satisfies the requirement wxPython (from versions: )
No matching distribution found for wxPython

C:\Python27\Lib\site-packages>pip install pyQt
Collecting pyQt
  Could not find a version that satisfies the requirement pyQt (from versions: )
No matching distribution found for pyQt

不知道是否因为自己是64位Python的原因?是否需要用virtualenv安装32位Python?

4 个回答
  • 应该是64位的原因,我也是同样的问题。

    2022-11-02 10:56 回答
  • windows 设置pip 镜像及Pip Warning:–trusted-host 问题解决方法:
    

    http://my.oschina.net/ysj/blog/630421

    wxpython 只支持python2.7
    我没有,我就不试了.
    How to install wxPython

    http://wiki.wxpython.org/How%20to%20inst...

    http://stackoverflow.com/questions/32302...

    2022-11-02 11:03 回答
  • pip install sqlmap -i http://pypi.douban.com/simple/ --trusted-host pypi.douban.com

    试试?

    2022-11-02 11:19 回答
  • 我觉得像网络的原因。使用pip时,加-vvv打开debug信息看看?

    2022-11-02 11:21 回答
撰写答案
今天,你开发时遇到什么问题呢?
立即提问
热门标签
PHP1.CN | 中国最专业的PHP中文社区 | PNG素材下载 | DevBox开发工具箱 | json解析格式化 |PHP资讯 | PHP教程 | 数据库技术 | 服务器技术 | 前端开发技术 | PHP框架 | 开发工具 | 在线工具
Copyright © 1998 - 2020 PHP1.CN. All Rights Reserved 京公网安备 11010802041100号 | 京ICP备19059560号-4 | PHP1.CN 第一PHP社区 版权所有