Installing Python module pandas in Cloud9 -
i'm having hard time installing python modules in cloud9 ide.
i have tried using easy_install (their recommended method) , pip both ton of warnings , end errors (find error messages below).
i have read memory issues might problem, , possible solution increase swap space, apparently cloud9 not allow it, since sudo swapon /swap1
fails showing operation not permitted
anyone ever installed pandas in cloud9? other method should try?
update: managed install pandas using linux distribution’s package manager: sudo apt-get install python-pandas
version 0.13 , need current version 0.16 use pandasql.
this doing sudo easy_install pandas
:
x86_64-linux-gnu-gcc: internal compiler error: killed (program cc1) please submit full bug report, preprocessed source if appropriate. see <file:///usr/share/doc/gcc-4.8/readme.bugs> instructions. error: setup script exited error: command 'x86_64-linux-gnu-gcc' failed exit status 4
this doing pip install 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 41: ordinal not in range(128)
i created 2 scripts job:
script 01:
#! /bin/bash #downloading miniconda 64bits linux wget https://repo.continuum.io/miniconda/miniconda3-latest-linux-x86_64.sh #changing file permission execution chmod a+x miniconda3-latest-linux-x86_64.sh #installing miniconda ./miniconda3-latest-linux-x86_64.sh # follow instructions complete install # close , reopen terminal. echo 'please close terminal reopen , run install02.sh script now'
script 02:
#! /bin/bash # creating environment (sandbox instance called py3 [choose name want]) conda create -n py3 python=3 ipython # activating created environment source activate py3 # install package manager pip conda install pip # installation installs packages #pip install numpy #pip install pandas #pip install matplotlib # ipython used in environment? pip freeze shows pip freeze # installing ipython notebook conda install ipython-notebook # installing packages conda install numpy conda install pandas conda install matplotlib
i have installed more pandas, can see in script can install package using conda install package_name
Comments
Post a Comment