【问题标题】:Virtual environments not working on pycharm and jupyterN虚拟环境不适用于 pycharm 和 jupyter
【发布时间】:2020-04-03 16:13:46
【问题描述】:

我不得不卸载 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:
'''

你能帮帮我吗?

【问题讨论】:

    标签: python numpy anaconda virtual-environment


    【解决方案1】:

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

    【讨论】:

    • 似乎有两条路径可以通向同一个库
    猜你喜欢
    • 2018-12-29
    • 2018-07-06
    • 2018-03-23
    • 1970-01-01
    • 2019-12-26
    • 2019-01-29
    • 2020-11-20
    • 2019-12-28
    • 1970-01-01
    相关资源
    最近更新 更多