pip3 install mysql-python failed with error code 1 in /tmp/pip-install-4nev4id4/mysql-python/

前端 未结 2 1707
渐次进展
渐次进展 2020-12-06 08:36

I am new in python on flask, when i try to install mysql-python by entering the
following command in terminal

pip3 install mysql-python
<
2条回答
  •  有刺的猬
    2020-12-06 09:36

    MySQL-python does not support python3. That is why you get this particular error

    ModuleNotFoundError: No module named 'ConfigParser'

    In python3 ConfigParser is renamed configparser

    One option to connect to MySQL DB is official python connector

    Another option is pyodbc

    Other options are provided in other answers

提交回复
热议问题