CompVis / stable-diffusion

A latent text-to-image diffusion model
https://ommer-lab.com/research/latent-diffusion-models/
Other
66.51k stars 9.97k forks source link

Fails when creating an environment #825

Closed c0debreaker closed 5 months ago

c0debreaker commented 5 months ago

I ran this command

$ conda env create -f environment.yaml                                                                                                                  ─╯

and I encountered these errors. What am I doing wrong?

Channels:
 - pytorch
 - defaults
Platform: linux-64
Collecting package metadata (repodata.json): done
Solving environment: done

Downloading and Extracting Packages:

Preparing transaction: done
Verifying transaction: failed

CondaVerificationError: The package for pytorch located at /home/admin/anaconda3/pkgs/pytorch-1.11.0-py3.8_cuda11.3_cudnn8.2.0_0
appears to be corrupted. The path 'lib/python3.8/site-packages/torch-1.11.0-py3.8.egg-info/SOURCES.txt'
specified in the package manifest cannot be found.

CondaVerificationError: The package for pytorch located at /home/admin/anaconda3/pkgs/pytorch-1.11.0-py3.8_cuda11.3_cudnn8.2.0_0
appears to be corrupted. The path 'lib/python3.8/site-packages/torch-1.11.0-py3.8.egg-info/dependency_links.txt'
specified in the package manifest cannot be found.

CondaVerificationError: The package for pytorch located at /home/admin/anaconda3/pkgs/pytorch-1.11.0-py3.8_cuda11.3_cudnn8.2.0_0
appears to be corrupted. The path 'lib/python3.8/site-packages/torch-1.11.0-py3.8.egg-info/entry_points.txt'
specified in the package manifest cannot be found.

CondaVerificationError: The package for pytorch located at /home/admin/anaconda3/pkgs/pytorch-1.11.0-py3.8_cuda11.3_cudnn8.2.0_0
appears to be corrupted. The path 'lib/python3.8/site-packages/torch-1.11.0-py3.8.egg-info/requires.txt'
specified in the package manifest cannot be found.

CondaVerificationError: The package for pytorch located at /home/admin/anaconda3/pkgs/pytorch-1.11.0-py3.8_cuda11.3_cudnn8.2.0_0
appears to be corrupted. The path 'lib/python3.8/site-packages/torch-1.11.0-py3.8.egg-info/top_level.txt'
specified in the package manifest cannot be found.

SafetyError: The package for pytorch located at /home/admin/anaconda3/pkgs/pytorch-1.11.0-py3.8_cuda11.3_cudnn8.2.0_0
appears to be corrupted. The path 'lib/python3.8/site-packages/torch/lib/libtorch_cuda_cpp.so'
has an incorrect size.
  reported size: 1229792968 bytes
  actual size: 630800384 bytes

CondaVerificationError: The package for pytorch located at /home/admin/anaconda3/pkgs/pytorch-1.11.0-py3.8_cuda11.3_cudnn8.2.0_0
appears to be corrupted. The path 'lib/python3.8/site-packages/torch/utils/model_dump/htm.mjs'
specified in the package manifest cannot be found.

CondaVerificationError: The package for pytorch located at /home/admin/anaconda3/pkgs/pytorch-1.11.0-py3.8_cuda11.3_cudnn8.2.0_0
appears to be corrupted. The path 'lib/python3.8/site-packages/torch/utils/model_dump/preact.mjs'
specified in the package manifest cannot be found.
FahmiSMH commented 5 months ago

Based on the error, the files appear corrupted. try to remove the pytorch package and reinstalling it based on the pytorch docs, to remove the file you should run this command

conda uninstall pytorch 
pip uninstall torch 
pip uninstall torch # run this command twice

after that reinstall pytorch package again conda install pytorch or pip install pytorch

c0debreaker commented 5 months ago

Thank you. I'll retry.