Could not find a version that satisfies.... No matching distribution found for .....

原文作者:aircraft

原文链接:https://www.cnblogs.com/DOMLX/p/10227403.html

今天在安装mysql-python的时候报了很多的错误,其中一条就是这样的。

Could not find a version that satisfies mysql-python...

找不到满意的版本,这时就是我们的pip可能需要升级了,所以使用

python -m pip install --upgrade pip

然后继续尝试发现还是不行,会报相同的错误,这时考虑到是网络的问题,我的网有时候是不稳定的,这时我们用国内的镜像源来加速

pip install 包名-i http://pypi.douban.com/simple/ --trusted-host pypi.douban.com --trusted-host pypi.douban.com

包名填自己的   比如我的是 mysql-python             

--trusted-host pypi.douban.com 这是为了获得ssl证书的认证

如果不想每次都这样,就更换国内的镜像源就可以了,随便百度都有的。

No matching distribution found for....这个问题其实跟上面也是一样的

如果上面的做法还是没有成功,那么一般就是版本不匹配的问题了

No matching distribution found for mysql-python      像我装mysql-python  装了半天都没有成功  上面的解决方法也都试过了

最后我看了一下版本,发现我的Python是2.7.15的

而别人成功安装的版本是 python2.7.9的   然后我就抱着反正都是死的心态在尝试了一次   这一次我简直想说MMP  竟然成功了!!!!差点哭出来

下面是更改python 版本的安装  你也可以一条命令安装 但是这样安装的是默认的版本 像我就是2.7.15

    $ wget -c https://www.python.org/ftp/python/2.7.9/Python-2.7.9.tgz
    $ tar -xzvf Python-2.7.9.tgz
    $ cd Python-2.7.9/
    $ LDFLAGS="-L/usr/lib/x86_64-linux-gnu" ./configure
    $ make
    $ sudo make install   

原文地址:https://www.cnblogs.com/DOMLX/p/10227403.html

时间: 2024-10-09 17:12:35

Could not find a version that satisfies.... No matching distribution found for .....的相关文章

[报错处理]Could not find a version that satisfies the requirement xml (from versions)

安装xml库发生报错 pip3 install xml Collecting xml Could not find a version that satisfies the requirement xml (from versions: ) No matching distribution found for xml 尝试安装lxml进行代替 [email protected]:/home/ubuntu/publisher_info# pip3 install lxml Collecting l

Could not find a version that satisfies the requirement numpy>=1.7.0 (from pan das==0.17.0) (from versions: ) No matching distribution found for numpy>=1.7.0 (from pandas==0.17.0)

今天晚上一直在安装pandas,天杀的,真的是太难了.后来发现提示: Could not find a version that satisfies the requirement numpy>=1.7.0 (from pan das==0.17.0) (from versions: ) No matching distribution found for numpy>=1.7.0 (from pandas==0.17.0) 更新numpy的版本步骤如下: 1.查看当前numpy安装包版本:p

Windows下Pycharm安装Tensorflow:ERROR: Could not find a version that satisfies the requirement tensorflow

今天在Windows下通过Pycharm安装Tensorflow时遇到两个问题: 使用pip安装其实原理都相同,只不过Pycharm是图形化的过程! 1.由于使用国外源总是导致Timeout 解决方法是在Pycharm中添加清华源 https://mirrors.aliyun.com/pypi/simple/(或者其他的国内源) 2.替换成清华源后安装报错: ERROR: Could not find a version that satisfies the requirement tensor

pip3版本已经是最新,安装openxl失败,Could not find a version that satisfies the requirement openxl

pip3版本已经是最新,安装openxl失败,提示 Could not find a version that satisfies the requirement openxl,No matching distribution found for openxl 用以下问答中的第3个答案解决,其他两种应该也没问题. https://ask.csdn.net/questions/1053770 原文地址:https://www.cnblogs.com/tiaotiaoxia/p/12315082.h

mac上安装pil报错: ERROR: Could not find a version that satisfies the requirement pil (from versions: none):

mac上安装pil报错: ERROR: Could not find a version that satisfies the requirement pil (from versions: none): 原文地址:https://www.cnblogs.com/Zhao159461/p/12629635.html

转:Python出现Could not find a version that satisfies the requirement openpyxl (from versions: )

https://blog.csdn.net/weixin_42840933/article/details/85308265 一.环境使用python3.7时,用pip安装openpyxl出现如下错误: 系统环境:windows10家庭版Python版本:python3.7.1IDE:sublime_text 3二. 解决方案按照提示所示是其中一个原因是pip版本过低,需要更新pip:python -m pip install --upgrade pip由于python国内网络不稳定,一直报错,

python导入第三方库schedule报错ERROR: Could not find a version that satisfies the requirement schedule (from

RROR: No matching distribution found for tensorflow的情况这可能是因为网络的问题,这时我们使用国内的镜像源来加速输入命令:python -m pip install schedule(如果你安装的是别的库,请输入别的库名) 原文链接:https://blog.csdn.net/shaui541607120115/article/details/89640808 原文地址:https://www.cnblogs.com/zhanghuanfree/

anaconda安装tensorflow问题: Could not find a version that satisfies the requirement tensorboard

背景:想要为下载的anaconda安装tensorflow 使用命令 pip install -i https://pypi.tuna.tsinghua.edu.cn/simple tensorflow 报错如下: 解决办法:创建一个虚拟虚拟环境,在虚拟环境中安装tensorflow,然后使用pycharm创建项目,指定项目的运行环境为刚才创建的虚拟环境. 一:创建虚拟环境:conda create -n test python=3.5 -n后面是虚拟环境的名字   python=指定虚拟环境使

How do you install mysql-connector-python (development version) through pip?

12down votefavorite 8 http://stackoverflow.com/questions/31748278/how-do-you-install-mysql-connector-python-development-version-through-pip/34027037#34027037 I have a virtualenv in which I am running Django 1.8 with Python 3.4 I am trying to get supp