博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
Unix系统安装MySQL-python出现UnicodeDecodeError错误解决方法
阅读量:4560 次
发布时间:2019-06-08

本文共 1112 字,大约阅读时间需要 3 分钟。

今天装MySQL-python时候出现了这个错误:

error: command 'gcc' failed with exit status 1            ----------------------------------------      Cleaning up...      Command /usr/bin/python -c "import setuptools;__file__='/tmp/pip_build_root/MySQL-python/setup.py';exec(compile(open(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-TIlEQj-record/install-record.txt --single-version-externally-managed failed with error code 1 in /tmp/pip_build_root/MySQL-python      Traceback (most recent call last):        File "/usr/bin/pip", line 9, in 
load_entry_point('pip==1.4.1', 'console_scripts', 'pip')() File "/usr/lib/python2.6/site-packages/pip/__init__.py", line 148, in main return command.main(args[1:], options) File "/usr/lib/python2.6/site-packages/pip/basecommand.py", line 169, in main text = '\n'.join(complete_log) UnicodeDecodeError: 'ascii' codec can't decode byte 0xe9 in position 20: ordinal not in range(128)

经过搜索之后找到了解决办法,就是先安装Python-devel,然后再安装MySQL-python就可以了。

转载于:https://www.cnblogs.com/numbbbbb/p/3584451.html

你可能感兴趣的文章
(转)前端面试题
查看>>
《C++ Primer》读书笔记—第十六章 模板与泛型编程
查看>>
CString 成员函数用法大全
查看>>
游戏(game)
查看>>
Educational Codeforces Round 55 (Rated for Div. 2)
查看>>
poj 1742 Coins(多重背包)
查看>>
git常用命令
查看>>
内存系列二:深入理解硬件原理
查看>>
我的《jQuery EasyUI开发指南》已经出版
查看>>
poj 3481 Double Queue
查看>>
DataGrid当列宽超出当前宽度时,没有数据也恒有滚动条
查看>>
bzoj 1861: [Zjoi2006]Book 书架
查看>>
【设计模式】策略模式
查看>>
一文读懂 JAVA 异常处理
查看>>
测试Data ORM的性能
查看>>
行列式的六条运算法则整理
查看>>
封装、继承
查看>>
http://my.oschina.net/noahxiao/blog/101558
查看>>
微信小程序:wx:for循环输出的使用方法以及简单例子
查看>>
socket选项
查看>>