gpt4 book ai didi

python - 我在 conda 中安装 scikit-learn 时出错

转载 作者:太空宇宙 更新时间:2023-11-04 04:56:25 25 4
gpt4 key购买 nike

当我尝试在 conda 中安装 scikit-learn 时,我收到以下错误

$ conda install scikit-learn 
Fetching package metadata ...........
Solving package specifications: .

Package plan for installation in environment
/Users/xlnwel/anaconda/envs/ai:

The following NEW packages will be INSTALLED:

scikit-learn: 0.19.0-np113py36_0
scipy: 0.19.1-np113py36_0

Proceed ([y]/n)? y

ERROR conda.core.link:_execute_actions(335): An error occurred while installing package 'defaults::scipy-0.19.1-np113py36_0'.
FileExistsError(17, 'File exists')
Attempting to roll back.



FileExistsError(17, 'File exists')

我想可能是因为scipy已经存在,所以尝试删除scipy,还是报错:

$ conda remove scipy
Fetching package metadata ...........
Solving package specifications: .


PackageNotFoundError: Package not found: Conda could not find '

我现在可以做什么?我正在使用 Mac。

最佳答案

  • 如果已经满足依赖项,请尝试安装 scikit-learn 包,忽略 scipy 包:

    conda install --no-deps scikit-learn

关于python - 我在 conda 中安装 scikit-learn 时出错,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46953043/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com