Install Python pandas module on Cloud9

I find it difficult to install some Python modules in Cloud9 ide.

I tried using easy_install (their recommended method) and pip, but from both I get a ton of warnings and end up with errors (find error messages below).

I read that a memory problem may be a problem, and that a possible solution is to increase the swap space, however, apparently Cloud9 does not allow this, since sudo swapon /swap1 does not show Operation not permitted

Has anyone ever installed pandas on Cloud9? Any other method I should try?

UPDATE I managed to install pandas using the Linux distribution package manager: sudo apt-get install python-pandas however I get version 0.13 and I need the current version 0.16 to use pandasql.

Here is what I do 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 <file:///usr/share/doc/gcc-4.8/README.Bugs> for instructions. error: Setup script exited with error: command 'x86_64-linux-gnu-gcc' failed with exit status 4 

Here is what I do 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) 
+7
source share
5 answers

I created 2 scripts to complete the task:

script 01:

 #! /bin/bash #Downloading Miniconda 64Bits for Linux wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh #Changing file permission for execution chmod a+x Miniconda3-latest-Linux-x86_64.sh #Installing Miniconda ./Miniconda3-latest-Linux-x86_64.sh # Follow instructions to complete install # Close and reopen terminal. echo 'Please close the terminal reopen and run install02.sh script now' 

script 02:

 #! /bin/bash # Creating environment (sandbox instance called py3 [choose the name you want]) conda create -n py3 python=3 ipython # Activating created environment source activate py3 # Install package manager pip conda install pip # The installation installs the packages #pip install numpy #pip install pandas #pip install matplotlib # which ipython is to be used in the environment? pip freeze shows it pip freeze # Installing ipython notebook conda install ipython-notebook # Installing the packages conda install numpy conda install pandas conda install matplotlib 

I installed more than just pandas, as you can see in the script, you can install any package using conda install package_name

+7
source

Maybe the changes have changed since the question was asked, but I found that I can use Python 3 pip using the following:

 $ sudo pip-3.6 install pandas 

Note that the notation looks like pip-3.6 , not typical pip3

+5
source

I preferred to download the main package with the following command.

wget https://repo.continuum.io/archive/Anaconda3-4.2.0-Linux-x86_64.sh

Then install it as described in Continuum using the following.

bash Anaconda3-4.2.0-Linux-x86_64.sh

It gets everything including conda, pip, numpy, scipy and matplotlib, etc.

+1
source

I have the same problem when trying to install version 0.20.3 for pandas. I think the problem is that by default virtualenv will install Python 2, and this version of pandas may not work on it.

My solution was to create a Python 3 environment inside cloud 9:

 virtualenv -p python3 test 

Then activate the environment:

 source test/bin/activate 

Update setuptools and pip:

 pip install -U setuptools pip install -U pip 

And install the pandas with pip:

 pip install pandas 

It made it.

+1
source

I am not sure which version of Cloud9 I am using. But in the terminal, inside the de function directory, using this: venv/bin/pip install pandas -t. always worked

0
source

All Articles