首页 > 解决方案 > 虚拟环境不适用于 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:
'''

你能帮助我吗?

标签: pythonnumpyanacondavirtual-environment

解决方案


如何卸载该库消失的环境中的anaconda,只需尝试正常安装该库即可。


推荐阅读