pytti-tools / pytti-core

https://pytti-tools.github.io/pytti-book/intro.html
MIT License
78 stars 23 forks source link

conda tensorflow gpu package conflicts during installation #223

Open alik-git opened 1 year ago

alik-git commented 1 year ago

So I am just trying to do the installation and run the demo prompt. I'm running pop os, specifically

Operating System: Pop!_OS 22.04 LTS               
          Kernel: Linux 6.0.2-76060002-generic
    Architecture: x86-64

I've tried installing stuff in a different order, tweaking the packages, etc, that just leads to different errors down the line.

For now, when I try to follow the instructions exactly as from the docs here https://pytti-tools.github.io/pytti-book/Setup.html

The failure occurs at step 5 of conda install tensorflow-gpu and the error message says:

Specifications:

  - tensorflow-gpu -> python[version='2.7.*|3.6.*|3.7.*|3.8.*|3.9.*|3.5.*|>=3.5,<3.6.0a0|>=3.6,<3.7.0a0|>=2.7,<2.8.0a0']

Your python: python=3.10

Is there a specific python version I should be using? I could not find one in the docs.

How do I fix this error to get the installation to proceed? I guess a python version should be specified in the installation or docs?

Full error message


(base) kuwajerw@pop-os [01:16:09AM 09/11/2022]:
(main) ~/repos/pytti-notebook/
$ conda create -n pytti-tools
Collecting package metadata (current_repodata.json): done
Solving environment: done

## Package Plan ##

  environment location: /home/kuwajerw/anaconda3/envs/pytti-tools

Proceed ([y]/n)? y

Preparing transaction: done
Verifying transaction: done
Executing transaction: done
#
# To activate this environment, use
#
#     $ conda activate pytti-tools
#
# To deactivate an active environment, use
#
#     $ conda deactivate

Retrieving notices: ...working... done
(base) kuwajerw@pop-os [01:16:16AM 09/11/2022]:
(main) ~/repos/pytti-notebook/
$ conda activate pytti-tools
(pytti-tools) kuwajerw@pop-os [01:16:20AM 09/11/2022]:
(main) ~/repos/pytti-notebook/
$ conda install pytorch torchvision torchaudio cudatoolkit=11.3 -c pytorch
Collecting package metadata (current_repodata.json): done
Solving environment: done

## Package Plan ##

  environment location: /home/kuwajerw/anaconda3/envs/pytti-tools

  added / updated specs:
    - cudatoolkit=11.3
    - pytorch
    - torchaudio
    - torchvision

