4

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?

2 Answers 2

10

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
Sign up to request clarification or add additional context in comments.

Comments

1

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.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.