Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Installing from conda with official installation command latest PyTorch 1.9.0 installs torchvision 0.2.2 #4240

Closed
vadimkantorov opened this issue Aug 2, 2021 · 19 comments

Comments

@vadimkantorov
Copy link

vadimkantorov commented Aug 2, 2021

@soumith @ezyang

My machine is supported, previously with PyTorch 1.8.0, correct torchvision was being installed.

It would be good to somehow test most common conda installation scenarios. These problems have come back so many times. One could run once every major release a matrix with different machines / OS images / GPUs on EC2 just for testing this.

I think it would be good to modify torchvision 0.2.2 binaries so that it shows a message of how to fix it if it's run with recent PyTorch.

Also, for some reason conda website has a torchvision release 0.10.0, while torchvision github has only 0.9.2-rc2.

PREFIX=/home/lab/lab/vadim/prefix
mkdir -p $PREFIX

curl -L -so $PREFIX/miniconda.sh https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh && chmod +x $PREFIX/miniconda.sh && $PREFIX/miniconda.sh -b -p $PREFIX/miniconda && rm $PREFIX/miniconda.sh

export PATH=$PREFIX/miniconda/bin:$PATH

# this is officially recommended command
conda install -y pytorch torchvision cudatoolkit=11.1 -c pytorch -c nvidia
PREFIX=/home/lab/lab/vadim/prefix/miniconda
Unpacking payload ...
Collecting package metadata (current_repodata.json): done
Solving environment: done

## Package Plan ##

  environment location: /home/lab/lab/vadim/prefix/miniconda

  added / updated specs:
    - _libgcc_mutex==0.1=main
    - _openmp_mutex==4.5=1_gnu
    - brotlipy==0.7.0=py39h27cfd23_1003
    - ca-certificates==2021.7.5=h06a4308_1
    - certifi==2021.5.30=py39h06a4308_0
    - cffi==1.14.6=py39h400218f_0
    - chardet==4.0.0=py39h06a4308_1003
    - conda-package-handling==1.7.3=py39h27cfd23_1
    - conda==4.10.3=py39h06a4308_0
    - cryptography==3.4.7=py39hd23ed53_0
    - idna==2.10=pyhd3eb1b0_0
    - ld_impl_linux-64==2.35.1=h7274673_9
    - libffi==3.3=he6710b0_2
    - libgcc-ng==9.3.0=h5101ec6_17
    - libgomp==9.3.0=h5101ec6_17
    - libstdcxx-ng==9.3.0=hd4cf53a_17
    - ncurses==6.2=he6710b0_1
    - openssl==1.1.1k=h27cfd23_0
    - pip==21.1.3=py39h06a4308_0
    - pycosat==0.6.3=py39h27cfd23_0
    - pycparser==2.20=py_2
    - pyopenssl==20.0.1=pyhd3eb1b0_1
    - pysocks==1.7.1=py39h06a4308_0
    - python==3.9.5=h12debd9_4
    - readline==8.1=h27cfd23_0
    - requests==2.25.1=pyhd3eb1b0_0
    - ruamel_yaml==0.15.100=py39h27cfd23_0
    - setuptools==52.0.0=py39h06a4308_0
    - six==1.16.0=pyhd3eb1b0_0
    - sqlite==3.36.0=hc218d9a_0
    - tk==8.6.10=hbc83047_0
    - tqdm==4.61.2=pyhd3eb1b0_1
    - tzdata==2021a=h52ac0ba_0
    - urllib3==1.26.6=pyhd3eb1b0_1
    - wheel==0.36.2=pyhd3eb1b0_0
    - xz==5.2.5=h7b6447c_0
    - yaml==0.2.5=h7b6447c_0
    - zlib==1.2.11=h7b6447c_3


The following NEW packages will be INSTALLED:

  _libgcc_mutex      pkgs/main/linux-64::_libgcc_mutex-0.1-main
  _openmp_mutex      pkgs/main/linux-64::_openmp_mutex-4.5-1_gnu
  brotlipy           pkgs/main/linux-64::brotlipy-0.7.0-py39h27cfd23_1003
  ca-certificates    pkgs/main/linux-64::ca-certificates-2021.7.5-h06a4308_1
  certifi            pkgs/main/linux-64::certifi-2021.5.30-py39h06a4308_0
  cffi               pkgs/main/linux-64::cffi-1.14.6-py39h400218f_0
  chardet            pkgs/main/linux-64::chardet-4.0.0-py39h06a4308_1003
  conda              pkgs/main/linux-64::conda-4.10.3-py39h06a4308_0
  conda-package-han~ pkgs/main/linux-64::conda-package-handling-1.7.3-py39h27cfd23_1
  cryptography       pkgs/main/linux-64::cryptography-3.4.7-py39hd23ed53_0
  idna               pkgs/main/noarch::idna-2.10-pyhd3eb1b0_0
  ld_impl_linux-64   pkgs/main/linux-64::ld_impl_linux-64-2.35.1-h7274673_9
  libffi             pkgs/main/linux-64::libffi-3.3-he6710b0_2
  libgcc-ng          pkgs/main/linux-64::libgcc-ng-9.3.0-h5101ec6_17
  libgomp            pkgs/main/linux-64::libgomp-9.3.0-h5101ec6_17
  libstdcxx-ng       pkgs/main/linux-64::libstdcxx-ng-9.3.0-hd4cf53a_17
  ncurses            pkgs/main/linux-64::ncurses-6.2-he6710b0_1
  openssl            pkgs/main/linux-64::openssl-1.1.1k-h27cfd23_0
  pip                pkgs/main/linux-64::pip-21.1.3-py39h06a4308_0
  pycosat            pkgs/main/linux-64::pycosat-0.6.3-py39h27cfd23_0
  pycparser          pkgs/main/noarch::pycparser-2.20-py_2
  pyopenssl          pkgs/main/noarch::pyopenssl-20.0.1-pyhd3eb1b0_1
  pysocks            pkgs/main/linux-64::pysocks-1.7.1-py39h06a4308_0
  python             pkgs/main/linux-64::python-3.9.5-h12debd9_4
  readline           pkgs/main/linux-64::readline-8.1-h27cfd23_0
  requests           pkgs/main/noarch::requests-2.25.1-pyhd3eb1b0_0
  ruamel_yaml        pkgs/main/linux-64::ruamel_yaml-0.15.100-py39h27cfd23_0
  setuptools         pkgs/main/linux-64::setuptools-52.0.0-py39h06a4308_0
  six                pkgs/main/noarch::six-1.16.0-pyhd3eb1b0_0
  sqlite             pkgs/main/linux-64::sqlite-3.36.0-hc218d9a_0
  tk                 pkgs/main/linux-64::tk-8.6.10-hbc83047_0
  tqdm               pkgs/main/noarch::tqdm-4.61.2-pyhd3eb1b0_1
  tzdata             pkgs/main/noarch::tzdata-2021a-h52ac0ba_0
  urllib3            pkgs/main/noarch::urllib3-1.26.6-pyhd3eb1b0_1
  wheel              pkgs/main/noarch::wheel-0.36.2-pyhd3eb1b0_0
  xz                 pkgs/main/linux-64::xz-5.2.5-h7b6447c_0
  yaml               pkgs/main/linux-64::yaml-0.2.5-h7b6447c_0
  zlib               pkgs/main/linux-64::zlib-1.2.11-h7b6447c_3


