您好我已经创建了一个aws实例,我想在其中运行一个python代码但是我在安装软件包时遇到了问题。
我做了pip install pandas
,这是显示的错误:
Cleaning up...
Command python setup.py egg_info failed with error code 1 in /tmp/pip_build_ubuntu/pandas
Traceback (most recent call last):
File "/usr/bin/pip", line 9, in <module>
load_entry_point('pip==1.5.4', 'console_scripts', 'pip')()
File "/usr/lib/python2.7/dist-packages/pip/__init__.py", line 185, in main
return command.main(cmd_args)
File "/usr/lib/python2.7/dist-packages/pip/basecommand.py", line 161, in main
text = '\n'.join(complete_log)
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 72: ordinal not in range(128)
任何人都可以对此有所了解吗?
答案 0 :(得分:2)
sudo apt-get install python-dev
我承认我也对此感到内疚,但下次阅读错误日志时,它会说安装python-dev。