Unix系统安装MySQL-python出现UnicodeDecodeError错误解决方法
2014-03-06 14:12
841 查看
今天装MySQL-python时候出现了这个错误:
经过搜索之后找到了解决办法,就是先安装Python-devel,然后再安装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 <module> 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就可以了。
相关文章推荐
- 64位系统安装了32位的MySQL后出现的error LNK2019错误解决方法
- 在 Mac 中安装 MySQLdb (Python mysql )出现“mysql_config not found”错误的解决方法
- MySQl 安装失败 Starting Server启动失败,发生系统错误 1067, 进程意外终止. 解决方法
- Python在windows下安装模块出现编译错误解决方法
- 低内存下MySql 5.6.33 安装后启动出现1067错误的解决方法
- Windows7 Python-3.6 安装PyCrypto(pycrypto 2.6.1)出现错误以及解决方法
- win7 32位下安装MySQL出现的---1067系统错误---问题及解决
- [转载]诺基亚Symbian系统S60V3智能手机安装软件出现错误提示及解决方法
- 关于win 8系统安装mysql报2502、2503错误解决方法
- Perl中DBI、DBD::mysql模块的安装和可能出现的错误解决方法
- 阿里云安装mysql初始化的时候出现如下错误,以及解决方法
- 关于windows安装python过程中出现error 2503 2502错误的解决方法
- Mysql安装 Navicat 出现1044/1045错误的解决方法
- 关于MySql安装后出现error:0错误,我的解决方法
- 安装python-mysql出现的问题以及解决方法
- 安装MySQL最后一步出现错误Error Nr.1045解决方法
- 关于Python安装模块出现error: command 'gcc' failed with exit status 1错误的解决方法
- 安装MySql-Python遇到的错误及解决方法
- asp.net办公自动化系统开发实例导航的安装出现错误的解决方法
- 【linux】安装mysql出现 no curses错误解决方法