Preparing transaction: done
Executing transaction: done
installation finished.
Collecting package metadata (current_repodata.json): done
Solving environment: done

## Package Plan ##

  environment location: /home/lab/lab/vadim/prefix/miniconda

  added / updated specs:
    - cudatoolkit=11.1
    - pytorch
    - torchvision


The following packages will be downloaded:

    package                    |            build
    ---------------------------|-----------------
    blas-1.0                   |              mkl           6 KB
    cudatoolkit-11.1.74        |       h6bb024c_0        1.19 GB  nvidia
    freetype-2.10.4            |       h5ab3b9f_0         596 KB
    intel-openmp-2021.3.0      |    h06a4308_3350         1.4 MB
    jpeg-9b                    |       h024ee3a_2         214 KB
    lcms2-2.12                 |       h3be6417_0         312 KB
    libpng-1.6.37              |       hbc83047_0         278 KB
    libtiff-4.2.0              |       h85742a9_0         502 KB
    libuv-1.40.0               |       h7b6447c_0         736 KB
    libwebp-base-1.2.0         |       h27cfd23_0         437 KB
    lz4-c-1.9.3                |       h2531618_0         186 KB
    mkl-2021.3.0               |     h06a4308_520       141.2 MB
    mkl-service-2.4.0          |   py39h7f8727e_0          59 KB
    mkl_fft-1.3.0              |   py39h42c9631_2         179 KB
    mkl_random-1.2.2           |   py39h51133e4_0         309 KB
    ninja-1.10.2               |       hff7bd54_1         1.4 MB
    numpy-1.20.3               |   py39hf144106_0          23 KB
    numpy-base-1.20.3          |   py39h74d4b33_0         4.6 MB
    olefile-0.46               |             py_0          33 KB
    openjpeg-2.3.0             |       h05c96fa_1         301 KB
    pillow-8.3.1               |   py39h2c7a002_0         648 KB
    pytorch-1.9.0              |py3.9_cuda11.1_cudnn8.0.5_0        1.44 GB  pytorch
    torchvision-0.2.2          |             py_3          44 KB  pytorch
    typing_extensions-3.10.0.0 |     pyh06a4308_0          27 KB
    zstd-1.4.9                 |       haebb681_0         480 KB
    ------------------------------------------------------------
                                           Total:        2.77 GB

The following NEW packages will be INSTALLED:

  blas               pkgs/main/linux-64::blas-1.0-mkl
  cudatoolkit        nvidia/linux-64::cudatoolkit-11.1.74-h6bb024c_0
  freetype           pkgs/main/linux-64::freetype-2.10.4-h5ab3b9f_0
  intel-openmp       pkgs/main/linux-64::intel-openmp-2021.3.0-h06a4308_3350
  jpeg               pkgs/main/linux-64::jpeg-9b-h024ee3a_2
  lcms2              pkgs/main/linux-64::lcms2-2.12-h3be6417_0
  libpng             pkgs/main/linux-64::libpng-1.6.37-hbc83047_0
  libtiff            pkgs/main/linux-64::libtiff-4.2.0-h85742a9_0
  libuv              pkgs/main/linux-64::libuv-1.40.0-h7b6447c_0
  libwebp-base       pkgs/main/linux-64::libwebp-base-1.2.0-h27cfd23_0
  lz4-c              pkgs/main/linux-64::lz4-c-1.9.3-h2531618_0
  mkl                pkgs/main/linux-64::mkl-2021.3.0-h06a4308_520
  mkl-service        pkgs/main/linux-64::mkl-service-2.4.0-py39h7f8727e_0
  mkl_fft            pkgs/main/linux-64::mkl_fft-1.3.0-py39h42c9631_2
  mkl_random         pkgs/main/linux-64::mkl_random-1.2.2-py39h51133e4_0
  ninja              pkgs/main/linux-64::ninja-1.10.2-hff7bd54_1
  numpy              pkgs/main/linux-64::numpy-1.20.3-py39hf144106_0
  numpy-base         pkgs/main/linux-64::numpy-base-1.20.3-py39h74d4b33_0
  olefile            pkgs/main/noarch::olefile-0.46-py_0
  openjpeg           pkgs/main/linux-64::openjpeg-2.3.0-h05c96fa_1
  pillow             pkgs/main/linux-64::pillow-8.3.1-py39h2c7a002_0
  pytorch            pytorch/linux-64::pytorch-1.9.0-py3.9_cuda11.1_cudnn8.0.5_0
  torchvision        pytorch/noarch::torchvision-0.2.2-py_3
  typing_extensions  pkgs/main/noarch::typing_extensions-3.10.0.0-pyh06a4308_0
  zstd               pkgs/main/linux-64::zstd-1.4.9-haebb681_0



Downloading and Extracting Packages
mkl-2021.3.0         | 141.2 MB  | ######################################################################################################### | 100%
intel-openmp-2021.3. | 1.4 MB    | ######################################################################################################### | 100%
torchvision-0.2.2    | 44 KB     | ######################################################################################################### | 100%
freetype-2.10.4      | 596 KB    | ######################################################################################################### | 100%
libwebp-base-1.2.0   | 437 KB    | ######################################################################################################### | 100%
mkl_random-1.2.2     | 309 KB    | ######################################################################################################### | 100%
lcms2-2.12           | 312 KB    | ######################################################################################################### | 100%
libuv-1.40.0         | 736 KB    | ######################################################################################################### | 100%
cudatoolkit-11.1.74  | 1.19 GB   | ######################################################################################################### | 100%
zstd-1.4.9           | 480 KB    | ######################################################################################################### | 100%
openjpeg-2.3.0       | 301 KB    | ######################################################################################################### | 100%
lz4-c-1.9.3          | 186 KB    | ######################################################################################################### | 100%
numpy-base-1.20.3    | 4.6 MB    | ######################################################################################################### | 100%
pytorch-1.9.0        | 1.44 GB   | ######################################################################################################### | 100%
blas-1.0             | 6 KB      | ######################################################################################################### | 100%
jpeg-9b              | 214 KB    | ######################################################################################################### | 100%
libpng-1.6.37        | 278 KB    | ######################################################################################################### | 100%
mkl-service-2.4.0    | 59 KB     | ######################################################################################################### | 100%
libtiff-4.2.0        | 502 KB    | ######################################################################################################### | 100%
pillow-8.3.1         | 648 KB    | ######################################################################################################### | 100%
mkl_fft-1.3.0        | 179 KB    | ######################################################################################################### | 100%
ninja-1.10.2         | 1.4 MB    | ######################################################################################################### | 100%
olefile-0.46         | 33 KB     | ######################################################################################################### | 100%
typing_extensions-3. | 27 KB     | ######################################################################################################### | 100%
numpy-1.20.3         | 23 KB     | ######################################################################################################### | 100%
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
@vadimkantorov vadimkantorov changed the title Installing from conda latest PyTorch 1.9.0 installs torchvision 0.2.2 Installing from conda with official installation command latest PyTorch 1.9.0 installs torchvision 0.2.2 Aug 2, 2021
@vadimkantorov
Copy link
Author

vadimkantorov commented Aug 2, 2021

@soumith glibc problems are back. I think the problem is that new conda installs python 3.9 and it is not supported

There should be a fool-proof way to detect this. This glibc problem isn't infrequent, and happens on all new conda installs.

Very strange spec: - torchvision==0.9.1 -> python[version='>=2.7,<2.8.0a0|>=3.5,<3.6.0a0'], seems only Python 3.5 is supported for 0.91

$ conda install torchvision==0.9.1 -c pytorch
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:

  - torchvision==0.9.1 -> python[version='>=2.7,<2.8.0a0|>=3.5,<3.6.0a0']

Your python: python=3.9

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.27=0
  - python=3.9 -> libgcc-ng[version='>=7.5.0'] -> __glibc[version='>=2.17']

Your installed version is: 2.27

@NicolasHug
Copy link
Member

This is likely a duplicate of #4076 and/or #4071

@vadimkantorov could you please try #4071 (comment) ?

@vadimkantorov
Copy link
Author

Again, very strange spec - only Python 2 is supported

$ conda install torchvision==0.10.0 -c pytorch
torchvision==0.10.0 -> python[version='>=2.7,<2.8.0a0']

@vadimkantorov
Copy link
Author

vadimkantorov commented Aug 2, 2021

Standing questions:

  1. why is mysterious release 0.10.0 not published on github?
  2. why specs are so strange?
  3. official installation command line seems broken for a few months now
  4. could this be tested?

Workaround from #4071 (comment) installs torchvision-0.10.0. So it works, thanks for the pointer! Why is it not the recommended command?..

@NicolasHug
Copy link
Member

Workaround from #4071 (comment) installs torchvision-0.10.0

Oh, that looks unexpected. Could you run conda in verbose mode and paste the output here?

@vadimkantorov
Copy link
Author

vadimkantorov commented Aug 2, 2021

PREFIX=/home/lab/lab/vadim/prefix
mkdir -p $PREFIX

curl -L -so $PREFIX/miniconda.sh https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh && chmod +x $PREFIX/miniconda.sh && $PREFIX/miniconda.sh -b -p $PREFIX/miniconda && rm $PREFIX/miniconda.sh

export PATH=$PREFIX/miniconda/bin:$PATH

conda install -y pytorch torchvision cudatoolkit=11.1 -c pytorch -c nvidia -c conda-forge

conda install -y ffmpeg aria2
#conda install -y av -c conda-forge
pip install opencv-python opencv-contrib-python matplotlib scikit-image imageio wandb visdom sklearn pandas
PREFIX=/home/lab/lab/vadim/prefix/miniconda
Unpacking payload ...
Collecting package metadata (current_repodata.json): done
Solving environment: done

## Package Plan ##

  environment location: /home/lab/lab/vadim/prefix/miniconda

  added / updated specs:
    - _libgcc_mutex==0.1=main
    - _openmp_mutex==4.5=1_gnu
    - brotlipy==0.7.0=py39h27cfd23_1003
    - ca-certificates==2021.7.5=h06a4308_1
    - certifi==2021.5.30=py39h06a4308_0
    - cffi==1.14.6=py39h400218f_0
    - chardet==4.0.0=py39h06a4308_1003
    - conda-package-handling==1.7.3=py39h27cfd23_1
    - conda==4.10.3=py39h06a4308_0
    - cryptography==3.4.7=py39hd23ed53_0
    - idna==2.10=pyhd3eb1b0_0
    - ld_impl_linux-64==2.35.1=h7274673_9
    - libffi==3.3=he6710b0_2
    - libgcc-ng==9.3.0=h5101ec6_17
    - libgomp==9.3.0=h5101ec6_17
    - libstdcxx-ng==9.3.0=hd4cf53a_17
    - ncurses==6.2=he6710b0_1
    - openssl==1.1.1k=h27cfd23_0
    - pip==21.1.3=py39h06a4308_0
    - pycosat==0.6.3=py39h27cfd23_0
    - pycparser==2.20=py_2
    - pyopenssl==20.0.1=pyhd3eb1b0_1
    - pysocks==1.7.1=py39h06a4308_0
    - python==3.9.5=h12debd9_4
    - readline==8.1=h27cfd23_0
    - requests==2.25.1=pyhd3eb1b0_0
    - ruamel_yaml==0.15.100=py39h27cfd23_0
    - setuptools==52.0.0=py39h06a4308_0
    - six==1.16.0=pyhd3eb1b0_0
    - sqlite==3.36.0=hc218d9a_0
    - tk==8.6.10=hbc83047_0
    - tqdm==4.61.2=pyhd3eb1b0_1
    - tzdata==2021a=h52ac0ba_0
    - urllib3==1.26.6=pyhd3eb1b0_1
    - wheel==0.36.2=pyhd3eb1b0_0
    - xz==5.2.5=h7b6447c_0
    - yaml==0.2.5=h7b6447c_0
    - zlib==1.2.11=h7b6447c_3


The following NEW packages will be INSTALLED:

  _libgcc_mutex      pkgs/main/linux-64::_libgcc_mutex-0.1-main
  _openmp_mutex      pkgs/main/linux-64::_openmp_mutex-4.5-1_gnu
  brotlipy           pkgs/main/linux-64::brotlipy-0.7.0-py39h27cfd23_1003
  ca-certificates    pkgs/main/linux-64::ca-certificates-2021.7.5-h06a4308_1
  certifi            pkgs/main/linux-64::certifi-2021.5.30-py39h06a4308_0
  cffi               pkgs/main/linux-64::cffi-1.14.6-py39h400218f_0
  chardet            pkgs/main/linux-64::chardet-4.0.0-py39h06a4308_1003
  conda              pkgs/main/linux-64::conda-4.10.3-py39h06a4308_0
  conda-package-han~ pkgs/main/linux-64::conda-package-handling-1.7.3-py39h27cfd23_1
  cryptography       pkgs/main/linux-64::cryptography-3.4.7-py39hd23ed53_0
  idna               pkgs/main/noarch::idna-2.10-pyhd3eb1b0_0
  ld_impl_linux-64   pkgs/main/linux-64::ld_impl_linux-64-2.35.1-h7274673_9
  libffi             pkgs/main/linux-64::libffi-3.3-he6710b0_2
  libgcc-ng          pkgs/main/linux-64::libgcc-ng-9.3.0-h5101ec6_17
  libgomp            pkgs/main/linux-64::libgomp-9.3.0-h5101ec6_17
  libstdcxx-ng       pkgs/main/linux-64::libstdcxx-ng-9.3.0-hd4cf53a_17
  ncurses            pkgs/main/linux-64::ncurses-6.2-he6710b0_1
  openssl            pkgs/main/linux-64::openssl-1.1.1k-h27cfd23_0
  pip                pkgs/main/linux-64::pip-21.1.3-py39h06a4308_0
  pycosat            pkgs/main/linux-64::pycosat-0.6.3-py39h27cfd23_0
  pycparser          pkgs/main/noarch::pycparser-2.20-py_2
  pyopenssl          pkgs/main/noarch::pyopenssl-20.0.1-pyhd3eb1b0_1
  pysocks            pkgs/main/linux-64::pysocks-1.7.1-py39h06a4308_0
  python             pkgs/main/linux-64::python-3.9.5-h12debd9_4
  readline           pkgs/main/linux-64::readline-8.1-h27cfd23_0
  requests           pkgs/main/noarch::requests-2.25.1-pyhd3eb1b0_0
  ruamel_yaml        pkgs/main/linux-64::ruamel_yaml-0.15.100-py39h27cfd23_0
  setuptools         pkgs/main/linux-64::setuptools-52.0.0-py39h06a4308_0
  six                pkgs/main/noarch::six-1.16.0-pyhd3eb1b0_0
  sqlite             pkgs/main/linux-64::sqlite-3.36.0-hc218d9a_0
  tk                 pkgs/main/linux-64::tk-8.6.10-hbc83047_0
  tqdm               pkgs/main/noarch::tqdm-4.61.2-pyhd3eb1b0_1
  tzdata             pkgs/main/noarch::tzdata-2021a-h52ac0ba_0
  urllib3            pkgs/main/noarch::urllib3-1.26.6-pyhd3eb1b0_1
  wheel              pkgs/main/noarch::wheel-0.36.2-pyhd3eb1b0_0
  xz                 pkgs/main/linux-64::xz-5.2.5-h7b6447c_0
  yaml               pkgs/main/linux-64::yaml-0.2.5-h7b6447c_0
  zlib               pkgs/main/linux-64::zlib-1.2.11-h7b6447c_3


Preparing transaction: done
Executing transaction: done
installation finished.
Collecting package metadata (current_repodata.json): done
Solving environment: done

## Package Plan ##

  environment location: /home/lab/lab/vadim/prefix/miniconda

  added / updated specs:
    - cudatoolkit=11.1
    - pytorch
    - torchvision


The following packages will be downloaded:

    package                    |            build
    ---------------------------|-----------------
    blas-1.0                   |              mkl           6 KB
    bzip2-1.0.8                |       h7f98852_4         484 KB  conda-forge
    ca-certificates-2021.5.30  |       ha878542_0         136 KB  conda-forge
    certifi-2021.5.30          |   py39hf3d152e_0         141 KB  conda-forge
    conda-4.10.3               |   py39hf3d152e_0         3.1 MB  conda-forge
    cudatoolkit-11.1.74        |       h6bb024c_0        1.19 GB  nvidia
    ffmpeg-4.3                 |       hf484d3e_0         9.9 MB  pytorch
    freetype-2.10.4            |       h0708190_1         890 KB  conda-forge
    gmp-6.2.1                  |       h58526e2_0         806 KB  conda-forge
    gnutls-3.6.13              |       h85f3911_1         2.0 MB  conda-forge
    intel-openmp-2021.3.0      |    h06a4308_3350         1.4 MB
    jpeg-9b                    |       h024ee3a_2         214 KB
    lame-3.100                 |    h7f98852_1001         496 KB  conda-forge
    lcms2-2.12                 |       h3be6417_0         312 KB
    libiconv-1.16              |       h516909a_0         1.4 MB  conda-forge
    libpng-1.6.37              |       h21135ba_2         306 KB  conda-forge
    libtiff-4.2.0              |       h85742a9_0         502 KB
    libuv-1.42.0               |       h7f98852_0         1.0 MB  conda-forge
    libwebp-base-1.2.0         |       h7f98852_2         815 KB  conda-forge
    lz4-c-1.9.3                |       h9c3ff4c_1         179 KB  conda-forge
    mkl-2021.3.0               |     h06a4308_520       141.2 MB
    nettle-3.6                 |       he412f7d_0         6.5 MB  conda-forge
    ninja-1.10.2               |       h4bd325d_0         2.4 MB  conda-forge
    olefile-0.46               |     pyh9f0ad1d_1          32 KB  conda-forge
    openh264-2.1.1             |       h780b84a_0         1.5 MB  conda-forge
    openjpeg-2.4.0             |       hb52868f_1         444 KB  conda-forge
    openssl-1.1.1k             |       h7f98852_0         2.1 MB  conda-forge
    pillow-8.3.1               |   py39h2c7a002_0         648 KB
    python_abi-3.9             |           2_cp39           4 KB  conda-forge
    pytorch-1.9.0              |py3.9_cuda11.1_cudnn8.0.5_0        1.44 GB  pytorch
    torchvision-0.10.0         |       py39_cu111         8.3 MB  pytorch
    typing_extensions-3.10.0.0 |     pyha770c72_0          28 KB  conda-forge
    zstd-1.4.9                 |       ha95c52a_0         431 KB  conda-forge
    ------------------------------------------------------------
                                           Total:        2.81 GB

The following NEW packages will be INSTALLED:

  blas               pkgs/main/linux-64::blas-1.0-mkl
  bzip2              conda-forge/linux-64::bzip2-1.0.8-h7f98852_4
  cudatoolkit        nvidia/linux-64::cudatoolkit-11.1.74-h6bb024c_0
  ffmpeg             pytorch/linux-64::ffmpeg-4.3-hf484d3e_0
  freetype           conda-forge/linux-64::freetype-2.10.4-h0708190_1
  gmp                conda-forge/linux-64::gmp-6.2.1-h58526e2_0
  gnutls             conda-forge/linux-64::gnutls-3.6.13-h85f3911_1
  intel-openmp       pkgs/main/linux-64::intel-openmp-2021.3.0-h06a4308_3350
  jpeg               pkgs/main/linux-64::jpeg-9b-h024ee3a_2
  lame               conda-forge/linux-64::lame-3.100-h7f98852_1001
  lcms2              pkgs/main/linux-64::lcms2-2.12-h3be6417_0
  libiconv           conda-forge/linux-64::libiconv-1.16-h516909a_0
  libpng             conda-forge/linux-64::libpng-1.6.37-h21135ba_2
  libtiff            pkgs/main/linux-64::libtiff-4.2.0-h85742a9_0
  libuv              conda-forge/linux-64::libuv-1.42.0-h7f98852_0
  libwebp-base       conda-forge/linux-64::libwebp-base-1.2.0-h7f98852_2
  lz4-c              conda-forge/linux-64::lz4-c-1.9.3-h9c3ff4c_1
  mkl                pkgs/main/linux-64::mkl-2021.3.0-h06a4308_520
  nettle             conda-forge/linux-64::nettle-3.6-he412f7d_0
  ninja              conda-forge/linux-64::ninja-1.10.2-h4bd325d_0
  olefile            conda-forge/noarch::olefile-0.46-pyh9f0ad1d_1
  openh264           conda-forge/linux-64::openh264-2.1.1-h780b84a_0
  openjpeg           conda-forge/linux-64::openjpeg-2.4.0-hb52868f_1
  pillow             pkgs/main/linux-64::pillow-8.3.1-py39h2c7a002_0
  python_abi         conda-forge/linux-64::python_abi-3.9-2_cp39
  pytorch            pytorch/linux-64::pytorch-1.9.0-py3.9_cuda11.1_cudnn8.0.5_0
  torchvision        pytorch/linux-64::torchvision-0.10.0-py39_cu111
  typing_extensions  conda-forge/noarch::typing_extensions-3.10.0.0-pyha770c72_0
  zstd               conda-forge/linux-64::zstd-1.4.9-ha95c52a_0

The following packages will be SUPERSEDED by a higher-priority channel:

  ca-certificates    pkgs/main::ca-certificates-2021.7.5-h~ --> conda-forge::ca-certificates-2021.5.30-ha878542_0
  certifi            pkgs/main::certifi-2021.5.30-py39h06a~ --> conda-forge::certifi-2021.5.30-py39hf3d152e_0
  conda              pkgs/main::conda-4.10.3-py39h06a4308_0 --> conda-forge::conda-4.10.3-py39hf3d152e_0
  openssl              pkgs/main::openssl-1.1.1k-h27cfd23_0 --> conda-forge::openssl-1.1.1k-h7f98852_0



Downloading and Extracting Packages
ca-certificates-2021 | 136 KB    | ######################################################################################################### | 100%
pytorch-1.9.0        | 1.44 GB   | ######################################################################################################### | 100%
certifi-2021.5.30    | 141 KB    | ######################################################################################################### | 100%
gmp-6.2.1            | 806 KB    | ######################################################################################################### | 100%
ffmpeg-4.3           | 9.9 MB    | ######################################################################################################### | 100%
jpeg-9b              | 214 KB    | ######################################################################################################### | 100%
lcms2-2.12           | 312 KB    | ######################################################################################################### | 100%
mkl-2021.3.0         | 141.2 MB  | ######################################################################################################### | 100%
pillow-8.3.1         | 648 KB    | ######################################################################################################### | 100%
cudatoolkit-11.1.74  | 1.19 GB   | ######################################################################################################### | 100%
bzip2-1.0.8          | 484 KB    | ######################################################################################################### | 100%
torchvision-0.10.0   | 8.3 MB    | ######################################################################################################### | 100%
nettle-3.6           | 6.5 MB    | ######################################################################################################### | 100%
openssl-1.1.1k       | 2.1 MB    | ######################################################################################################### | 100%
zstd-1.4.9           | 431 KB    | ######################################################################################################### | 100%
conda-4.10.3         | 3.1 MB    | ######################################################################################################### | 100%
openjpeg-2.4.0       | 444 KB    | ######################################################################################################### | 100%
python_abi-3.9       | 4 KB      | ######################################################################################################### | 100%
lz4-c-1.9.3          | 179 KB    | ######################################################################################################### | 100%
libwebp-base-1.2.0   | 815 KB    | ######################################################################################################### | 100%
gnutls-3.6.13        | 2.0 MB    | ######################################################################################################### | 100%
libpng-1.6.37        | 306 KB    | ######################################################################################################### | 100%
openh264-2.1.1       | 1.5 MB    | ######################################################################################################### | 100%
typing_extensions-3. | 28 KB     | ######################################################################################################### | 100%
blas-1.0             | 6 KB      | ######################################################################################################### | 100%
intel-openmp-2021.3. | 1.4 MB    | ######################################################################################################### | 100%
libuv-1.42.0         | 1.0 MB    | ######################################################################################################### | 100%
libiconv-1.16        | 1.4 MB    | ######################################################################################################### | 100%
ninja-1.10.2         | 2.4 MB    | ######################################################################################################### | 100%
freetype-2.10.4      | 890 KB    | ######################################################################################################### | 100%
libtiff-4.2.0        | 502 KB    | ######################################################################################################### | 100%
olefile-0.46         | 32 KB     | ######################################################################################################### | 100%
lame-3.100           | 496 KB    | ######################################################################################################### | 100%
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
Collecting package metadata (current_repodata.json): done
Solving environment: failed with initial frozen solve. Retrying with flexible solve.
Collecting package metadata (repodata.json): done
Solving environment: failed with initial frozen solve. Retrying with flexible solve.

PackagesNotFoundError: The following packages are not available from current channels:

  - aria2

