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

做~自己de王妃 提交于 2019-12-07 08:05:56

问题


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

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?


回答1:


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

  1. Go to package location. In this case C:\Users\kokul\Miniconda3\pkgs\bokeh-0.11.1-py27_0

  2. Open the file files in directory info

  3. Find string bokeh-script.py-server and replace it by bokeh-server-script.py
  4. Save and try again.



回答2:


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



回答3:


This may be due to a failed or incomplete package install. I Fixed the problem by first.

conda clean --all

Respond with Y



来源:https://stackoverflow.com/questions/53048124/condaverificationerror-clobbererror-create-a-new-conda-environment-with-pyt

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!