![](/img/trans.png)
[英]I have PyAudio installed on my windows for sure, but when I try to install into Pycharm I get this message?
[英]I have installed TensorFlow in my Windows but I get an Error when I try to import it in my Jupyter Notebook
将tensorflow作为tf导入
ModuleNotFoundError跟踪(最近一次调用最近)ModuleNotFoundError:没有名为“ numpy.core._multiarray_umath”的模块
ImportError跟踪(最近一次调用最近)ImportError:numpy.core.multiarray导入失败
上面的异常是以下异常的直接原因:
SystemError追溯(最近一次通话最近)〜\\ AppData \\ Local \\ Continuum \\ anaconda3 \\ lib \\ importlib_bootstrap.py in _find_and_load(name,import_)
SystemError:返回了带有错误集的结果
ImportError跟踪(最近一次通话最近)ImportError:numpy.core._multiarray_umath导入失败
ImportError跟踪(最近一次调用最近)ImportError:numpy.core.umath导入失败
发生这种情况是因为jupyter没有选择安装在该特定环境中的tensorflow。
上面的解决方案是:
conda activate <your-env>
conda install jupyter
pip install tensorflow
jupyter notebook
现在,这应该可以正常工作,因为您已经在环境中使用conda安装了jupyter。
另外,我可以在您的帖子中看到numpy存在问题。 作为预防措施,请执行以下操作:
pip install -U numpy
或在卸载后重新安装
pip uninstall numpy
pip install numpy
或第三种方式:
pip install --ignore-installed numpy
记住在激活环境后要做。
这应该排序
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.