Welcome to WuJiGu Developer Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
571 views
in Technique[技术] by (71.8m points)

python - Can't use Matplotlib and Numpy on Jupyter Notebook (ModuleNotFoundError:No module named 'numpy')

I've been unsuccessfully trying to run Matplotlib and Numpy on Jupyter Notebook. I imagine that something went wrong during the installation, but I've already tried to uninstall/update and nothing has changed. I'm new at it and I've seen other questions similar to mine, but I still can't solve this problem.

On jupyter, the error message I got was: ModuleNotFoundError: No module named 'numpy'. Traceback (most recent call last) in </module/>

I have installed python3 and the libraries manually on the terminal using the command:

brew install python3

pip3 install numpy

pip3 install Matplotlib

As I'm using Anaconda to run my Jupyter notebook, I've also installed miniconda and tried:

conda install numpy

conda install Matplotlib

Also, if I run the command pip3 list I can clearly see that numpy, Matplotlib and conda are already installed as a package. My current version of python is 3.9., numpy is 1.19.4, matplotlib is 3.3.2.

I have no more ideas about what to do and why Jupyter is not importing those libraries. Any help will be very useful. I use MacOS system.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
等待大神答复

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to WuJiGu Developer Q&A Community for programmer and developer-Open, Learning and Share
...