[英]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.