[英]Error when I installed scikit-learn in conda
When I tried to install scikit-learn in conda, I received below error当我尝试在 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')
I thought it might because the scipy already exists, so I tried to delete scipy, still received an error:我想可能是因为scipy已经存在,所以我尝试删除scipy,仍然收到错误:
$ conda remove scipy
Fetching package metadata ...........
Solving package specifications: .
PackageNotFoundError: Package not found: Conda could not find '
What can I do now?我现在能做什么? I'm using Mac.
我正在使用 Mac。
如果依赖项已经满足,请尝试安装scikit-learn
包而忽略scipy
包:
conda install --no-deps scikit-learn
All these tricks didn't work in my ubuntu machine.所有这些技巧在我的 ubuntu 机器上都不起作用。
Eventually, need to specify numpy and scipy version.最终,需要指定 numpy 和 scipy 版本。 You can get the version by
您可以通过以下方式获取版本
conda list > /tmp/conda_tmp1
pip install -U scikit-learn
conda list > /tmp/conda_tmp2
diff /tmp/conda_tmp1 /tmp/conda_tmp2
then check the output然后检查输出
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.