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

Solving environment: failed with initial frozen solve. #67

Closed
xiebruce opened this issue Apr 6, 2023 · 4 comments
Closed

Solving environment: failed with initial frozen solve. #67

xiebruce opened this issue Apr 6, 2023 · 4 comments

Comments

@xiebruce
Copy link

xiebruce commented Apr 6, 2023

Environments

OS: macOS 11.5.1 (20G80)
Hardware: MacBook Pro (Retina, 15-inch, Mid 2015)

image

conda info
     active environment : jarvis
    active env location : /usr/local/anaconda3/envs/jarvis
            shell level : 1
       user config file : /Users/bruce/.condarc
 populated config files :
          conda version : 23.1.0
    conda-build version : 3.23.3
         python version : 3.10.9.final.0
       virtual packages : __archspec=1=x86_64
                          __osx=10.16=0
                          __unix=0=0
       base environment : /usr/local/anaconda3  (writable)
      conda av data dir : /usr/local/anaconda3/etc/conda
  conda av metadata url : None
           channel URLs : https://repo.anaconda.com/pkgs/main/osx-64
                          https://repo.anaconda.com/pkgs/main/noarch
                          https://repo.anaconda.com/pkgs/r/osx-64
                          https://repo.anaconda.com/pkgs/r/noarch
          package cache : /usr/local/anaconda3/pkgs
                          /Users/bruce/.conda/pkgs
       envs directories : /usr/local/anaconda3/envs
                          /Users/bruce/.conda/envs
               platform : osx-64
             user-agent : conda/23.1.0 requests/2.28.1 CPython/3.10.9 Darwin/20.6.0 OSX/10.16
                UID:GID : 501:20
             netrc file : None
           offline mode : False
conda config --show-sources

empty, no any config

conda list --show-channel-urls
# packages in environment at /usr/local/anaconda3/envs/jarvis:
#
# Name                    Version                   Build  Channel
ca-certificates           2023.01.10           hecd8cb5_0    defaults
certifi                   2022.12.7        py38hecd8cb5_0    defaults
libcxx                    14.0.6               h9765a3e_0    defaults
libffi                    3.4.2                hecd8cb5_6    defaults
ncurses                   6.4                  hcec6c5f_0    defaults
openssl                   1.1.1t               hca72f7f_0    defaults
pip                       23.0.1           py38hecd8cb5_0    defaults
python                    3.8.16               h218abb5_3    defaults
readline                  8.2                  hca72f7f_0    defaults
setuptools                65.6.3           py38hecd8cb5_0    defaults
sqlite                    3.41.1               h6c40b1e_0    defaults
tk                        8.6.12               h5d9f67b_0    defaults
wheel                     0.38.4           py38hecd8cb5_0    defaults
xz                        5.2.10               h6c40b1e_1    defaults
zlib                      1.2.13               h4dc903c_0    defaults

Errors

Run the following command

conda install pytorch torchvision torchaudio pytorch-cuda=11.7 -c pytorch -c nvidia

Then it shows the following error

Erros
> conda install pytorch torchvision torchaudio pytorch-cuda=11.7 -c pytorch -c nvidia
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.
Solving environment: -
Found conflicts! Looking for incompatible packages.
This can take several minutes.  Press CTRL-C to abort.
Examining conflict for torchvision pytorch:  38%|███████████████                         | 3/8 [00:04<00:07,  1.48s//failed

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

Specifications:

  - torchaudio -> python[version='>=2.7,<2.8.0a0|>=3.11,<3.12.0a0']

Your python: python=3.8

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 each other:

Output in format: Requested package -> Available versions

Package setuptools conflicts for:
pytorch -> jinja2 -> setuptools
torchvision -> setuptools
python=3.8 -> pip -> setuptools

Package pytorch conflicts for:
torchaudio -> pytorch[version='1.10.0|1.10.1|1.10.2|1.11.0|1.12.0|1.12.1|1.13.0|1.13.1|2.0.0|1.9.1|1.9.0|1.8.1|1.8.0|1.7.1|1.7.0|1.6.0|1.5.1']
torchvision -> pytorch[version='1.10.0|1.10.1|1.10.2|1.11.0|1.12.0|1.12.1|1.13.0|1.13.1|2.0.0|1.9.1|1.9.0|1.8.1|1.8.0|1.7.1|1.7.0|1.6.0|1.5.1|1.7.1.*|1.3.1.*']

Package six conflicts for:
pytorch -> mkl-service[version='>=2.3.0,<3.0a0'] -> six
torchvision -> six

Package libcxxabi conflicts for:
pytorch -> libcxx[version='>=4.0.1'] -> libcxxabi==4.0.1[build='hebd6815_0|hcfea43d_1']
python=3.8 -> libcxx[version='>=4.0.1'] -> libcxxabi==4.0.1[build='hebd6815_0|hcfea43d_1']
@ganand2021
Copy link

Instead of running this command
conda install pytorch torchvision torchaudio pytorch-cuda=11.7 -c pytorch -c nvidia

Try running the following:

conda install pytorch torchvision pytorch-cuda=11.7 -c pytorch -c nvidia
conda install torchaudio -c pytorch -c conda-forge

@xiebruce
Copy link
Author

xiebruce commented Apr 8, 2023

Instead of running this command conda install pytorch torchvision torchaudio pytorch-cuda=11.7 -c pytorch -c nvidia

Try running the following:

conda install pytorch torchvision pytorch-cuda=11.7 -c pytorch -c nvidia
conda install torchaudio -c pytorch -c conda-forge

As you said, run this command:

conda install pytorch torchvision pytorch-cuda=11.7 -c pytorch -c nvidia

Error

Package libcxxabi conflicts for:
python=3.8 -> libcxx[version='>=4.0.1'] -> libcxxabi==4.0.1[build='hcfea43d_1|hebd6815_0']
pytorch -> libcxx[version='>=4.0.1'] -> libcxxabi==4.0.1[build='hcfea43d_1|hebd6815_0']

Package pytorch conflicts for:
pytorch
torchvision -> pytorch[version='1.10.0|1.10.1|1.10.2|1.11.0|1.12.0|1.12.1|1.13.0|1.13.1|2.0.0|1.9.1|1.9.0|1.8.1|1.8.0|1.7.1|1.7.0|1.6.0|1.5.1|1.7.1.*|1.3.1.*']

conda list

# packages in environment at /usr/local/anaconda3/envs/jarvis:
#
# Name                    Version                   Build  Channel
ca-certificates           2023.01.10           hecd8cb5_0
certifi                   2022.12.7        py38hecd8cb5_0
libcxx                    14.0.6               h9765a3e_0
libffi                    3.4.2                hecd8cb5_6
ncurses                   6.4                  hcec6c5f_0
openssl                   1.1.1t               hca72f7f_0
pip                       23.0.1           py38hecd8cb5_0
python                    3.8.16               h218abb5_3
readline                  8.2                  hca72f7f_0
setuptools                65.6.3           py38hecd8cb5_0
sqlite                    3.41.1               h6c40b1e_0
tk                        8.6.12               h5d9f67b_0
wheel                     0.38.4           py38hecd8cb5_0
xz                        5.2.10               h6c40b1e_1
zlib                      1.2.13               h4dc903c_0

@xiebruce
Copy link
Author

xiebruce commented Apr 9, 2023

Problem solved. Go to here and choose the right option
image

conda install pytorch torchvision torchaudio -c pytorch

@xiebruce xiebruce closed this as completed Apr 9, 2023
@Thomasderrick729
Copy link

Thomasderrick729 commented Apr 9, 2023 via email

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

3 participants