问题
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
Go to package location. In this case
C:\Users\kokul\Miniconda3\pkgs\bokeh-0.11.1-py27_0
Open the file
files
in directoryinfo
- Find string
bokeh-script.py-server
and replace it bybokeh-server-script.py
- 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