通过 conda 安装时的 Python 包错误

问题描述 投票:0回答:1

我尝试在我大学的远程电脑上安装 conda。 尝试过 conda 安装 pytorch==2.2.0 torchvision==0.17.0 pytorch-cuda=12.1 -c pytorch -c nvidia -y

它非常慢,我无法从中安装。它给出以下错误。 有人可以帮忙查看错误吗?我是通过命令行从官网安装miniconda的。

这是错误:

CondaVerificationError: The package for pytorch located at /home/wang.ziyue7/miniconda3/pkgs/pytorch-2.2.0-py3.10_cuda12.1_cudnn8.9.2_0
appears to be corrupted. The path 'lib/python3.10/site-packages/torchgen/packaged/ATen/templates/RegisterDispatchKey.cpp'
specified in the package manifest cannot be found.

CondaVerificationError: The package for pytorch located at /home/wang.ziyue7/miniconda3/pkgs/pytorch-2.2.0-py3.10_cuda12.1_cudnn8.9.2_0
appears to be corrupted. The path 'lib/python3.10/site-packages/torchgen/packaged/ATen/templates/RegisterFunctionalization.cpp'
specified in the package manifest cannot be found.

CondaVerificationError: The package for pytorch located at /home/wang.ziyue7/miniconda3/pkgs/pytorch-2.2.0-py3.10_cuda12.1_cudnn8.9.2_0
appears to be corrupted. The path 'lib/python3.10/site-packages/torchgen/packaged/ATen/templates/RegisterSchema.cpp'
specified in the package manifest cannot be found.

CondaVerificationError: The package for pytorch located at /home/wang.ziyue7/miniconda3/pkgs/pytorch-2.2.0-py3.10_cuda12.1_cudnn8.9.2_0
appears to be corrupted. The path 'lib/python3.10/site-packages/torchgen/packaged/ATen/templates/TensorMethods.cpp'
specified in the package manifest cannot be found.

CondaVerificationError: The package for pytorch located at /home/wang.ziyue7/miniconda3/pkgs/pytorch-2.2.0-py3.10_cuda12.1_cudnn8.9.2_0
appears to be corrupted. The path 'lib/python3.10/site-packages/torchgen/packaged/ATen/templates/UfuncCPU.cpp'
specified in the package manifest cannot be found.

CondaVerificationError: The package for pytorch located at /home/wang.ziyue7/miniconda3/pkgs/pytorch-2.2.0-py3.10_cuda12.1_cudnn8.9.2_0
appears to be corrupted. The path 'lib/python3.10/site-packages/torchgen/packaged/ATen/templates/UfuncCPUKernel.cpp'
specified in the package manifest cannot be found.

CondaVerificationError: The package for pytorch located at /home/wang.ziyue7/miniconda3/pkgs/pytorch-2.2.0-py3.10_cuda12.1_cudnn8.9.2_0
appears to be corrupted. The path 'lib/python3.10/site-packages/torchgen/packaged/ATen/templates/UfuncCUDA.cu'
specified in the package manifest cannot be found.

CondaVerificationError: The package for pytorch located at /home/wang.ziyue7/miniconda3/pkgs/pytorch-2.2.0-py3.10_cuda12.1_cudnn8.9.2_0
appears to be corrupted. The path 'lib/python3.10/site-packages/torchgen/packaged/ATen/templates/UnboxingFunctions.cpp'
specified in the package manifest cannot be found.

CondaVerificationError: The package for pytorch located at /home/wang.ziyue7/miniconda3/pkgs/pytorch-2.2.0-py3.10_cuda12.1_cudnn8.9.2_0
appears to be corrupted. The path 'lib/python3.10/site-packages/torchgen/packaged/autograd/README.md'
specified in the package manifest cannot be found.

CondaVerificationError: The package for pytorch located at /home/wang.ziyue7/miniconda3/pkgs/pytorch-2.2.0-py3.10_cuda12.1_cudnn8.9.2_0
appears to be corrupted. The path 'lib/python3.10/site-packages/torchgen/packaged/autograd/build.bzl'
specified in the package manifest cannot be found.

CondaVerificationError: The package for pytorch located at /home/wang.ziyue7/miniconda3/pkgs/pytorch-2.2.0-py3.10_cuda12.1_cudnn8.9.2_0
appears to be corrupted. The path 'lib/python3.10/site-packages/torchgen/packaged/autograd/templates/ADInplaceOrViewType.cpp'
specified in the package manifest cannot be found.

CondaVerificationError: The package for pytorch located at /home/wang.ziyue7/miniconda3/pkgs/pytorch-2.2.0-py3.10_cuda12.1_cudnn8.9.2_0
appears to be corrupted. The path 'lib/python3.10/site-packages/torchgen/packaged/autograd/templates/Functions.cpp'
specified in the package manifest cannot be found.

