简体   繁体   中英

python numpy was installed but throws “ ModuleNotFoundError: No module named 'numpy'”

I have installed numpy on ubuntu. it works fine on terminal but when i want to import it to my working directory its shows me this error

Traceback (most recent call last):
       File "", line 1, in 
    ModuleNotFoundError: No module named 'numpy'

Try this:

sudo pip install numpy

Also this

sudo pip install spyder (numpy is included)

or

sudo easy_install numpy

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM