【问题标题】:Module not appearing in jupyter模块没有出现在 jupyter
【发布时间】:2020-07-05 21:12:47
【问题描述】:

我在将模块导入 jupyter 时遇到问题。我做了以下事情:

  1. 创建虚拟环境
  2. 激活它(下面的一切都在我的 venv 的上下文中)
  3. 安装雅虎财务模块:pip install yfinance
  4. 打开 python 控制台并导入它以测试是否工作> OK!
  5. 打开 jupyter 笔记本
  6. import yfinance 抛出 ModuleNotFoundError: No module named 'yfinance'

关于如何解决此问题的任何建议?

【问题讨论】:

    标签: python jupyter-notebook anaconda jupyter python-import


    【解决方案1】:

    试试

    pip3 install yfinance
    

    如果您在 conda 环境中,最好使用处理所有依赖项的conda install

    conda install yfinance
    

    【讨论】:

      猜你喜欢
      • 2016-11-23
      • 2018-05-16
      • 1970-01-01
      • 2017-04-16
      • 2020-03-05
      • 2018-10-09
      • 2019-12-16
      • 2016-11-08
      • 2018-10-21
      相关资源
      最近更新 更多