не может установить mysql-коннектор

я пытался установить mysql-коннектор, но не сделал следовавший

 pip install mysql-connector-python-rf
Collecting mysql-connector-python-rf
  Downloading mysql-connector-python-rf-2.2.2.tar.gz (11.9MB)
    100% |████████████████████████████████| 11.9MB 33kB/s 
Installing collected packages: mysql-connector-python-rf
  Running setup.py install for mysql-connector-python-rf ... error
    Complete output from command /usr/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-Wnoa38/mysql-connector-python-rf/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-Y29xbt-record/install-record.txt --single-version-externally-managed --compile:
    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

    ----------------------------------------
Command "/usr/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-Wnoa38/mysql-connector-python-rf/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-Y29xbt-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-Wnoa38/mysql-connector-python-rf/

у Вас может быть какая-либо идея, какова проблема?

1
задан 28 August 2017 в 18:07

1 ответ

Попытайтесь установить версию 2.1.6. Работы Отлично для меня.

Команда:

pip install mysql-connector==2.1.6

См. этот отчет об ошибках на MySQL.com

1
ответ дан 7 December 2019 в 15:31

Другие вопросы по тегам:

Похожие вопросы: