Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Numpy installation AWS EC2 Error

I tried easy install and pip to install numpy on an EC2 micro instance. Didn't work.

I get:

RuntimeError: Broken toolchain: cannot link a simple C program

I tried virtualenv too, same story.
What am I doing wrong?

like image 925
Mridul Kanti Roy Chowdhury Avatar asked Dec 20 '22 16:12

Mridul Kanti Roy Chowdhury


2 Answers

You probably don't have the development packages installed.

Amazon Linux run:

sudo yum groupinstall "Development Tools"

Ubuntu run:

sudo apt-get install packaging-dev
like image 194
Rico Avatar answered Dec 22 '22 04:12

Rico


For simple testing, ssh into your instance

sudo yum install gcc
sudo pip install numpy

then go get yourself a coffee. Installed in about 3.5 mins.

like image 31
userMostRad Avatar answered Dec 22 '22 04:12

userMostRad