简体   繁体   中英

Pip3 and python are not synchronized | ModuleNotFoundError: No module named 'numpy'`

So my problem started when in Spyder I wanted to import library from python (wget). Even though module was clearly installed (through both pip and conda) Spyder couldn't see it.

I tried to resolve the issue. Firstly I reinstalled python - still same issue.

Now I try to reinstall whole conda environment. But even though I removed conda after uninstalling modules for example numpy pip3 uninstall numpy , then installing pip3 install numpy I still get Error: ModuleNotFoundError: No module named 'numpy'

Honestly guys I have no clue now how can I resolve my issue and setup my python environment once again.

I'm running everything on macOS terminal.

So apparently reinstalling conda helped me to solve the problem. The environment seems to be working fine.

For macOS I removed:

  • rm -rf./anaconda3 from opt folder in users

  • removed anaconda3 from PATH

  • removed all anaconda3 dependencies

I leave the post, because maybe someone has the same issue.

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