12-09
12-09
12-09
12-09
12-09
12-09
12-09
12-09
12-09
12-09
12-09
12-09
ADADADADAD
mysql数据库 时间:2024-11-28 13:02:30
作者:文/会员上传
12-09
12-09
12-09
12-09
12-09
12-09
12-09
12-09
12-09
12-09
12-09
12-09
运行pip installMySQL-Python报错:云服务器Commandpythonsetup.pyegg_infofailedwitherrorcode1in继续试探yuminstallmysql-develsystemctlrestartmariadb之后再安装报错:Comm
以下为本文的正文内容,内容仅供参考!本站为公益性网站,复制本文以及下载DOC文档全部免费。
运行pip installMySQL-Python报错:云服务器
Commandpythonsetup.pyegg_infofailedwitherrorcode1in
继续试探
yuminstallmysql-develsystemctlrestartmariadb
之后再安装报错:
Command"/usr/bin/python-u-c"importsetuptools,tokenize;__file__='/tmp/pip-build-GMXMYA/MySQL-python/setup.py';f=getattr(tokenize,'open',open)(__file__);code=f.read().replace('','');f.close();exec(compile(code,__file__,'exec'))"install--record/tmp/pip-VMNV_c-record/install-record.txt--single-version-externally-managed--compile"failedwitherrorcode1in/tmp/pip-build-GMXMYA/MySQL-python/
继续找安装
yuminstallMySQL-pythonsystemctlrestartmariadb
测试是否安装成功
python
进入 python之后 执行
>>>importMySQLdb>>>printdir(MySQLdb)['BINARY','Binary','Connect','Connection','DATE','DATETIME','DBAPISet','DataError','DatabaseError','Date','DateFromTicks','Error','FIELD_TYPE','IntegrityError','InterfaceError','InternalError','MySQLError','NULL','NUMBER','NotSupportedError','OperationalError','ProgrammingError','ROWID','STRING','TIME','TIMESTAMP','Time','TimeFromTicks','Timestamp','TimestampFromTicks','Warning','__all__','__author__','__builtins__','__doc__','__file__','__name__','__package__','__path__','__revision__','__version__','_mysql','apilevel','connect','connection','constants','debug','escape','escape_dict','escape_sequence','escape_string','get_client_info','paramstyle','release','result','server_end','server_init','string_literal','test_DBAPISet_set_equality','test_DBAPISet_set_equality_membership','test_DBAPISet_set_inequality','test_DBAPISet_set_inequality_membership','thread_safe','threadsafety','times','version_info']
因为系统用yum install MySQLdb-python来替代pip install MySQLdb-pythonAuthor:
11-20
11-19
11-20
11-20
11-20
11-19
11-20
11-20
11-19
11-20
11-19
11-19
11-19
11-19
11-19
11-19