The following NEW packages will be INSTALLED:

  _libgcc_mutex      pkgs/main/linux-64::_libgcc_mutex-0.1-main None
  _openmp_mutex      pkgs/main/linux-64::_openmp_mutex-5.1-1_gnu None
  blas               pkgs/main/linux-64::blas-1.0-mkl None
  brotlipy           pkgs/main/linux-64::brotlipy-0.7.0-py310h7f8727e_1002 None
  bzip2              pkgs/main/linux-64::bzip2-1.0.8-h7b6447c_0 None
  ca-certificates    pkgs/main/linux-64::ca-certificates-2022.10.11-h06a4308_0 None
  certifi            pkgs/main/linux-64::certifi-2022.9.24-py310h06a4308_0 None
  cffi               pkgs/main/linux-64::cffi-1.15.1-py310h74dc2b5_0 None
  charset-normalizer pkgs/main/noarch::charset-normalizer-2.0.4-pyhd3eb1b0_0 None
  cryptography       pkgs/main/linux-64::cryptography-38.0.1-py310h9ce1e76_0 None
  cudatoolkit        pkgs/main/linux-64::cudatoolkit-11.3.1-h2bc3f7f_2 None
  ffmpeg             pytorch/linux-64::ffmpeg-4.3-hf484d3e_0 None
  freetype           pkgs/main/linux-64::freetype-2.12.1-h4a9f257_0 None
  giflib             pkgs/main/linux-64::giflib-5.2.1-h7b6447c_0 None
  gmp                pkgs/main/linux-64::gmp-6.2.1-h295c915_3 None
  gnutls             pkgs/main/linux-64::gnutls-3.6.15-he1e5248_0 None
  idna               pkgs/main/linux-64::idna-3.4-py310h06a4308_0 None
  intel-openmp       pkgs/main/linux-64::intel-openmp-2021.4.0-h06a4308_3561 None
  jpeg               pkgs/main/linux-64::jpeg-9e-h7f8727e_0 None
  lame               pkgs/main/linux-64::lame-3.100-h7b6447c_0 None
  lcms2              pkgs/main/linux-64::lcms2-2.12-h3be6417_0 None
  ld_impl_linux-64   pkgs/main/linux-64::ld_impl_linux-64-2.38-h1181459_1 None
  lerc               pkgs/main/linux-64::lerc-3.0-h295c915_0 None
  libdeflate         pkgs/main/linux-64::libdeflate-1.8-h7f8727e_5 None
  libffi             pkgs/main/linux-64::libffi-3.3-he6710b0_2 None
  libgcc-ng          pkgs/main/linux-64::libgcc-ng-11.2.0-h1234567_1 None
  libgomp            pkgs/main/linux-64::libgomp-11.2.0-h1234567_1 None
  libiconv           pkgs/main/linux-64::libiconv-1.16-h7f8727e_2 None
  libidn2            pkgs/main/linux-64::libidn2-2.3.2-h7f8727e_0 None
  libpng             pkgs/main/linux-64::libpng-1.6.37-hbc83047_0 None
  libstdcxx-ng       pkgs/main/linux-64::libstdcxx-ng-11.2.0-h1234567_1 None
  libtasn1           pkgs/main/linux-64::libtasn1-4.16.0-h27cfd23_0 None
  libtiff            pkgs/main/linux-64::libtiff-4.4.0-hecacb30_1 None
  libunistring       pkgs/main/linux-64::libunistring-0.9.10-h27cfd23_0 None
  libuuid            pkgs/main/linux-64::libuuid-1.0.3-h7f8727e_2 None
  libwebp            pkgs/main/linux-64::libwebp-1.2.4-h11a3e52_0 None
  libwebp-base       pkgs/main/linux-64::libwebp-base-1.2.4-h5eee18b_0 None
  lz4-c              pkgs/main/linux-64::lz4-c-1.9.3-h295c915_1 None
  mkl                pkgs/main/linux-64::mkl-2021.4.0-h06a4308_640 None
  mkl-service        pkgs/main/linux-64::mkl-service-2.4.0-py310h7f8727e_0 None
  mkl_fft            pkgs/main/linux-64::mkl_fft-1.3.1-py310hd6ae3a3_0 None
  mkl_random         pkgs/main/linux-64::mkl_random-1.2.2-py310h00e6091_0 None
  ncurses            pkgs/main/linux-64::ncurses-6.3-h5eee18b_3 None
  nettle             pkgs/main/linux-64::nettle-3.7.3-hbbd107a_1 None
  numpy              pkgs/main/linux-64::numpy-1.23.3-py310hd5efca6_1 None
  numpy-base         pkgs/main/linux-64::numpy-base-1.23.3-py310h8e6c178_1 None
  openh264           pkgs/main/linux-64::openh264-2.1.1-h4ff587b_0 None
  openssl            pkgs/main/linux-64::openssl-1.1.1s-h7f8727e_0 None
  pillow             pkgs/main/linux-64::pillow-9.2.0-py310hace64e9_1 None
  pip                pkgs/main/linux-64::pip-22.2.2-py310h06a4308_0 None
  pycparser          pkgs/main/noarch::pycparser-2.21-pyhd3eb1b0_0 None
  pyopenssl          pkgs/main/noarch::pyopenssl-22.0.0-pyhd3eb1b0_0 None
  pysocks            pkgs/main/linux-64::pysocks-1.7.1-py310h06a4308_0 None
  python             pkgs/main/linux-64::python-3.10.6-haa1d7c7_1 None
  pytorch            pytorch/linux-64::pytorch-1.13.0-py3.10_cpu_0 None
  pytorch-mutex      pytorch/noarch::pytorch-mutex-1.0-cpu None
  readline           pkgs/main/linux-64::readline-8.2-h5eee18b_0 None
  requests           pkgs/main/linux-64::requests-2.28.1-py310h06a4308_0 None
  setuptools         pkgs/main/linux-64::setuptools-65.5.0-py310h06a4308_0 None
  six                pkgs/main/noarch::six-1.16.0-pyhd3eb1b0_1 None
  sqlite             pkgs/main/linux-64::sqlite-3.39.3-h5082296_0 None
  tk                 pkgs/main/linux-64::tk-8.6.12-h1ccaba5_0 None
  torchaudio         pytorch/linux-64::torchaudio-0.13.0-py310_cpu None
  torchvision        pytorch/linux-64::torchvision-0.14.0-py310_cpu None
  typing_extensions  pkgs/main/linux-64::typing_extensions-4.3.0-py310h06a4308_0 None
  tzdata             pkgs/main/noarch::tzdata-2022f-h04d1e81_0 None
  urllib3            pkgs/main/linux-64::urllib3-1.26.12-py310h06a4308_0 None
  wheel              pkgs/main/noarch::wheel-0.37.1-pyhd3eb1b0_0 None
  xz                 pkgs/main/linux-64::xz-5.2.6-h5eee18b_0 None
  zlib               pkgs/main/linux-64::zlib-1.2.13-h5eee18b_0 None
  zstd               pkgs/main/linux-64::zstd-1.5.2-ha4553b6_0 None

