简体   繁体   English

CondaVerificationError: || ClobberError:使用 Python 2.7.x 或 3.7.x 创建新的 conda 环境

[英]CondaVerificationError: || ClobberError: Create a new conda environment with Python 2.7.x or 3.7.x

While Creating a new conda environment with Python 2.7.x or 3.7.x using conda create -n gl-env python=2.7 anaconda=4.0.0 I get the following errors使用 conda conda create -n gl-env python=2.7 anaconda=4.0.0使用 Python 2.7.x 或 3.7.x 创建新的 conda 环境时,出现以下错误

Preparing transaction: done Verifying transaction: failed准备交易:完成验证交易:失败

CondaVerificationError: The package for bokeh located at C:\Users\kokul\Miniconda3\pkgs\bokeh-0.11.1-py27_0
appears to be corrupted. The path 'Scripts/bokeh-script.py-server'
specified in the package manifest cannot be found.

ClobberError: This transaction has incompatible packages due to a shared path.
  packages: defaults::notebook-4.1.0-py27_2, defaults::qtconsole-4.2.0-py27_1
  path: 'menu/jupyter.ico'

How to solve it?如何解决?

This happens because it is searching for a wrong file that doesn't exist.发生这种情况是因为它正在搜索不存在的错误文件。 You can simply fix this by editing the files manifest file in package bokeh-0.11.1-py27_0您可以通过编辑包bokeh-0.11.1-py27_0files清单文件来简单地解决此bokeh-0.11.1-py27_0

  1. Go to package location.前往包裹位置。 In this case C:\\Users\\kokul\\Miniconda3\\pkgs\\bokeh-0.11.1-py27_0在这种情况下C:\\Users\\kokul\\Miniconda3\\pkgs\\bokeh-0.11.1-py27_0

  2. Open the file files in directory info打开目录info的文件files

  3. Find string bokeh-script.py-server and replace it by bokeh-server-script.py查找字符串bokeh-script.py-server并将其替换为bokeh-server-script.py
  4. Save and try again.保存并重试。

This may be due to a failed or incomplete package install.这可能是由于软件包安装失败或不完整。 I Fixed the problem by first.我首先解决了这个问题。

conda clean --all

Respond with Y回复Y

I don't know how to solve without undo and redo.我不知道如何在没有撤消和重做的情况下解决。 I undo the action by我撤消了操作

conda clean --packages --tarballs

and then redo by然后重做

conda create -n gl-env python=2.7 anaconda=4.0.0

Alternate option替代选项

  1. install Anaconda 2安装蟒蛇2
  2. create an env name gl-env in environment option and proceed with rest of option在 environment 选项中创建一个 env 名称 gl-env 并继续其余选项

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM