python - 虚拟环境不适用于 pycharm 和 jupyterN
问题描述
我不得不卸载anaconda,
从那以后,我无法导入 NumPy 或任何其他库,因为虚拟环境不再正常工作,出现此错误:
'''
---------------------------------------------------------------------------
OSError Traceback (most recent call last)
<ipython-input-3-d4cdadb62aa7> in <module>
----> 1 import numpy
~\AppData\Roaming\Python\Python37\site-packages\numpy\__init__.py in <module>
138
139 # Allow distributors to run custom init code
--> 140 from . import _distributor_init
141
142 from . import core
~\AppData\Roaming\Python\Python37\site-packages\numpy\_distributor_init.py in <module>
24 # NOTE: would it change behavior to load ALL
25 # DLLs at this path vs. the name restriction?
---> 26 WinDLL(os.path.abspath(filename))
27 DLL_filenames.append(filename)
28 if len(DLL_filenames) > 1:
'''
你能帮助我吗?
解决方案
如何卸载该库消失的环境中的anaconda,只需尝试正常安装该库即可。
推荐阅读
- json - 如何从 Windows 命令终端获取 json 查询结果
- sql - 如何比较oracle中的两个阿拉伯字符串?
- r - Json 到数据框(空观察,不同长度)
- angular - 在 Angular 的导出函数(不在组件代码中)中注入管道以供使用
- python - 如何让我的 LSTM 模型在训练后进行预测
- asp.net-core - 如何使用 IocManager 在 ASP.NET Boilerplate 中注册服务?
- angular - 迭代对象的对象
- angular - 获取mat-tree的所有可见节点
- c++ - 在保持滚动启用的同时禁用 C++ 中的 EDITTEXT 框中的文本编辑
- javascript - 如何从我的表单组件重新加载/刷新反应表组件