I cannot install mysql-connector-python using pip

前端 未结 6 1518
隐瞒了意图╮
隐瞒了意图╮ 2020-12-02 14:23

I am trying to install mysql-connector-python==1.0.12 as part of my project\'s automated installation, and I get the following error from pip install

6条回答
  •  北荒
    北荒 (楼主)
    2020-12-02 15:10

    There are quite a few solutions, e.g. hosting a private repository, but the quickest was to change the requirements.txt file to download from mysql's cdn.

    i.e., to change:

    mysql-connector-python==1.0.12
    

    to

    https://cdn.mysql.com/Downloads/Connector-Python/mysql-connector-python-2.1.15.tar.gz
    

提交回复
热议问题