jupyter找不到模块_错误:在Jupyter Notebook中找不到模块(sklearn)(Error: module not found in Jupyter Notebook (sklear...

在Jupyter Notebook中尝试导入scikit-learn时遇到问题。尽管在命令行环境中可以正常导入,但在Notebook中却抛出'No module named 'sklearn''的错误。已检查确保使用正确的环境,scikit-learn正确安装在同一环境中。尝试比较了环境变量、sys.path、site-packages路径,但未找到明显问题。已经尝试修改JUPYTER_PATH和sys.path,但仍然无法解决导入问题。寻求进一步的解决方案。
摘要由CSDN通过智能技术生成

I have an issue importing scikit-learn in my Jupyter notebooks, and I am at a loss as to why this is not working. I do not recall having this issue before with other packages. I have seen several threads with people having similar problems with this specific module, but none of the proposed checks have solved my problem, nor revealed to me what might be wrong. I have tried to add as much info as possible below, to try and figure out why this refuses to work.

I use anaconda to manage my packages, and scikit-learn was installed as follows:

source activate python3

conda install scikit-learn

Fetching package metadata .............

Solving package specifications: .

# All requested packages already installed.

# packages in environment at /Users/overaa/anaconda/envs/python3:

#

scikit-learn 0.19.1 py36hffbff8c_0

Now, if I start a python session directly from the command

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值