Current channels:

  - https://repo.anaconda.com/pkgs/main/linux-64
  - https://repo.anaconda.com/pkgs/main/noarch
  - https://repo.anaconda.com/pkgs/r/linux-64
  - https://repo.anaconda.com/pkgs/r/noarch

To search for alternate channels that may provide the conda package you're
looking for, navigate to

    https://anaconda.org

and use the search bar at the top of the page.


Collecting opencv-python
  Using cached opencv_python-4.5.3.56-cp39-cp39-manylinux2014_x86_64.whl (49.9 MB)
Collecting opencv-contrib-python
  Using cached opencv_contrib_python-4.5.3.56-cp39-cp39-manylinux2014_x86_64.whl (56.1 MB)
Collecting matplotlib
  Using cached matplotlib-3.4.2-cp39-cp39-manylinux1_x86_64.whl (10.3 MB)
Collecting scikit-image
  Using cached scikit_image-0.18.2-cp39-cp39-manylinux2010_x86_64.whl (34.6 MB)
Collecting imageio
  Using cached imageio-2.9.0-py3-none-any.whl (3.3 MB)
Collecting wandb
  Using cached wandb-0.11.1-py2.py3-none-any.whl (1.7 MB)
Collecting visdom
  Using cached visdom-0.1.8.9-py3-none-any.whl
Collecting sklearn
  Using cached sklearn-0.0-py2.py3-none-any.whl
Collecting pandas
  Using cached pandas-1.3.1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (11.7 MB)
Collecting numpy>=1.19.3
  Downloading numpy-1.21.1-cp39-cp39-manylinux_2_12_x86_64.manylinux2010_x86_64.whl (15.8 MB)
     |████████████████████████████████| 15.8 MB 15.9 MB/s
Collecting cycler>=0.10
  Using cached cycler-0.10.0-py2.py3-none-any.whl (6.5 kB)
Requirement already satisfied: pillow>=6.2.0 in ./prefix/miniconda/lib/python3.9/site-packages (from matplotlib) (8.3.1)
Collecting kiwisolver>=1.0.1
  Using cached kiwisolver-1.3.1-cp39-cp39-manylinux1_x86_64.whl (1.2 MB)
Collecting python-dateutil>=2.7
  Using cached python_dateutil-2.8.2-py2.py3-none-any.whl (247 kB)
Collecting pyparsing>=2.2.1
  Using cached pyparsing-2.4.7-py2.py3-none-any.whl (67 kB)
Requirement already satisfied: six in ./prefix/miniconda/lib/python3.9/site-packages (from cycler>=0.10->matplotlib) (1.16.0)
Collecting tifffile>=2019.7.26
  Using cached tifffile-2021.7.30-py3-none-any.whl (171 kB)
Collecting networkx>=2.0
  Using cached networkx-2.6.2-py3-none-any.whl (1.9 MB)
Collecting PyWavelets>=1.1.1
  Using cached PyWavelets-1.1.1-cp39-cp39-manylinux1_x86_64.whl (4.3 MB)
Collecting scipy>=1.0.1
  Using cached scipy-1.7.1-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.whl (28.5 MB)
Collecting graphql-core>=2.3.0
  Using cached graphql_core-3.1.5-py3-none-any.whl (188 kB)
Collecting sentry-sdk>=1.0.0
  Using cached sentry_sdk-1.3.1-py2.py3-none-any.whl (133 kB)
Collecting docker-pycreds>=0.4.0
  Using cached docker_pycreds-0.4.0-py2.py3-none-any.whl (9.0 kB)
Collecting protobuf>=3.12.0
  Using cached protobuf-3.17.3-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.whl (1.0 MB)
Collecting GitPython>=1.0.0
  Using cached GitPython-3.1.18-py3-none-any.whl (170 kB)
Collecting shortuuid>=0.5.0
  Using cached shortuuid-1.0.1-py3-none-any.whl (7.5 kB)
Collecting PyYAML
  Using cached PyYAML-5.4.1-cp39-cp39-manylinux1_x86_64.whl (630 kB)
Collecting Click!=8.0.0,>=7.0
  Using cached click-8.0.1-py3-none-any.whl (97 kB)
Collecting promise<3,>=2.0
  Using cached promise-2.3-py3-none-any.whl
Collecting configparser>=3.8.1
  Using cached configparser-5.0.2-py3-none-any.whl (19 kB)
Collecting pathtools
  Using cached pathtools-0.1.2-py3-none-any.whl
Requirement already satisfied: requests<3,>=2.0.0 in ./prefix/miniconda/lib/python3.9/site-packages (from wandb) (2.25.1)
Collecting psutil>=5.0.0
  Using cached psutil-5.8.0-cp39-cp39-manylinux2010_x86_64.whl (293 kB)
Collecting gitdb<5,>=4.0.1
  Using cached gitdb-4.0.7-py3-none-any.whl (63 kB)
Collecting smmap<5,>=3.0.1
  Using cached smmap-4.0.0-py2.py3-none-any.whl (24 kB)
Requirement already satisfied: certifi>=2017.4.17 in ./prefix/miniconda/lib/python3.9/site-packages (from requests<3,>=2.0.0->wandb) (2021.5.30)
Requirement already satisfied: chardet<5,>=3.0.2 in ./prefix/miniconda/lib/python3.9/site-packages (from requests<3,>=2.0.0->wandb) (4.0.0)
Requirement already satisfied: urllib3<1.27,>=1.21.1 in ./prefix/miniconda/lib/python3.9/site-packages (from requests<3,>=2.0.0->wandb) (1.26.6)
Requirement already satisfied: idna<3,>=2.5 in ./prefix/miniconda/lib/python3.9/site-packages (from requests<3,>=2.0.0->wandb) (2.10)
Collecting websocket-client
  Using cached websocket_client-1.1.0-py2.py3-none-any.whl (68 kB)
Collecting tornado
  Using cached tornado-6.1-cp39-cp39-manylinux2010_x86_64.whl (427 kB)
Collecting pyzmq
  Using cached pyzmq-22.1.0-cp39-cp39-manylinux2010_x86_64.whl (1.1 MB)
Collecting torchfile
  Using cached torchfile-0.1.0-py3-none-any.whl
Collecting jsonpatch
  Using cached jsonpatch-1.32-py2.py3-none-any.whl (12 kB)
Collecting scikit-learn
  Using cached scikit_learn-0.24.2-cp39-cp39-manylinux2010_x86_64.whl (23.8 MB)
Collecting pytz>=2017.3
  Using cached pytz-2021.1-py2.py3-none-any.whl (510 kB)
Collecting jsonpointer>=1.9
  Using cached jsonpointer-2.1-py2.py3-none-any.whl (7.4 kB)
Collecting joblib>=0.11
  Using cached joblib-1.0.1-py3-none-any.whl (303 kB)
Collecting threadpoolctl>=2.0.0
  Using cached threadpoolctl-2.2.0-py3-none-any.whl (12 kB)
Installing collected packages: smmap, numpy, threadpoolctl, scipy, python-dateutil, pyparsing, kiwisolver, jsonpointer, joblib, gitdb, cycler, websocket-client, tornado, torchfile, tifffile, shortuuid, sentry-sdk, scikit-learn, pyzmq, PyYAML, PyWavelets, pytz, psutil, protobuf, promise, pathtools, networkx, matplotlib, jsonpatch, imageio, graphql-core, GitPython, docker-pycreds, configparser, Click, wandb, visdom, sklearn, scikit-image, pandas, opencv-python, opencv-contrib-python
Successfully installed Click-8.0.1 GitPython-3.1.18 PyWavelets-1.1.1 PyYAML-5.4.1 configparser-5.0.2 cycler-0.10.0 docker-pycreds-0.4.0 gitdb-4.0.7 graphql-core-3.1.5 imageio-2.9.0 joblib-1.0.1 jsonpatch-1.32 jsonpointer-2.1 kiwisolver-1.3.1 matplotlib-3.4.2 networkx-2.6.2 numpy-1.21.1 opencv-contrib-python-4.5.3.56 opencv-python-4.5.3.56 pandas-1.3.1 pathtools-0.1.2 promise-2.3 protobuf-3.17.3 psutil-5.8.0 pyparsing-2.4.7 python-dateutil-2.8.2 pytz-2021.1 pyzmq-22.1.0 scikit-image-0.18.2 scikit-learn-0.24.2 scipy-1.7.1 sentry-sdk-1.3.1 shortuuid-1.0.1 sklearn-0.0 smmap-4.0.0 threadpoolctl-2.2.0 tifffile-2021.7.30 torchfile-0.1.0 tornado-6.1 visdom-0.1.8.9 wandb-0.11.1 websocket-client-1.1.0

@vadimkantorov
Copy link
Author

Also note ffmpeg 4.3 that gets installed which seems not supported. If it's not supported, torchvision package should impose ffmpeg < 4.3

@NicolasHug
Copy link
Member

Thanks for the logs, sorry I brainfarted: torchvision 0.10 is expected, it's our latest stable version https://github.com/pytorch/vision/releases/tag/v0.10.0

@vadimkantorov
Copy link
Author

With this installation command ffmpeg does not work: ffmpeg: error while loading shared libraries: libopenh264.so.5: cannot open shared object file: No such file or directory

While prefix/miniconda/lib/libopenh264.so.6 gets installed. It would be nice if torchvision also recommended a currently working command of installing a working ffmpeg within the same conda environment since it's so common to need it

@soumith
Copy link
Member

soumith commented Aug 4, 2021

I've flagged this to the relevant folks. This is going to be fixed in pytorch 1.9.1 release, and we're working on robust process changes to catch these early. We used to have adhoc pre-release manual testing a long time ago, but we regressed on that aspect, we will go back and implement some of this manual or properly automated testing to catch these.

@orionr
Copy link

orionr commented Aug 4, 2021

Tagging @malfet @driazati @zhouzhuojie @seemethere to pull this into our list of issues to investigate. Thanks!

@malfet
Copy link
Contributor

malfet commented Aug 5, 2021

$ conda install torchvision==0.10.0 -c pytorch
torchvision==0.10.0 -> python[version='>=2.7,<2.8.0a0']

Conda error reporting could be much improved. There isn't a single torchvision-0.10.0 with such python versions range uploaded to pytorch channel.....

Leaving ffmpeg compatibilities aside, spurious conda-forge dependency stems from torchvision (as well as torchaudio and torchtext) dependency on python_abi metapackage, when build for python-3.9.

As conda/conda-build#3956 (comment) suggest, this dep could be stripped during the build time, or could be stripped after package were build by using something along those lines: https://gist.github.com/malfet/932311d0e7321cfdeed9e814a759b84e

Uploaded torchvision py_39 packages with stripped dep to https://anaconda.org/malfet/torchvision

@seemethere
Copy link
Member

seemethere commented Aug 9, 2021

I've gone through and uploaded the patched binaries for all domains from @malfet's anaconda org and can verify that it resolves the installation issues.

Commands used to copy
❯ anaconda copy malfet/torchvision/0.10.0 --replace --to-owner pytorch
Using Anaconda API: https://api.anaconda.org
Copied file: linux-64/torchvision-0.10.0-py39_cpu.tar.bz2
Copied file: linux-64/torchvision-0.10.0-py39_cu102.tar.bz2
Copied file: linux-64/torchvision-0.10.0-py39_cu111.tar.bz2
Copied file: osx-64/torchvision-0.10.0-py39_cpu.tar.bz2
Copied file: win-64/torchvision-0.10.0-py39_cpu.tar.bz2
Copied file: win-64/torchvision-0.10.0-py39_cu102.tar.bz2
Copied file: win-64/torchvision-0.10.0-py39_cu111.tar.bz2
Copied 7 files!

❯ anaconda copy malfet/torchtext/0.10.0 --replace --to-owner pytorch
Using Anaconda API: https://api.anaconda.org
Copied file: linux-64/torchtext-0.10.0-py39.tar.bz2
Copied file: osx-64/torchtext-0.10.0-py39.tar.bz2
Copied file: win-64/torchtext-0.10.0-py39.tar.bz2
Copied 3 files!

❯ anaconda copy malfet/torchaudio/0.9.0 --replace --to-owner pytorch
Using Anaconda API: https://api.anaconda.org
Copied file: linux-64/torchaudio-0.9.0-py39.tar.bz2
Copied file: osx-64/torchaudio-0.9.0-py39.tar.bz2
Copied file: win-64/torchaudio-0.9.0-py39.tar.bz2
Copied 3 files!
Commands used to verify

Note the channels the pytorch and torchvision packages are coming from and the lack of conda-forge

❯ docker run --rm -it continuumio/miniconda3 conda install -c pytorch torchvision==0.10.0 python=3.9
Collecting package metadata (current_repodata.json): done
Solving environment: failed with initial frozen solve. Retrying with flexible solve.
Solving environment: done
Collecting package metadata (repodata.json): done
Solving environment: failed with initial frozen solve. Retrying with flexible solve.
Solving environment: done

## Package Plan ##

  environment location: /opt/conda

  added / updated specs:
    - python=3.9
    - torchvision==0.10.0


The following packages will be downloaded:

    package                    |            build
    ---------------------------|-----------------
    asn1crypto-1.4.0           |             py_0          80 KB
    blas-1.0                   |              mkl           6 KB
    brotlipy-0.7.0             |py39h27cfd23_1003         324 KB
    bzip2-1.0.8                |       h7b6447c_0          78 KB
    ca-certificates-2021.7.5   |       h06a4308_1         113 KB
    certifi-2021.5.30          |   py39h06a4308_0         139 KB
    cffi-1.14.6                |   py39h400218f_0         225 KB
    chardet-4.0.0              |py39h06a4308_1003         194 KB
    conda-4.10.3               |   py39h06a4308_0         2.9 MB
    conda-package-handling-1.7.3|   py39h27cfd23_1         884 KB
    cryptography-3.4.7         |   py39hd23ed53_0         906 KB
    cudatoolkit-10.2.89        |       hfd86e86_1       365.1 MB
    ffmpeg-4.3                 |       hf484d3e_0         9.9 MB  pytorch
    freetype-2.10.4            |       h5ab3b9f_0         596 KB
    gmp-6.2.1                  |       h2531618_2         539 KB
    gnutls-3.6.15              |       he1e5248_0         1.0 MB
    idna-2.10                  |     pyhd3eb1b0_0          52 KB
    intel-openmp-2021.3.0      |    h06a4308_3350         1.4 MB
    jpeg-9b                    |       h024ee3a_2         214 KB
    lame-3.100                 |       h7b6447c_0         323 KB
    lcms2-2.12                 |       h3be6417_0         312 KB
    libffi-3.3                 |       he6710b0_2          50 KB
    libiconv-1.15              |       h63c8f33_5         721 KB
    libidn2-2.3.2              |       h7f8727e_0          81 KB
    libpng-1.6.37              |       hbc83047_0         278 KB
    libtasn1-4.16.0            |       h27cfd23_0          58 KB
    libtiff-4.2.0              |       h85742a9_0         502 KB
    libunistring-0.9.10        |       h27cfd23_0         536 KB
    libuv-1.40.0               |       h7b6447c_0         736 KB
    libwebp-base-1.2.0         |       h27cfd23_0         437 KB
    lz4-c-1.9.3                |       h295c915_1         185 KB
    mkl-2021.3.0               |     h06a4308_520       141.2 MB
    nettle-3.7.3               |       hbbd107a_1         809 KB
    ninja-1.10.2               |       hff7bd54_1         1.4 MB
    olefile-0.46               |             py_0          33 KB
    openh264-2.1.0             |       hd408876_0         722 KB
    openjpeg-2.3.0             |       h05c96fa_1         301 KB
    openssl-1.1.1k             |       h27cfd23_0         2.5 MB
    pillow-8.3.1               |   py39h2c7a002_0         648 KB
    pip-21.2.2                 |   py39h06a4308_0         1.8 MB
    pycosat-0.6.3              |   py39h27cfd23_0          82 KB
    pycparser-2.20             |             py_2          94 KB
    pyopenssl-20.0.1           |     pyhd3eb1b0_1          49 KB
    pysocks-1.7.1              |   py39h06a4308_0          31 KB
    python-3.9.6               |       h12debd9_0        18.4 MB
    pytorch-1.9.0              |py3.9_cuda10.2_cudnn7.6.5_0       706.3 MB  pytorch
    readline-8.1               |       h27cfd23_0         362 KB
    requests-2.25.1            |     pyhd3eb1b0_0          52 KB
    ruamel_yaml-0.15.100       |   py39h27cfd23_0         260 KB
    setuptools-52.0.0          |   py39h06a4308_0         724 KB
    six-1.16.0                 |     pyhd3eb1b0_0          18 KB
    sqlite-3.36.0              |       hc218d9a_0         990 KB
    tk-8.6.10                  |       hbc83047_0         3.0 MB
    torchvision-0.10.0         |       py39_cu102         8.0 MB  pytorch
    tqdm-4.42.1                |             py_0          56 KB
    typing_extensions-3.10.0.0 |     pyh06a4308_0          27 KB
    tzdata-2021a               |       h52ac0ba_0         108 KB
    urllib3-1.26.6             |     pyhd3eb1b0_1         112 KB
    wheel-0.36.2               |     pyhd3eb1b0_0          33 KB
    xz-5.2.5                   |       h7b6447c_0         341 KB
    yaml-0.2.5                 |       h7b6447c_0          75 KB
    zstd-1.4.9                 |       haebb681_0         480 KB
    ------------------------------------------------------------
                                           Total:        1.25 GB

Going to close this now that these packages have been updated and should not rely on conda-forge dependencies anymore.

Feel free to re-open if the issue still persists

@vadimkantorov
Copy link
Author

The official installation command does not pin the versions. Does it work without version pinning?

@vadimkantorov
Copy link
Author

vadimkantorov commented Aug 9, 2021

While at it, could we also recommend an installation command that installs a workable torchvision + ffmpeg combination? (for both installation and building torchvision from scratch. if torchvision only works with ffmpeg 4.2, it should update its dependency constraints)

@seemethere
Copy link
Member

The official installation command does not pin the versions. Does it work without version pinning?

Yes should also work without version pinning as well

@soumith
Copy link
Member

soumith commented Aug 9, 2021

@vadimkantorov worth opening a new issue for the ffmpeg thing. Is it that by default, the install commands dont install a working torchvision + ffmpeg? just describe it, and feel free to cc me.

@vadimkantorov
Copy link
Author

Is it that by default, the install commands dont install a working torchvision + ffmpeg?

Yes, as described in this issue, it installs for some reason ffmpeg 4.3 (is 4.3 supported?) from pytorch channel (why?) that misses some libraries

@fmassa
Copy link
Member

fmassa commented Aug 9, 2021

While at it, could we also recommend an installation command that installs a workable torchvision + ffmpeg combination?

We will be looking into the issues with ffmpeg soon, thanks for your patience!

weiji14 added a commit to weiji14/ctcorenet that referenced this issue Aug 9, 2021
Datasets, Transforms and Models specific to Computer Vision! Using torchvision instead of torchio because the torchio CropOrPad function doesn't work on 2D images, only 3D biomedical ones. Had to downgrade to Python 3.7 because pytorch 1.9.0 and torchvision 0.10.0 had some dependency hell going on recently, see pytorch/vision#4240.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants