我对ubuntu很陌生,在联想t410上使用ubuntu14.04和python-3.4来安装Healpy,我遵循了以下步骤;我使用以下步骤安装了pthon3-dev软件包
sudo apt-get install python3-dev以及python builder:
sudo apt-get install python-vm-builder但是,当我使用命令安装Healpy时:
pip install healpy它给了我以下错误:
error: command 'i686-linux-gnu-gcc' failed with exit status 1
error code 1 in /tmp/pip_build_sibte/healpy
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 27: ordinal not in range(128)有什么帮助解决这个问题吗?
发布于 2014-08-12 04:27:23
从回溯中可以看到,/usr/bin/pip正在使用Python2。
sudo apt-get install python3-pip若要安装/usr/bin/pip3二进制文件,请尝试运行
sudo pip3 install healpy看看能不能让你找到任何地方。确保您也安装了python3-matplotlib和python3-numpy,就我的经验而言,通过包管理器安装它们比通过pip更容易(也更快)。
https://stackoverflow.com/questions/25256019
复制相似问题