CondaVerificationError: The package for pytorch located at /home/wang.ziyue7/miniconda3/pkgs/pytorch-2.2.0-py3.10_cuda12.1_cudnn8.9.2_0
appears to be corrupted. The path 'lib/python3.10/site-packages/torchgen/packaged/autograd/templates/TraceType.cpp'
specified in the package manifest cannot be found.

CondaVerificationError: The package for pytorch located at /home/wang.ziyue7/miniconda3/pkgs/pytorch-2.2.0-py3.10_cuda12.1_cudnn8.9.2_0
appears to be corrupted. The path 'lib/python3.10/site-packages/torchgen/packaged/autograd/templates/VariableType.cpp'
specified in the package manifest cannot be found.

CondaVerificationError: The package for pytorch located at /home/wang.ziyue7/miniconda3/pkgs/pytorch-2.2.0-py3.10_cuda12.1_cudnn8.9.2_0
appears to be corrupted. The path 'lib/python3.10/site-packages/torchgen/packaged/autograd/templates/annotated_fn_args.py.in'
specified in the package manifest cannot be found.

CondaVerificationError: The package for pytorch located at /home/wang.ziyue7/miniconda3/pkgs/pytorch-2.2.0-py3.10_cuda12.1_cudnn8.9.2_0
appears to be corrupted. The path 'lib/python3.10/site-packages/torchgen/packaged/autograd/templates/python_enum_tag.cpp'
specified in the package manifest cannot be found.

CondaVerificationError: The package for pytorch located at /home/wang.ziyue7/miniconda3/pkgs/pytorch-2.2.0-py3.10_cuda12.1_cudnn8.9.2_0
appears to be corrupted. The path 'lib/python3.10/site-packages/torchgen/packaged/autograd/templates/python_fft_functions.cpp'
specified in the package manifest cannot be found.

CondaVerificationError: The package for pytorch located at /home/wang.ziyue7/miniconda3/pkgs/pytorch-2.2.0-py3.10_cuda12.1_cudnn8.9.2_0
appears to be corrupted. The path 'lib/python3.10/site-packages/torchgen/packaged/autograd/templates/python_functions.cpp'
specified in the package manifest cannot be found.

CondaVerificationError: The package for pytorch located at /home/wang.ziyue7/miniconda3/pkgs/pytorch-2.2.0-py3.10_cuda12.1_cudnn8.9.2_0
appears to be corrupted. The path 'lib/python3.10/site-packages/torchgen/packaged/autograd/templates/python_linalg_functions.cpp'
specified in the package manifest cannot be found.

CondaVerificationError: The package for pytorch located at /home/wang.ziyue7/miniconda3/pkgs/pytorch-2.2.0-py3.10_cuda12.1_cudnn8.9.2_0
appears to be corrupted. The path 'lib/python3.10/site-packages/torchgen/packaged/autograd/templates/python_nested_functions.cpp'
specified in the package manifest cannot be found.

CondaVerificationError: The package for pytorch located at /home/wang.ziyue7/miniconda3/pkgs/pytorch-2.2.0-py3.10_cuda12.1_cudnn8.9.2_0
appears to be corrupted. The path 'lib/python3.10/site-packages/torchgen/packaged/autograd/templates/python_nn_functions.cpp'
specified in the package manifest cannot be found.

CondaVerificationError: The package for pytorch located at /home/wang.ziyue7/miniconda3/pkgs/pytorch-2.2.0-py3.10_cuda12.1_cudnn8.9.2_0
appears to be corrupted. The path 'lib/python3.10/site-packages/torchgen/packaged/autograd/templates/python_return_types.cpp'
specified in the package manifest cannot be found.

CondaVerificationError: The package for pytorch located at /home/wang.ziyue7/miniconda3/pkgs/pytorch-2.2.0-py3.10_cuda12.1_cudnn8.9.2_0
appears to be corrupted. The path 'lib/python3.10/site-packages/torchgen/packaged/autograd/templates/python_sparse_functions.cpp'
specified in the package manifest cannot be found.

CondaVerificationError: The package for pytorch located at /home/wang.ziyue7/miniconda3/pkgs/pytorch-2.2.0-py3.10_cuda12.1_cudnn8.9.2_0
appears to be corrupted. The path 'lib/python3.10/site-packages/torchgen/packaged/autograd/templates/python_special_functions.cpp'
specified in the package manifest cannot be found.