Proceed ([y]/n)? y

Preparing transaction: done
Verifying transaction: done
Executing transaction: \ By downloading and using the CUDA Toolkit conda packages, you accept the terms and conditions of the CUDA End User License Agreement (EULA): https://docs.nvidia.com/cuda/eula/index.html

done
Retrieving notices: ...working... done
(pytti-tools) kuwajerw@pop-os [01:16:33AM 09/11/2022]:
(main) ~/repos/pytti-notebook/
$ conda install tensorflow-gpu
Collecting package metadata (current_repodata.json): done
Solving environment: failed with initial frozen solve. Retrying with flexible solve.
Solving environment: failed with repodata from current_repodata.json, will retry with next repodata source.
Collecting package metadata (repodata.json): done
Solving environment: failed with initial frozen solve. Retrying with flexible solve.
Solving environment: / 
Found conflicts! Looking for incompatible packages.
This can take several minutes.  Press CTRL-C to abort.
failed                                                                                                                                                                                                                            

UnsatisfiableError: The following specifications were found
to be incompatible with the existing python installation in your environment:

Specifications:

  - tensorflow-gpu -> python[version='2.7.*|3.6.*|3.7.*|3.8.*|3.9.*|3.5.*|>=3.5,<3.6.0a0|>=3.6,<3.7.0a0|>=2.7,<2.8.0a0']

Your python: python=3.10

If python is on the left-most side of the chain, that's the version you've asked for.
When python appears to the right, that indicates that the thing on the left is somehow
not available for the python version you are constrained to. Note that conda will not
change your python version to a different minor version unless you explicitly specify
that.

The following specifications were found to be incompatible with your system:

  - feature:/linux-64::__glibc==2.35=0
  - feature:|@/linux-64::__glibc==2.35=0

Your installed version is: 2.35

(pytti-tools) kuwajerw@pop-os [01:17:22AM 09/11/2022]:
(main) ~/repos/pytti-notebook/