python3.7.1错误排查

1、ModuleNotFoundError: No module named ‘_ctypes’

shell> yum install libffi-devel -y

2、mysql_python “EnvironmentError: mysql_config not found”

shell> yum install python-devel
shell> yum install mysql-devel
shell> yum install gcc

3、ModuleNotFoundError: No module named ‘MySQLdb’

shell> wget https://files.pythonhosted.org/packages/a5/e9/51b544da85a36a68debe7a7091f068d802fc515a3a202652828c73453cad/MySQL-python-1.2.5.zip

4、Command “python setup.py egg_info” failed with error code 1 in /tmp/pip-install-p6emyssy/MySQL-python/

5、ModuleNotFoundError: No module named ‘ConfigParser’

shell> cp /usr/python/lib/python3.7/Configparser.py /usr/python/lib/python3.7/ConfigParser.py

6、 numbers.Integral.register(integer)
AttributeError: module ‘numbers’ has no attribute ‘Integral’
查看当前项目下是否有numbers.py

Leave Comment

电子邮件地址不会被公开。 必填项已用*标注