CondaVerificationError: The package for pytorch located at /home/wang.ziyue7/miniconda3/pkgs/pytorch-2.2.0-py3.10_cuda12.1_cudnn8.9.2_0
appears to be corrupted. The path 'lib/python3.10/site-packages/torchgen/packaged/autograd/templates/python_torch_functions.cpp'
specified in the package manifest cannot be found.

CondaVerificationError: The package for pytorch located at /home/wang.ziyue7/miniconda3/pkgs/pytorch-2.2.0-py3.10_cuda12.1_cudnn8.9.2_0
appears to be corrupted. The path 'lib/python3.10/site-packages/torchgen/packaged/autograd/templates/python_variable_methods.cpp'
specified in the package manifest cannot be found.

ClobberError: This transaction has incompatible packages due to a shared path.
  packages: defaults/linux-64::jpeg-9e-h5eee18b_3, pytorch/linux-64::libjpeg-turbo-2.0.0-h9bf148f_0
  path: 'bin/cjpeg'


ClobberError: This transaction has incompatible packages due to a shared path.
  packages: defaults/linux-64::jpeg-9e-h5eee18b_3, pytorch/linux-64::libjpeg-turbo-2.0.0-h9bf148f_0
  path: 'bin/djpeg'


ClobberError: This transaction has incompatible packages due to a shared path.
  packages: defaults/linux-64::jpeg-9e-h5eee18b_3, pytorch/linux-64::libjpeg-turbo-2.0.0-h9bf148f_0
  path: 'bin/jpegtran'


ClobberError: This transaction has incompatible packages due to a shared path.
  packages: defaults/linux-64::jpeg-9e-h5eee18b_3, pytorch/linux-64::libjpeg-turbo-2.0.0-h9bf148f_0
  path: 'bin/rdjpgcom'


ClobberError: This transaction has incompatible packages due to a shared path.
  packages: defaults/linux-64::jpeg-9e-h5eee18b_3, pytorch/linux-64::libjpeg-turbo-2.0.0-h9bf148f_0
  path: 'bin/wrjpgcom'


ClobberError: This transaction has incompatible packages due to a shared path.
  packages: defaults/linux-64::jpeg-9e-h5eee18b_3, pytorch/linux-64::libjpeg-turbo-2.0.0-h9bf148f_0
  path: 'include/jconfig.h'


ClobberError: This transaction has incompatible packages due to a shared path.
  packages: defaults/linux-64::jpeg-9e-h5eee18b_3, pytorch/linux-64::libjpeg-turbo-2.0.0-h9bf148f_0
  path: 'include/jerror.h'


ClobberError: This transaction has incompatible packages due to a shared path.
  packages: defaults/linux-64::jpeg-9e-h5eee18b_3, pytorch/linux-64::libjpeg-turbo-2.0.0-h9bf148f_0
  path: 'include/jmorecfg.h'


ClobberError: This transaction has incompatible packages due to a shared path.
  packages: defaults/linux-64::jpeg-9e-h5eee18b_3, pytorch/linux-64::libjpeg-turbo-2.0.0-h9bf148f_0
  path: 'include/jpeglib.h'


ClobberError: This transaction has incompatible packages due to a shared path.
  packages: defaults/linux-64::jpeg-9e-h5eee18b_3, pytorch/linux-64::libjpeg-turbo-2.0.0-h9bf148f_0
  path: 'lib/libjpeg.a'


ClobberError: This transaction has incompatible packages due to a shared path.
  packages: defaults/linux-64::jpeg-9e-h5eee18b_3, pytorch/linux-64::libjpeg-turbo-2.0.0-h9bf148f_0
  path: 'lib/libjpeg.so'
python pytorch anaconda conda miniconda
1个回答
0
投票

您的帖子有两个相关问题:

  1. 损坏的包文件:CondaVerificationError 表明 Pytorch 中预期的某些文件丢失或损坏。可能是软件包安装过程被中断或下载不正确。
  2. **路径冲突:**错误ClobberError表明使用的文件路径有问题。当两个尝试将文件安装到同一位置时会发生此类错误。在这种情况下,冲突发生在 jpeg 和 lipjpeg-turbo 之间,两者都想使用 bin 并包含文件夹或目录。

请采取以下步骤解决问题:

  1. 清除 conda 包缓存以删除可能损坏的文件。 使用代码(bash)conda clean --all
  2. 为了确保您使用最新版本的 conda,请使用以下代码更新 Conda: (bash) conda update conda 。这可能会解决兼容性问题。
  3. 使用原始命令重新安装,再次尝试安装。这是代码conda install pytorch==2.2.0 torchvision==0.17.0 pytorch-cuda=12.1 -c pytorch -c nvidia
© www.soinside.com 2019 - 2024. All rights reserved.