Problems to install deeplabcut 2.0 (GPU) using Anacoda3 in windows 10

Hi there,

I am trying to install dlc 2.0 on Windows 10 using Anaconda. So far I did:

  1. Installed appropriate Nvidia and CUDA for my GPU
  2. Installed Anaconda3
  3. Ran (on Admin):
    conda env create -n dlc -f dlc-windowsGPU.yaml
    and I get the following error:

Downloading and Extracting Packages
decorator-4.4.0 | 13 KB | ################################################################################# | 100%
Preparing transaction: done
Verifying transaction: -
SafetyError: The package for vs2015_runtime located at D:\Anaconda3\pkgs\vs2015_runtime-14.15.26706-h3a45250_0
appears to be corrupted. The path ‘vcruntime140.dll’
has an incorrect size.
reported size: 87200 bytes
actual size: 87888 bytes

ClobberError: The package ‘defaults::nbconvert-5.4.1-py_2’ cannot be installed due to a
path collision for ‘scripts/jupyter-nbconvert.exe’.
This path already exists in the target prefix, and it won’t be removed
by an uninstall action in this transaction. The path is one that conda
doesn’t recognize. It may have been created by another package manager.

ClobberError: This transaction has incompatible packages due to a shared path.
packages: defaults::vs2015_runtime-14.15.26706-h3a45250_0, defaults::msvc_runtime-1.0.1-vc14_0
path: ‘library/bin/api-ms-win-core-console-l1-1-0.dll’

ERROR conda.core.link:_execute(568): An error occurred while installing package ‘defaults::msvc_runtime-1.0.1-vc14_0’.
PermissionError(13, ‘Permission denied’)
Attempting to roll back.
Rolling back transaction: done
[Errno 13] Permission denied: ‘D:\Anaconda3\envs\dlc\vcruntime140.dll’

I have Microsoft Visual C++ 2015 Community previously installed. Seems like vcruntime140.dll is conflicting with this? Any ideas how to solve this?

you can take out the msvc line from the file (also, be sure your name you are giving it matches the ‘‘name’’ inside the file…

i.e. if you open the yaml you’ll see:

# dlc-windowsGPU.yaml 
# 
# DeepLabCut environment for use on FMI computers
# FIRST: INSTALL CORRECT DRIVER for GPU, see https://stackoverflow.com/questions/30820513/what-is-the-correct-version-of-cuda-for-my-nvidia-driver/30820690
# 
# Suggested by Jan Eglinger see https://github.com/AlexEMG/DeepLabCut/issues/112
#
# install: conda env create -f dlc-windowsGPU.yaml 
# update:  conda env update -f dlc-windowsGPU.yaml 
name: dlc-windowsGPU
dependencies:
  - python=3.6
  - msvc_runtime
  - tensorflow-gpu==1.12
  - cudnn=7
  - wxpython
  - jupyter
  - pytables==3.4.4
  - pip:
    - deeplabcut

be sure you change “name” if you want to re-name it, vs. using conda env create -n dlc -f dlc-windowsGPU.yaml, and then just delete - msvc_runtime

Thank you MWMathis,
I will remove the dependency and report back. Out of curiosity, why is the msvc_runtime needed?

It was just to help with a bug that was introduced if you installed Anaconda/python in feb, there was an issue with the package and this solved it (see more here: Tensorflow DLC 2.0 ImportError: DLL load failed: The specified module could not be found )