Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/python-3.x/17.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/svn/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Can';t安装MySQL连接器库_Mysql_Python 3.x_Pip - Fatal编程技术网

Can';t安装MySQL连接器库

Can';t安装MySQL连接器库,mysql,python-3.x,pip,Mysql,Python 3.x,Pip,我使用mysql connector 2.1.8有一段时间了,突然,它不再可用了 Could not find a version that satisfies the requirement mysql-connector==2.1.8 (from versions: 2.2.8) 我试着安装一些更新的版本,比如2.2.5。它确实工作过一次,但在服务器上却没有 最新版本2.2.8给出了如下错误: Collecting mysql-connector==2.2.8 Using cached

我使用mysql connector 2.1.8有一段时间了,突然,它不再可用了

Could not find a version that satisfies the requirement mysql-connector==2.1.8 (from versions: 2.2.8)
我试着安装一些更新的版本,比如2.2.5。它确实工作过一次,但在服务器上却没有

最新版本2.2.8给出了如下错误:

Collecting mysql-connector==2.2.8
  Using cached https://files.pythonhosted.org/packages/8e/78/049f747325ce0154263cd1b10fe7ea9ddb17e839111c6f8f824d5964cfb5/mysql-connector-2.2.8.tar.gz
Installing collected packages: mysql-connector
  Running setup.py install for mysql-connector ... error
    Complete output from command /home/liudas/PycharmProjects/eneba_what_place/venv/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-install-7rlbpvfn/mysql-connector/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-record-kbw8r138/install-record.txt --single-version-externally-managed --compile --install-headers /home/liudas/PycharmProjects/eneba_what_place/venv/include/site/python3.6/mysql-connector:
    usage: -c [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
       or: -c --help [cmd1 cmd2 ...]
       or: -c --help-commands
       or: -c cmd --help

    error: option --single-version-externally-managed not recognized
较新的软件包版本可能需要较新的setuptools或wheel功能,因此这就是导致无法识别外部管理的单个版本的原因
让这些核心包保持最新是一件好事,而且它们几乎总是向后兼容。

请解释这是如何解决问题的。看见
pip install -U setuptools wheel