Skip to content

Instantly share code, notes, and snippets.

@thomasaarholt
Created June 12, 2021 09:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save thomasaarholt/8053972475aee719015083cbe408fafe to your computer and use it in GitHub Desktop.
Save thomasaarholt/8053972475aee719015083cbe408fafe to your computer and use it in GitHub Desktop.
Installing CPU pytorch using conda, which does not include cudatoolkit
(base) ~: conda create --name torch pytorch torchvision torchaudio cpuonly -c pytorch
Collecting package metadata (current_repodata.json): done
Solving environment: done
## Package Plan ##
environment location: /home/thomasaar/mambaforge/envs/torch
added / updated specs:
- cpuonly
- pytorch
- torchaudio
- torchvision
The following packages will be downloaded:
package | build
---------------------------|-----------------
_openmp_mutex-4.5 | 1_llvm 5 KB conda-forge
blas-2.109 | mkl 12 KB conda-forge
blas-devel-3.9.0 | 9_mkl 11 KB conda-forge
certifi-2021.5.30 | py38h578d9bd_0 141 KB conda-forge
cpuonly-1.0 | 0 2 KB pytorch
freetype-2.10.4 | h0708190_1 890 KB conda-forge
jbig-2.1 | h7f98852_2003 43 KB conda-forge
jpeg-9d | h36c2ea0_0 264 KB conda-forge
lcms2-2.12 | hddcbb42_0 443 KB conda-forge
lerc-2.2.1 | h9c3ff4c_0 213 KB conda-forge
libblas-3.9.0 | 9_mkl 12 KB conda-forge
libcblas-3.9.0 | 9_mkl 11 KB conda-forge
libdeflate-1.7 | h7f98852_5 67 KB conda-forge
liblapack-3.9.0 | 9_mkl 11 KB conda-forge
liblapacke-3.9.0 | 9_mkl 11 KB conda-forge
libpng-1.6.37 | h21135ba_2 306 KB conda-forge
libtiff-4.3.0 | hf544144_1 668 KB conda-forge
libuv-1.41.0 | h7f98852_0 1.0 MB conda-forge
libwebp-base-1.2.0 | h7f98852_2 815 KB conda-forge
llvm-openmp-11.1.0 | h4bd325d_1 4.7 MB conda-forge
lz4-c-1.9.3 | h9c3ff4c_0 179 KB conda-forge
mkl-2021.2.0 | h726a3e6_389 223.7 MB conda-forge
mkl-devel-2021.2.0 | ha770c72_390 25 KB conda-forge
mkl-include-2021.2.0 | h726a3e6_389 665 KB conda-forge
ninja-1.10.2 | h4bd325d_0 2.4 MB conda-forge
numpy-1.20.3 | py38h9894fe3_1 5.8 MB conda-forge
olefile-0.46 | pyh9f0ad1d_1 32 KB conda-forge
openjpeg-2.4.0 | hb52868f_1 444 KB conda-forge
pillow-8.2.0 | py38ha0e1e83_1 688 KB conda-forge
python-3.8.10 |h49503c6_1_cpython 26.2 MB conda-forge
python_abi-3.8 | 1_cp38 4 KB conda-forge
pytorch-1.7.0 | py3.8_cpu_0 59.5 MB pytorch
setuptools-49.6.0 | py38h578d9bd_3 929 KB conda-forge
tbb-2021.2.0 | h4bd325d_0 2.1 MB conda-forge
torchaudio-0.7.0 | py38 9.9 MB pytorch
torchvision-0.8.1 | py38_cpu 17.2 MB pytorch
typing_extensions-3.10.0.0 | pyha770c72_0 28 KB conda-forge
------------------------------------------------------------
Total: 359.3 MB
The following NEW packages will be INSTALLED:
_libgcc_mutex conda-forge/linux-64::_libgcc_mutex-0.1-conda_forge
_openmp_mutex conda-forge/linux-64::_openmp_mutex-4.5-1_llvm
blas conda-forge/linux-64::blas-2.109-mkl
blas-devel conda-forge/linux-64::blas-devel-3.9.0-9_mkl
ca-certificates conda-forge/linux-64::ca-certificates-2021.5.30-ha878542_0
certifi conda-forge/linux-64::certifi-2021.5.30-py38h578d9bd_0
cpuonly pytorch/noarch::cpuonly-1.0-0
freetype conda-forge/linux-64::freetype-2.10.4-h0708190_1
jbig conda-forge/linux-64::jbig-2.1-h7f98852_2003
jpeg conda-forge/linux-64::jpeg-9d-h36c2ea0_0
lcms2 conda-forge/linux-64::lcms2-2.12-hddcbb42_0
ld_impl_linux-64 conda-forge/linux-64::ld_impl_linux-64-2.35.1-hea4e1c9_2
lerc conda-forge/linux-64::lerc-2.2.1-h9c3ff4c_0
libblas conda-forge/linux-64::libblas-3.9.0-9_mkl
libcblas conda-forge/linux-64::libcblas-3.9.0-9_mkl
libdeflate conda-forge/linux-64::libdeflate-1.7-h7f98852_5
libffi conda-forge/linux-64::libffi-3.3-h58526e2_2
libgcc-ng conda-forge/linux-64::libgcc-ng-9.3.0-h2828fa1_19
libgfortran-ng conda-forge/linux-64::libgfortran-ng-9.3.0-hff62375_19
libgfortran5 conda-forge/linux-64::libgfortran5-9.3.0-hff62375_19
liblapack conda-forge/linux-64::liblapack-3.9.0-9_mkl
liblapacke conda-forge/linux-64::liblapacke-3.9.0-9_mkl
libpng conda-forge/linux-64::libpng-1.6.37-h21135ba_2
libstdcxx-ng conda-forge/linux-64::libstdcxx-ng-9.3.0-h6de172a_19
libtiff conda-forge/linux-64::libtiff-4.3.0-hf544144_1
libuv conda-forge/linux-64::libuv-1.41.0-h7f98852_0
libwebp-base conda-forge/linux-64::libwebp-base-1.2.0-h7f98852_2
llvm-openmp conda-forge/linux-64::llvm-openmp-11.1.0-h4bd325d_1
lz4-c conda-forge/linux-64::lz4-c-1.9.3-h9c3ff4c_0
mkl conda-forge/linux-64::mkl-2021.2.0-h726a3e6_389
mkl-devel conda-forge/linux-64::mkl-devel-2021.2.0-ha770c72_390
mkl-include conda-forge/linux-64::mkl-include-2021.2.0-h726a3e6_389
ncurses conda-forge/linux-64::ncurses-6.2-h58526e2_4
ninja conda-forge/linux-64::ninja-1.10.2-h4bd325d_0
numpy conda-forge/linux-64::numpy-1.20.3-py38h9894fe3_1
olefile conda-forge/noarch::olefile-0.46-pyh9f0ad1d_1
openjpeg conda-forge/linux-64::openjpeg-2.4.0-hb52868f_1
openssl conda-forge/linux-64::openssl-1.1.1k-h7f98852_0
pillow conda-forge/linux-64::pillow-8.2.0-py38ha0e1e83_1
pip conda-forge/noarch::pip-21.1.2-pyhd8ed1ab_0
python conda-forge/linux-64::python-3.8.10-h49503c6_1_cpython
python_abi conda-forge/linux-64::python_abi-3.8-1_cp38
pytorch pytorch/linux-64::pytorch-1.7.0-py3.8_cpu_0
readline conda-forge/linux-64::readline-8.1-h46c0cb4_0
setuptools conda-forge/linux-64::setuptools-49.6.0-py38h578d9bd_3
sqlite conda-forge/linux-64::sqlite-3.35.5-h74cdb3f_0
tbb conda-forge/linux-64::tbb-2021.2.0-h4bd325d_0
tk conda-forge/linux-64::tk-8.6.10-h21135ba_1
torchaudio pytorch/linux-64::torchaudio-0.7.0-py38
torchvision pytorch/linux-64::torchvision-0.8.1-py38_cpu
typing_extensions conda-forge/noarch::typing_extensions-3.10.0.0-pyha770c72_0
wheel conda-forge/noarch::wheel-0.36.2-pyhd3deb0d_0
xz conda-forge/linux-64::xz-5.2.5-h516909a_1
zlib conda-forge/linux-64::zlib-1.2.11-h516909a_1010
zstd conda-forge/linux-64::zstd-1.5.0-ha95c52a_0
Proceed ([y]/n)?
Downloading and Extracting Packages
typing_extensions-3. | 28 KB | ############################################################################ | 100%
mkl-2021.2.0 | 223.7 MB | ############################################################################ | 100%
openjpeg-2.4.0 | 444 KB | ############################################################################ | 100%
tbb-2021.2.0 | 2.1 MB | ############################################################################ | 100%
jpeg-9d | 264 KB | ############################################################################ | 100%
pillow-8.2.0 | 688 KB | ############################################################################ | 100%
libwebp-base-1.2.0 | 815 KB | ############################################################################ | 100%
setuptools-49.6.0 | 929 KB | ############################################################################ | 100%
python-3.8.10 | 26.2 MB | ############################################################################ | 100%
libcblas-3.9.0 | 11 KB | ############################################################################ | 100%
certifi-2021.5.30 | 141 KB | ############################################################################ | 100%
lz4-c-1.9.3 | 179 KB | ############################################################################ | 100%
liblapacke-3.9.0 | 11 KB | ############################################################################ | 100%
olefile-0.46 | 32 KB | ############################################################################ | 100%
libpng-1.6.37 | 306 KB | ############################################################################ | 100%
lcms2-2.12 | 443 KB | ############################################################################ | 100%
libdeflate-1.7 | 67 KB | ############################################################################ | 100%
python_abi-3.8 | 4 KB | ############################################################################ | 100%
_openmp_mutex-4.5 | 5 KB | ############################################################################ | 100%
libblas-3.9.0 | 12 KB | ############################################################################ | 100%
cpuonly-1.0 | 2 KB | ############################################################################ | 100%
ninja-1.10.2 | 2.4 MB | ############################################################################ | 100%
jbig-2.1 | 43 KB | ############################################################################ | 100%
libtiff-4.3.0 | 668 KB | ############################################################################ | 100%
torchaudio-0.7.0 | 9.9 MB | ############################################################################ | 100%
lerc-2.2.1 | 213 KB | ############################################################################ | 100%
blas-2.109 | 12 KB | ############################################################################ | 100%
libuv-1.41.0 | 1.0 MB | ############################################################################ | 100%
blas-devel-3.9.0 | 11 KB | ############################################################################ | 100%
freetype-2.10.4 | 890 KB | ############################################################################ | 100%
liblapack-3.9.0 | 11 KB | ############################################################################ | 100%
torchvision-0.8.1 | 17.2 MB | ############################################################################ | 100%
pytorch-1.7.0 | 59.5 MB | ############################################################################ | 100%
mkl-include-2021.2.0 | 665 KB | ############################################################################ | 100%
llvm-openmp-11.1.0 | 4.7 MB | ############################################################################ | 100%
numpy-1.20.3 | 5.8 MB | ############################################################################ | 100%
mkl-devel-2021.2.0 | 25 KB | ############################################################################ | 100%
Preparing transaction: done
Verifying transaction: done
Executing transaction: done
#
# To activate this environment, use
#
# $ conda activate torch
#
# To deactivate an active environment, use
#
# $ conda deactivate
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment