我很难在Cloud9 ide中安装某些Python模块。
我试过使用easy_install(他们推荐的方法)和pip,但同时使用这两种方法,我会收到大量警告并以错误结尾(请参阅下面的错误消息)。
我读到内存问题可能是问题所在,可能的解决方案是增加交换空间,但是显然Cloud9不允许这样做,因为sudo swapon /swap1无法显示Operation not permitted
有人在Cloud9安装过熊猫吗?我还应该试试别的方法吗?
更新:我设法使用Linux发行版的包管理器安装了pandas:sudo apt-get install python-pandas但是我得到了0.13版本,需要当前版本0.16才能使用pandasql。
这就是我要做的sudo easy_install pandas:x86_64-linux-gnu-gcc: internal compiler error: Killed (program cc1)
Please submit a full bug report, with preprocessed source if appropriate.
See for instructions.
error: Setup script exited with error: command 'x86_64-linux-gnu-gcc' failed with exit status 4
这就是我要做的pip install pandas:Traceback (most recent call last):
File "/usr/bin/pip", line 9, in
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 41: ordinal not in range(128)