Numpy module not found in EC2 instance

0 votes

When I try to execute numpy script on AWS EC2, I am getting the following error.

[ec2-user@ip-XXX-XX-XX-XX ~]$ python samplenumpy.py
Traceback (most recent call last):
  File "samplenumpy.py", line 2, in <module>
    import numpy as np
ImportError: No module named numpy

How can I fix this?

Mar 28 in AWS by river
14 views

1 answer to this question.

0 votes

The most probable reason can be like this:

Your numpy-install is for python 2.6 (so old). I really hope, you are using python 2.7, which would mean there might be still no numpy available for this version! This was the same thing that happened to me. So try updating/ installing the newer verion.

answered Mar 28 by fuji

Related Questions In AWS

0 votes
1 answer

Getting ORA-01882: timezone region not found with Oracle UCP, on aws ec2 instance?

You can pass command line argument -Duser.timezone=<Database Time ...READ MORE

answered Oct 3, 2018 in AWS by Priyaj
• 56,160 points
254 views
0 votes
1 answer

if instance is a part of some AutoScaling Group in AWS or not ?

You can run this command below on ...READ MORE

answered Jun 1, 2018 in AWS by Cloud gunner
• 4,260 points
37 views
0 votes
1 answer

nstalling phpMyAdmin in Amazon EC2 instance

I needed to update the /etc/httpd/conf.d/phpMyAdmin.conf to allow remote ...READ MORE

answered Jul 13, 2018 in AWS by Cloud gunner
• 4,260 points
89 views
+5 votes
4 answers

Facing rendering issue in AWS EC2 instance

Hey @Vanshika there could be many factors ...READ MORE

answered Aug 20, 2018 in AWS by Priyaj
• 56,160 points
90 views
0 votes
1 answer
0 votes
1 answer
0 votes
1 answer

Connecting AWS EC2 instance using Java

An Amazon EC2 instance is just like ...READ MORE

answered Mar 28 in AWS by Disha
74 views
0 votes
1 answer

How to resize an EC2 instance?

There is no API call available to ...READ MORE

answered Mar 28 in AWS by Revlover
18 views