简体   繁体   English

Pip3 和 python 不同步 | ModuleNotFoundError:没有名为“numpy”的模块`

[英]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).所以我的问题开始于在 Spyder 中我想从 python (wget) 导入库。 Even though module was clearly installed (through both pip and conda) Spyder couldn't see it.即使模块已明确安装(通过 pip 和 conda),Spyder 也看不到它。

I tried to resolve the issue.我试图解决这个问题。 Firstly I reinstalled python - still same issue.首先,我重新安装了 python - 仍然是同样的问题。

Now I try to reinstall whole conda environment.现在我尝试重新安装整个 conda 环境。 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'但是,即使我在卸载模块后删除了 conda,例如numpy pip3 uninstall numpy ,然后安装pip3 install numpy我仍然得到错误: 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.老实说,伙计们,我现在不知道如何解决我的问题并再次设置我的 python 环境。

I'm running everything on macOS terminal.我在 macOS 终端上运行所有东西。

So apparently reinstalling conda helped me to solve the problem.所以显然重新安装 conda 帮助我解决了这个问题。 The environment seems to be working fine.环境似乎运作良好。

For macOS I removed:对于 macOS,我删除了:

  • rm -rf./anaconda3 from opt folder in users rm -rf./anaconda3来自用户中的 opt 文件夹

  • removed anaconda3 from PATH从 PATH 中删除了 anaconda3

  • removed all anaconda3 dependencies删除了所有 anaconda3 依赖项

I leave the post, because maybe someone has the same issue.我离开了这个帖子,因为也许有人有同样的问题。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 ModuleNotFoundError:没有名为“pynput”的模块 Python3 和 pip3 - ModuleNotFoundError: No module named 'pynput' Python3 and pip3 ModuleNotFoundError:没有名为“pip”的模块 - 执行 pip3 时 - ModuleNotFoundError: No module named 'pip' - while executing pip3 ModuleNotFoundError: No module named 'psycopg2' (python3, mac, pip3 显示 psycopg2 已成功安装) - ModuleNotFoundError: No module named 'psycopg2' (python3, mac, pip3 shows psycopg2 successfully installed) ModuleNotFoundError:没有名为“bs4”的模块,但在 Python 3.8.5 上使用 PIP3 正确安装 - ModuleNotFoundError: No module named 'bs4' but installed correctly using PIP3 on Python 3.8.5 Python 3 ModuleNotFoundError:没有名为“ numpy”的模块 - Python 3 ModuleNotFoundError: No module named 'numpy' Python:“ModuleNotFoundError:没有名为‘numpy’的模块” - Python: "ModuleNotFoundError: No module named 'numpy'" ModuleNotFoundError:使用“pip install numpy”后没有名为“numpy”的模块 - ModuleNotFoundError: No module named 'numpy' after using 'pip install numpy' ModuleNotFoundError:没有名为“pip”python3的模块 - ModuleNotFoundError: No module named 'pip' python3 ModuleNotFoundError: 更新 pip3 后没有名为“pip._vendor.urllib3”的模块 - ModuleNotFoundError: No module named 'pip._vendor.urllib3' after update pip3 pip3 出现错误:ModuleNotFoundError: No module named 'pip._vendor.packaging.__about__' - Getting an error with pip3 : ModuleNotFoundError: No module named 'pip._vendor.packaging.__about__'
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM