Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No module named numpy #2

Open
KhalilKhalaf opened this issue Dec 29, 2016 · 2 comments
Open

No module named numpy #2

KhalilKhalaf opened this issue Dec 29, 2016 · 2 comments

Comments

@KhalilKhalaf
Copy link

I am trying python and this for the first time. I installed python 2.7 and when I run the command "python main.py" I get "No module name NumPy" error

@miloharper
Copy link
Owner

In general, when programming in Python, if you get the error message "No module named X" you can solve it by going to your Terminal and typing the command: "sudo pip install X". Sudo means 'run this command with administrator privileges'. And pip is the Python package manager which allows you to install Python libraries.

If you are learning Python, I would recommend learning about pip here:

https://www.dabapps.com/blog/introduction-to-pip-and-virtualenv-python/

So in answer to your specific question, the problem is main.py requires a third-party module called Numpy, which is not installed on your computer. You can solve this by going to your Terminal and typing "sudo pip install numpy" and this will fix the problem.

@ghost ghost mentioned this issue May 14, 2018
@Amri95
Copy link

Amri95 commented Oct 14, 2018

I am getting the error module 'numpy' has no attribute 'array'. I am using python 3.6 . Thankyou.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants