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

Unable to install python 2.6 #693

Closed
1 task done
pbordron opened this issue Jul 16, 2024 · 10 comments
Closed
1 task done

Unable to install python 2.6 #693

pbordron opened this issue Jul 16, 2024 · 10 comments
Labels

Comments

@pbordron
Copy link

Solution to issue cannot be found in the documentation.

  • I checked the documentation.

Issue

I need to use python 2.6 for an old project. But I get the following error. No python_abi, nor pip exist for python 2.6. Conda must not try to resolve them.

$ conda create -n py26 python=2.6
Retrieving notices: ...working... done
Channels:
 - conda-forge
 - bioconda
 - local
 - defaults
Platform: linux-64
Collecting package metadata (repodata.json): done
Solving environment: failed

LibMambaUnsatisfiableError: Encountered problems while solving:
  - nothing provides _python_rc needed by python-3.12.0rc3-rc3_hab00c5b_1_cpython

Could not solve for environment specs
The following package could not be installed
└─ python 2.6**  is not installable because it requires
   ├─ pip with the potential options
   │  ├─ pip [10.0.1|18.0|...|9.0.3] would require
   │  │  └─ python [2.7* |>=2.7,<2.8.0a0 ], which can be installed;
   │  ├─ pip [10.0.1|18.0|...|9.0.3] would require
   │  │  └─ python [3.5* |>=3.5,<3.6.0a0 ], which can be installed;
   │  ├─ pip [10.0.1|9.0.1|9.0.3] would require
   │  │  └─ python 3.6* , which can be installed;
   │  ├─ pip [10.0.1|18.0|...|9.0.3] would require
   │  │  └─ python >=3.6,<3.7.0a0 , which can be installed;
   │  ├─ pip [10.0.1|18.0|...|22.3.1] would require
   │  │  └─ python >=3.7,<3.8.0a0 , which can be installed;
   │  ├─ pip [19.3.1|20.0.1|...|24.0] would require
   │  │  └─ python >=3.8,<3.9.0a0 , which can be installed;
   │  ├─ pip [8.1.2|9.0.0|9.0.1] would require
   │  │  └─ python 3.4* , which can be installed;
   │  ├─ pip [20.0.2|20.1|20.1.1] would require
   │  │  └─ setuptools with the potential options
   │  │     ├─ setuptools [23.0.0|25.1.3|...|44.0.0] would require
   │  │     │  └─ python [2.7* |>=2.7,<2.8.0a0 ], which can be installed;
   │  │     ├─ setuptools [23.0.0|25.1.3|...|32.3.1] would require
   │  │     │  └─ python 3.4* , which can be installed;
   │  │     ├─ setuptools [23.0.0|25.1.3|...|40.4.3] would require
   │  │     │  └─ python [3.5* |>=3.5,<3.6.0a0 ], which can be installed;
   │  │     ├─ setuptools [32.3.0|32.3.1|...|39.0.1] would require
   │  │     │  └─ python 3.6* , which can be installed;
   │  │     ├─ setuptools [36.5.0|38.4.0|...|58.0.4] would require
   │  │     │  └─ python >=3.6,<3.7.0a0 , which can be installed;
   │  │     ├─ setuptools [39.1.0|39.2.0|...|65.6.3] would require
   │  │     │  └─ python >=3.7,<3.8.0a0 , which can be installed;
   │  │     ├─ setuptools [41.4.0|41.6.0|...|69.5.1] would require
   │  │     │  └─ python >=3.8,<3.9.0a0 , which can be installed;
   │  │     ├─ setuptools [45.3.0|46.0.0|...|58.0.4] would require
   │  │     │  └─ python_abi 3.6.* *_cp36m, which can be installed;
   │  │     ├─ setuptools [45.3.0|46.0.0|...|65.3.0] would require
   │  │     │  └─ python_abi 3.7.* *_cp37m with the potential options
   │  │     │     ├─ python_abi 3.7, which can be installed;
   │  │     │     └─ python_abi 3.7 would require
   │  │     │        └─ python 3.7.* *_cpython, which can be installed;
   │  │     ├─ setuptools [45.3.0|46.0.0|...|65.3.0] would require
   │  │     │  └─ python_abi 3.8.* *_cp38 with the potential options
   │  │     │     ├─ python_abi 3.8, which can be installed;
   │  │     │     └─ python_abi 3.8 would require
   │  │     │        └─ python 3.8.* *_cpython, which can be installed;
   │  │     ├─ setuptools [46.0.0|46.1.1|...|49.6.0] would require
   │  │     │  └─ python_abi 3.6 *_pypy36_pp73, which requires
   │  │     │     └─ python 3.6.* *_73_pypy, which can be installed;
   │  │     ├─ setuptools [49.6.0|57.4.0|...|61.2.0] would require
   │  │     │  └─ python_abi 3.7 *_pypy37_pp73, which requires
   │  │     │     └─ python 3.7.* *_73_pypy, which can be installed;
   │  │     ├─ setuptools [49.6.0|57.4.0|...|65.3.0] would require
   │  │     │  └─ python_abi 3.9.* *_cp39 with the potential options
   │  │     │     ├─ python_abi 3.9, which can be installed;
   │  │     │     └─ python_abi 3.9 would require
   │  │     │        └─ python 3.9.* *_cpython, which can be installed;
   │  │     ├─ setuptools [57.4.0|58.4.0|...|65.3.0] would require
   │  │     │  └─ python_abi 3.10.* *_cp310 with the potential options
   │  │     │     ├─ python_abi 3.10, which can be installed;
   │  │     │     └─ python_abi 3.10 would require
   │  │     │        └─ python 3.10.* *_cpython, which can be installed;
   │  │     ├─ setuptools [57.4.0|59.8.0] would require
   │  │     │  └─ python_abi 3.11.* *_cp311 with the potential options
   │  │     │     ├─ python_abi 3.11, which can be installed;
   │  │     │     └─ python_abi 3.11 would require
   │  │     │        └─ python 3.11.* *_cpython, which can be installed;
   │  │     ├─ setuptools [57.4.0|59.8.0|...|65.3.0] would require
   │  │     │  └─ python_abi 3.8 *_pypy38_pp73, which requires
   │  │     │     └─ python 3.8.* *_73_pypy, which can be installed;
   │  │     ├─ setuptools [57.4.0|59.8.0|...|65.3.0] would require
   │  │     │  └─ python_abi 3.9 *_pypy39_pp73, which requires
   │  │     │     └─ python 3.9.* *_73_pypy, which can be installed;
   │  │     ├─ setuptools [65.3.0|65.4.0|...|70.3.0] would require
   │  │     │  └─ python >=3.8  with the potential options
   │  │     │     ├─ python [3.10.0|3.10.1|...|3.10.9], which can be installed;
   │  │     │     ├─ python [3.11.0|3.11.1|...|3.11.9], which can be installed;
   │  │     │     ├─ python [3.8.0|3.8.1|...|3.8.8], which can be installed;
   │  │     │     ├─ python [3.9.0|3.9.1|...|3.9.9], which can be installed;
   │  │     │     ├─ python [3.12.0|3.12.1|3.12.2|3.12.3|3.12.4], which can be installed;
   │  │     │     └─ python 3.12.0rc3 would require
   │  │     │        └─ _python_rc, which does not exist (perhaps a missing channel);
   │  │     ├─ setuptools [65.4.1|65.5.0|...|69.0.3] would require
   │  │     │  └─ python >=3.7  with the potential options
   │  │     │     ├─ python [3.10.0|3.10.1|...|3.10.9], which can be installed;
   │  │     │     ├─ python [3.11.0|3.11.1|...|3.11.9], which can be installed;
   │  │     │     ├─ python [3.7.0|3.7.1|...|3.7.9], which can be installed;
   │  │     │     ├─ python [3.8.0|3.8.1|...|3.8.8], which can be installed;
   │  │     │     ├─ python [3.9.0|3.9.1|...|3.9.9], which can be installed;
   │  │     │     ├─ python [3.12.0|3.12.1|3.12.2|3.12.3|3.12.4], which can be installed;
   │  │     │     └─ python 3.12.0rc3, which cannot be installed (as previously explained);
   │  │     ├─ setuptools [49.1.3|52.0.0|...|69.5.1] would require
   │  │     │  └─ python >=3.10,<3.11.0a0 , which can be installed;
   │  │     ├─ setuptools [49.1.3|50.3.0|...|69.5.1] would require
   │  │     │  └─ python >=3.9,<3.10.0a0 , which can be installed;
   │  │     ├─ setuptools [52.0.0|60.9.3|...|69.5.1] would require
   │  │     │  └─ python >=3.11,<3.12.0a0 , which can be installed;
   │  │     └─ setuptools [68.0.0|68.2.2|69.5.1] would require
   │  │        └─ python >=3.12,<3.13.0a0 , which can be installed;
   │  ├─ pip [20.1.1|20.2|...|20.3.4] would require
   │  │  └─ python >=3  with the potential options
   │  │     ├─ python [3.10.0|3.10.1|...|3.10.9], which can be installed;
   │  │     ├─ python [3.11.0|3.11.1|...|3.11.9], which can be installed;
   │  │     ├─ python 3.4.5, which can be installed;
   │  │     ├─ python [3.5.1|3.5.2|...|3.5.6], which can be installed;
   │  │     ├─ python [3.6.0|3.6.1|...|3.6.9], which can be installed;
   │  │     ├─ python [3.6.0a3|3.6.0a4|...|3.6.0rc1], which can be installed;
   │  │     ├─ python [3.7.0|3.7.1|...|3.7.9], which can be installed;
   │  │     ├─ python [3.8.0|3.8.1|...|3.8.8], which can be installed;
   │  │     ├─ python [3.9.0|3.9.1|...|3.9.9], which can be installed;
   │  │     ├─ python [3.12.0|3.12.1|3.12.2|3.12.3|3.12.4], which can be installed;
   │  │     └─ python 3.12.0rc3, which cannot be installed (as previously explained);
   │  ├─ pip [21.0|21.0.1|...|21.3.1] would require
   │  │  └─ python >=3.6  with the potential options
   │  │     ├─ python [3.10.0|3.10.1|...|3.10.9], which can be installed;
   │  │     ├─ python [3.11.0|3.11.1|...|3.11.9], which can be installed;
   │  │     ├─ python [3.6.0|3.6.1|...|3.6.9], which can be installed;
   │  │     ├─ python [3.7.0|3.7.1|...|3.7.9], which can be installed;
   │  │     ├─ python [3.8.0|3.8.1|...|3.8.8], which can be installed;
   │  │     ├─ python [3.9.0|3.9.1|...|3.9.9], which can be installed;
   │  │     ├─ python [3.12.0|3.12.1|3.12.2|3.12.3|3.12.4], which can be installed;
   │  │     └─ python 3.12.0rc3, which cannot be installed (as previously explained);
   │  ├─ pip [22.0|22.0.1|...|24.0] would require
   │  │  └─ python >=3.7  with the potential options
   │  │     ├─ python [3.10.0|3.10.1|...|3.10.9], which can be installed;
   │  │     ├─ python [3.11.0|3.11.1|...|3.11.9], which can be installed;
   │  │     ├─ python [3.7.0|3.7.1|...|3.7.9], which can be installed;
   │  │     ├─ python [3.8.0|3.8.1|...|3.8.8], which can be installed;
   │  │     ├─ python [3.9.0|3.9.1|...|3.9.9], which can be installed;
   │  │     ├─ python [3.12.0|3.12.1|3.12.2|3.12.3|3.12.4], which can be installed;
   │  │     └─ python 3.12.0rc3, which cannot be installed (as previously explained);
   │  ├─ pip [20.2.2|20.2.3|...|24.0] would require
   │  │  └─ python >=3.9,<3.10.0a0 , which can be installed;
   │  ├─ pip [21.2.4|22.1.2|...|24.0] would require
   │  │  └─ python >=3.10,<3.11.0a0 , which can be installed;
   │  ├─ pip [22.2.2|22.3.1|...|24.0] would require
   │  │  └─ python >=3.11,<3.12.0a0 , which can be installed;
   │  └─ pip [23.2.1|23.3|23.3.1|24.0] would require
   │     └─ python >=3.12,<3.13.0a0 , which can be installed;
   └─ python_abi * *_cp26mu, which conflicts with any installable versions previously reported.

Installed packages

Not applicable

Environment info

active environment : None
            shell level : 0
       user config file : /home/<user>/.condarc
 populated config files : /home/<user>/.condarc
          conda version : 24.5.0
    conda-build version : 24.5.1
         python version : 3.12.4.final.0
                 solver : libmamba (default)
       virtual packages : __archspec=1=icelake
                          __conda=24.5.0=0
                          __glibc=2.31=0
                          __linux=5.15.0=0
                          __unix=0=0
       base environment : /home/<user>/miniconda3  (writable)
      conda av data dir : /home/<user>/miniconda3/etc/conda
  conda av metadata url : None
           channel URLs : https://conda.anaconda.org/conda-forge/linux-64
                          https://conda.anaconda.org/conda-forge/noarch
                          https://conda.anaconda.org/bioconda/linux-64
                          https://conda.anaconda.org/bioconda/noarch
                          file:///home/<user>/miniconda3/conda-bld/linux-64
                          file:///home/<user>/miniconda3/conda-bld/noarch
                          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
          package cache : /home/<user>/miniconda3/pkgs
                          /home/<user>/.conda/pkgs
       envs directories : /home/<user>/miniconda3/envs
                          /home/<user>/.conda/envs
               platform : linux-64
             user-agent : conda/24.5.0 requests/2.32.3 CPython/3.12.4 Linux/5.15.0-113-generic linuxmint/20.3 glibc/2.31 solver/libmamba conda-libmamba-solver/24.1.0 libmambapy/1.5.8
                UID:GID : 4063:500
             netrc file : None
           offline mode : False
@pbordron pbordron added the bug label Jul 16, 2024
@mattwthompson
Copy link
Member

Unfortunately you're probably on your own for this one

@hmaarrfk
Copy link

hmaarrfk commented Aug 5, 2024

The oldest build of python I see on conda-forge is 2.7.

https://anaconda.org/conda-forge/python/files?page=36

I think it is still installable if you try hard enough. But 2.6 definitely isn't.

@hmaarrfk hmaarrfk closed this as completed Aug 5, 2024
@hmaarrfk
Copy link

hmaarrfk commented Aug 5, 2024

You can try to remove the conda-forge channel and bioconda from your .condarc file and just use the default channel.

@hmaarrfk
Copy link

hmaarrfk commented Aug 5, 2024

hmmm. even they don't have 2.6
https://anaconda.org/main/python/files?page=28

@pbordron
Copy link
Author

pbordron commented Aug 5, 2024

@hmaarrfk you miss the 2 last pages where exist python 1.0.1, 1.2, 1.3, 1.4, 1.5.2, 1.6, 2.0 and 2.6.9.
I disagree that you close this issue. It stills valid and needs to be resolved.

@mattwthompson I ask a way to install packages existing and indexed in conda-forge, even outdated. Not an update of those packages.

@pbordron
Copy link
Author

pbordron commented Aug 5, 2024

@conda-forge/python please reopen this issue

@hmaarrfk hmaarrfk reopened this Aug 5, 2024
@hmaarrfk
Copy link

hmaarrfk commented Aug 5, 2024

Interesting, the 2.6.9 package was built after the 2.7 one....

From the error message, it seems that our pip packages depend on 2.7. Conda has this weird thing where pip is added as a dependency of python in this super strange way by the conda solver itself.

You can try to disable the configuration:
https://docs.conda.io/projects/conda/en/stable/user-guide/configuration/settings.html#add-pip-as-python-dependency-add-pip-as-python-dependency

@pbordron
Copy link
Author

pbordron commented Aug 5, 2024

The installation succeeded by adding add_pip_as_python_dependency: False to the file ~/.condarc.
Thx for pointing out this option. I missed it while reading the doc.

@pbordron pbordron closed this as completed Aug 5, 2024
@hmaarrfk
Copy link

hmaarrfk commented Aug 5, 2024

its fine, it seems that somebody thought of your usecase a while back.

Glad that worked.... definitely an oddity of conda + python + pip...

@hmaarrfk
Copy link

hmaarrfk commented Aug 5, 2024

Thanks for your patience!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants