(base) root@sh:/home/data/Linly-Talker# conda activate Linly-Talker
(Linly-Talker) root@sh:/home/data/Linly-Talker# conda install pytorch==1.12.1 torchvision==0.13.1 torchaudio==0.12.1 cudatoolkit=11.3 -c pytorch
Channels:
- pytorch
- defaults
Platform: linux-64
Collecting package metadata (repodata.json): done
Solving environment: done
## Package Plan ##
environment location: /root/miniconda3/envs/Linly-Talker
added / updated specs:
- cudatoolkit=11.3
- pytorch==1.12.1
- torchaudio==0.12.1
- torchvision==0.13.1
The following packages will be downloaded:
package | build
---------------------------|-----------------
blas-1.0 | mkl 6 KB
brotli-python-1.0.9 | py310h6a678d5_7 907 KB
certifi-2024.2.2 | py310h06a4308_0 159 KB
cudatoolkit-11.3.1 | h2bc3f7f_2 549.3 MB
ffmpeg-4.3 | hf484d3e_0 9.9 MB pytorch
freetype-2.12.1 | h4a9f257_0 626 KB
gmp-6.2.1 | h295c915_3 544 KB
gnutls-3.6.15 | he1e5248_0 1.0 MB
idna-3.4 | py310h06a4308_0 97 KB
intel-openmp-2023.1.0 | hdb19cb5_46306 17.2 MB
jpeg-9e | h5eee18b_1 262 KB
lame-3.100 | h7b6447c_0 323 KB
lcms2-2.12 | h3be6417_0 312 KB
lerc-3.0 | h295c915_0 196 KB
libdeflate-1.17 | h5eee18b_1 64 KB
libiconv-1.16 | h7f8727e_2 736 KB
libidn2-2.3.4 | h5eee18b_0 146 KB
libpng-1.6.39 | h5eee18b_0 304 KB
libtasn1-4.19.0 | h5eee18b_0 63 KB
libtiff-4.5.1 | h6a678d5_0 533 KB
libunistring-0.9.10 | h27cfd23_0 536 KB
libwebp-base-1.3.2 | h5eee18b_0 387 KB
mkl-2023.1.0 | h213fc3f_46344 171.5 MB
mkl-service-2.4.0 | py310h5eee18b_1 54 KB
mkl_fft-1.3.8 | py310h5eee18b_0 216 KB
mkl_random-1.2.4 | py310hdb19cb5_0 312 KB
nettle-3.7.3 | hbbd107a_1 809 KB
numpy-1.26.3 | py310h5f9d8c6_0 10 KB
numpy-base-1.26.3 | py310hb5e798b_0 7.2 MB
openh264-2.1.1 | h4ff587b_0 711 KB
openjpeg-2.4.0 | h3ad879b_0 331 KB
pillow-10.2.0 | py310h5eee18b_0 774 KB
pysocks-1.7.1 | py310h06a4308_0 28 KB
pytorch-1.12.1 |py3.10_cuda11.3_cudnn8.3.2_0 1.20 GB pytorch
pytorch-mutex-1.0 | cuda 3 KB pytorch
requests-2.31.0 | py310h06a4308_1 97 KB
tbb-2021.8.0 | hdb19cb5_0 1.6 MB
torchaudio-0.12.1 | py310_cu113 6.2 MB pytorch
torchvision-0.13.1 | py310_cu113 28.3 MB pytorch
typing_extensions-4.9.0 | py310h06a4308_1 55 KB
urllib3-2.1.0 | py310h06a4308_1 158 KB
------------------------------------------------------------
Total: 1.98 GB
The following NEW packages will be INSTALLED:
blas pkgs/main/linux-64::blas-1.0-mkl
brotli-python pkgs/main/linux-64::brotli-python-1.0.9-py310h6a678d5_7
certifi pkgs/main/linux-64::certifi-2024.2.2-py310h06a4308_0
charset-normalizer pkgs/main/noarch::charset-normalizer-2.0.4-pyhd3eb1b0_0
cudatoolkit pkgs/main/linux-64::cudatoolkit-11.3.1-h2bc3f7f_2
ffmpeg pytorch/linux-64::ffmpeg-4.3-hf484d3e_0
freetype pkgs/main/linux-64::freetype-2.12.1-h4a9f257_0
gmp pkgs/main/linux-64::gmp-6.2.1-h295c915_3
gnutls pkgs/main/linux-64::gnutls-3.6.15-he1e5248_0
idna pkgs/main/linux-64::idna-3.4-py310h06a4308_0
intel-openmp pkgs/main/linux-64::intel-openmp-2023.1.0-hdb19cb5_46306
jpeg pkgs/main/linux-64::jpeg-9e-h5eee18b_1
lame pkgs/main/linux-64::lame-3.100-h7b6447c_0
lcms2 pkgs/main/linux-64::lcms2-2.12-h3be6417_0
lerc pkgs/main/linux-64::lerc-3.0-h295c915_0
libdeflate pkgs/main/linux-64::libdeflate-1.17-h5eee18b_1
libiconv pkgs/main/linux-64::libiconv-1.16-h7f8727e_2
libidn2 pkgs/main/linux-64::libidn2-2.3.4-h5eee18b_0
libpng pkgs/main/linux-64::libpng-1.6.39-h5eee18b_0
libtasn1 pkgs/main/linux-64::libtasn1-4.19.0-h5eee18b_0
libtiff pkgs/main/linux-64::libtiff-4.5.1-h6a678d5_0
libunistring pkgs/main/linux-64::libunistring-0.9.10-h27cfd23_0
libwebp-base pkgs/main/linux-64::libwebp-base-1.3.2-h5eee18b_0
lz4-c pkgs/main/linux-64::lz4-c-1.9.4-h6a678d5_0
mkl pkgs/main/linux-64::mkl-2023.1.0-h213fc3f_46344
mkl-service pkgs/main/linux-64::mkl-service-2.4.0-py310h5eee18b_1
mkl_fft pkgs/main/linux-64::mkl_fft-1.3.8-py310h5eee18b_0
mkl_random pkgs/main/linux-64::mkl_random-1.2.4-py310hdb19cb5_0
nettle pkgs/main/linux-64::nettle-3.7.3-hbbd107a_1
numpy pkgs/main/linux-64::numpy-1.26.3-py310h5f9d8c6_0
numpy-base pkgs/main/linux-64::numpy-base-1.26.3-py310hb5e798b_0
openh264 pkgs/main/linux-64::openh264-2.1.1-h4ff587b_0
openjpeg pkgs/main/linux-64::openjpeg-2.4.0-h3ad879b_0
pillow pkgs/main/linux-64::pillow-10.2.0-py310h5eee18b_0
pysocks pkgs/main/linux-64::pysocks-1.7.1-py310h06a4308_0
pytorch pytorch/linux-64::pytorch-1.12.1-py3.10_cuda11.3_cudnn8.3.2_0
pytorch-mutex pytorch/noarch::pytorch-mutex-1.0-cuda
requests pkgs/main/linux-64::requests-2.31.0-py310h06a4308_1
tbb pkgs/main/linux-64::tbb-2021.8.0-hdb19cb5_0
torchaudio pytorch/linux-64::torchaudio-0.12.1-py310_cu113
torchvision pytorch/linux-64::torchvision-0.13.1-py310_cu113
typing_extensions pkgs/main/linux-64::typing_extensions-4.9.0-py310h06a4308_1
urllib3 pkgs/main/linux-64::urllib3-2.1.0-py310h06a4308_1
zstd pkgs/main/linux-64::zstd-1.5.5-hc292b87_0
Proceed ([y]/n)? y
Downloading and Extracting Packages:
CondaError: Downloaded bytes did not match Content-Length
url: https://conda.anaconda.org/pytorch/linux-64/pytorch-1.12.1-py3.10_cuda11.3_cudnn8.3.2_0.tar.bz2
target_path: /root/miniconda3/pkgs/pytorch-1.12.1-py3.10_cuda11.3_cudnn8.3.2_0.tar.bz2
Content-Length: 1284645212
downloaded bytes: 15120796
CondaError: Downloaded bytes did not match Content-Length
url: https://conda.anaconda.org/pytorch/linux-64/pytorch-1.12.1-py3.10_cuda11.3_cudnn8.3.2_0.tar.bz2
target_path: /root/miniconda3/pkgs/pytorch-1.12.1-py3.10_cuda11.3_cudnn8.3.2_0.tar.bz2
Content-Length: 1284645212
downloaded bytes: 15120796
这段信息是在描述使用Conda(一个开源包管理系统和环境管理系统)安装特定版本的PyTorch、TorchVision、TorchAudio以及CUDA工具包的过程。这里涉及的操作主要发生在Linux操作系统的命令行界面中,具体步骤如下:
激活环境:使用conda activate Linly-Talker命令激活名为Linly-Talker的Conda环境。这意味着接下来的操作都将在这个虚拟环境中进行,这有助于隔离不同项目的依赖包,避免版本冲突。
安装包:通过运行conda install pytorch1.12.1 torchvision0.13.1 torchaudio==0.12.1 cudatoolkit=11.3 -c pytorch命令来安装指定版本的PyTorch、TorchVision、TorchAudio和CUDA工具包。-c pytorch指定了使用PyTorch官方的Conda频道来安装包,以确保兼容性和稳定性。
包的下载与安装:接下来,Conda解析并列出了需要安装的包及其版本信息,包括这些包的大小,然后开始下载这些包。这个过程中显示了即将被安装的包的详细列表,包括它们的版本和大小,总计约1.98GB。
下载问题:在下载过程中遇到了一个问题,即下载的字节与预期的Content-Length不匹配。这通常意味着下载过程中出现了网络问题,导致文件没有完全下载。具体来说,pytorch-1.12.1-py3.10_cuda11.3_cudnn8.3.2_0.tar.bz2文件的下载出现了问题,只下载了约15MB的数据,而预期应该是约1.28GB。
这个错误提示你在下载PyTorch包时遇到了网络问题。解决这类问题的一般方法包括检查网络连接、尝试重新执行命令或使用不同的网络环境。如果问题持续存在,还可以考虑从PyTorch的官方网站手动下载包,然后使用Conda或pip从本地文件安装。