mamba-org / mamba

The Fast Cross-Platform Package Manager
https://mamba.readthedocs.io
BSD 3-Clause "New" or "Revised" License
6.83k stars 352 forks source link

Unable to install some packages when using pip (getting requires-python error) #3528

Open GillesFa opened 10 hours ago

GillesFa commented 10 hours ago

Troubleshooting docs

Anaconda default channels

How did you install Mamba?

Mambaforge or latest Miniforge

Search tried in issue tracker

pip install error

Latest version of Mamba

Tried in Conda?

I didn't try

Describe your issue

I need to install the latest version of bokeh but when I use "conda install bokeh" then I get bokeh 3.5.2. If I use "pip install bokeh" then the latest version (3.6.0) is downloaded but fails to install:

ERROR: HTTP error 403 while getting https://files.pythonhosted.org/packages/8d/2f/804f02ff30a7fae21f98198828d0857439ec4c91a96e20cf2d6c49372966/contourpy-1.3.0-cp311-cp311-win_amd64.whl (from https://pypi.org/simple/contourpy/) (requires-python:>=3.9)
ERROR: 403 Client Error: Forbidden for url: https://files.pythonhosted.org/packages/8d/2f/804f02ff30a7fae21f98198828d0857439ec4c91a96e20cf2d6c49372966/contourpy-1.3.0-cp311-cp311-win_amd64.whl?_sm_nck=1

My conda environment has got python=3.11.10:

# packages in environment at C:\Users\gilles.faure\miniforge3\envs\test1:
#
# Name                    Version                   Build  Channel
bzip2                     1.0.8                h2466b09_7    conda-forge
ca-certificates           2024.8.30            h56e8100_0    conda-forge
libexpat                  2.6.3                he0c23c2_0    conda-forge
libffi                    3.4.2                h8ffe710_5    conda-forge
libsqlite                 3.46.1               h2466b09_0    conda-forge
libzlib                   1.3.1                h2466b09_2    conda-forge
openssl                   3.3.2                h2466b09_0    conda-forge
pip                       24.2               pyh8b19718_1    conda-forge
python                    3.11.10         hce54a09_2_cpython    conda-forge
setuptools                75.1.0             pyhd8ed1ab_0    conda-forge
tk                        8.6.13               h5226925_1    conda-forge
tzdata                    2024b                hc8b5060_0    conda-forge
ucrt                      10.0.22621.0         h57928b3_1    conda-forge
vc                        14.3                h8a93ad2_22    conda-forge
vc14_runtime              14.40.33810         hcc2c482_22    conda-forge
vs2015_runtime            14.40.33810         h3bf8584_22    conda-forge
wheel                     0.44.0             pyhd8ed1ab_0    conda-forge
xz                        5.2.6                h8d14728_0    conda-forge

Some packages (pandas) can be installed other cannot.

mamba info / micromamba info

mamba version : 1.5.9
     active environment : test1
    active env location : C:\Users\gilles.faure\miniforge3\envs\test1
            shell level : 1
       user config file : C:\Users\gilles.faure\.condarc
 populated config files : C:\Users\gilles.faure\miniforge3\.condarc
                          C:\Users\gilles.faure\.condarc
          conda version : 24.7.1
    conda-build version : not installed
         python version : 3.12.6.final.0
                 solver : libmamba (default)
       virtual packages : __archspec=1=skylake
                          __conda=24.7.1=0
                          __cuda=12.4=0
                          __win=0=0
       base environment : C:\Users\gilles.faure\miniforge3  (writable)
      conda av data dir : C:\Users\gilles.faure\miniforge3\etc\conda
  conda av metadata url : None
           channel URLs : https://conda.anaconda.org/conda-forge/win-64
                          https://conda.anaconda.org/conda-forge/noarch
          package cache : C:\Users\gilles.faure\miniforge3\pkgs
                          C:\Users\gilles.faure\.conda\pkgs
                          C:\Users\gilles.faure\AppData\Local\conda\conda\pkgs
       envs directories : C:\Users\gilles.faure\miniforge3\envs
                          C:\Users\gilles.faure\.conda\envs
                          C:\Users\gilles.faure\AppData\Local\conda\conda\envs
               platform : win-64
             user-agent : conda/24.7.1 requests/2.32.3 CPython/3.12.6 Windows/11 Windows/10.0.22631 solver/libmamba conda-libmamba-solver/24.7.0 libmambapy/1.5.9
          administrator : False
             netrc file : None
           offline mode : False

Logs

pip install bokeh -v
Using pip 24.2 from C:\Users\gilles.faure\miniforge3\envs\test1\Lib\site-packages\pip (python 3.11)
Collecting bokeh
  Obtaining dependency information for bokeh from https://files.pythonhosted.org/packages/6c/db/5fa8025ff1819f46d50a1284cf3b79774f68d69f6472b53a73716753d083/bokeh-3.6.0-py3-none-any.whl.metadata
  Using cached bokeh-3.6.0-py3-none-any.whl.metadata (12 kB)
Collecting Jinja2>=2.9 (from bokeh)
  Obtaining dependency information for Jinja2>=2.9 from https://files.pythonhosted.org/packages/31/80/3a54838c3fb461f6fec263ebf3a3a41771bd05190238de3486aae8540c36/jinja2-3.1.4-py3-none-any.whl.metadata
  Using cached jinja2-3.1.4-py3-none-any.whl.metadata (2.6 kB)
Collecting contourpy>=1.2 (from bokeh)
  Obtaining dependency information for contourpy>=1.2 from https://files.pythonhosted.org/packages/8d/2f/804f02ff30a7fae21f98198828d0857439ec4c91a96e20cf2d6c49372966/contourpy-1.3.0-cp311-cp311-win_amd64.whl.metadata
  Using cached contourpy-1.3.0-cp311-cp311-win_amd64.whl.metadata (5.4 kB)
  Link requires a different Python (3.11.10 not in: '>=3.7,<3.11'): https://files.pythonhosted.org/packages/3a/be/650f9c091ef71cb01d735775d554e068752d3ff63d7943b26316dc401749/numpy-1.21.2.zip (from https://pypi.org/simple/numpy/) (requires-python:>=3.7,<3.11)
  Link requires a different Python (3.11.10 not in: '>=3.7,<3.11'): https://files.pythonhosted.org/packages/5f/d6/ad58ded26556eaeaa8c971e08b6466f17c4ac4d786cd3d800e26ce59cc01/numpy-1.21.3.zip (from https://pypi.org/simple/numpy/) (requires-python:>=3.7,<3.11)
  Link requires a different Python (3.11.10 not in: '>=3.7,<3.11'): https://files.pythonhosted.org/packages/fb/48/b0708ebd7718a8933f0d3937513ef8ef2f4f04529f1f66ca86d873043921/numpy-1.21.4.zip (from https://pypi.org/simple/numpy/) (requires-python:>=3.7,<3.11)
  Link requires a different Python (3.11.10 not in: '>=3.7,<3.11'): https://files.pythonhosted.org/packages/c2/a8/a924a09492bdfee8c2ec3094d0a13f2799800b4fdc9c890738aeeb12c72e/numpy-1.21.5.zip (from https://pypi.org/simple/numpy/) (requires-python:>=3.7,<3.11)
  Link requires a different Python (3.11.10 not in: '>=3.7,<3.11'): https://files.pythonhosted.org/packages/45/b7/de7b8e67f2232c26af57c205aaad29fe17754f793404f59c8a730c7a191a/numpy-1.21.6.zip (from https://pypi.org/simple/numpy/) (requires-python:>=3.7,<3.11)
Collecting numpy>=1.16 (from bokeh)
  Obtaining dependency information for numpy>=1.16 from https://files.pythonhosted.org/packages/d4/96/450054662295125af861d48d2c4bc081dadcf1974a879b2104613157aa62/numpy-2.1.2-cp311-cp311-win_amd64.whl.metadata
  Using cached numpy-2.1.2-cp311-cp311-win_amd64.whl.metadata (59 kB)
Collecting packaging>=16.8 (from bokeh)
  Obtaining dependency information for packaging>=16.8 from https://files.pythonhosted.org/packages/08/aa/cc0199a5f0ad350994d660967a8efb233fe0416e4639146c089643407ce6/packaging-24.1-py3-none-any.whl.metadata
  Using cached packaging-24.1-py3-none-any.whl.metadata (3.2 kB)
Collecting pandas>=1.2 (from bokeh)
  Obtaining dependency information for pandas>=1.2 from https://files.pythonhosted.org/packages/ed/8c/87ddf1fcb55d11f9f847e3c69bb1c6f8e46e2f40ab1a2d2abadb2401b007/pandas-2.2.3-cp311-cp311-win_amd64.whl.metadata
  Using cached pandas-2.2.3-cp311-cp311-win_amd64.whl.metadata (19 kB)
Collecting pillow>=7.1.0 (from bokeh)
  Obtaining dependency information for pillow>=7.1.0 from https://files.pythonhosted.org/packages/c1/d0/5866318eec2b801cdb8c82abf190c8343d8a1cd8bf5a0c17444a6f268291/pillow-10.4.0-cp311-cp311-win_amd64.whl.metadata
  Using cached pillow-10.4.0-cp311-cp311-win_amd64.whl.metadata (9.3 kB)
Collecting PyYAML>=3.10 (from bokeh)
  Obtaining dependency information for PyYAML>=3.10 from https://files.pythonhosted.org/packages/ed/23/8da0bbe2ab9dcdd11f4f4557ccaf95c10b9811b13ecced089d43ce59c3c8/PyYAML-6.0.2-cp311-cp311-win_amd64.whl.metadata
  Using cached PyYAML-6.0.2-cp311-cp311-win_amd64.whl.metadata (2.1 kB)
Collecting tornado>=6.2 (from bokeh)
  Obtaining dependency information for tornado>=6.2 from https://files.pythonhosted.org/packages/d9/2f/3f2f05e84a7aff787a96d5fb06821323feb370fe0baed4db6ea7b1088f32/tornado-6.4.1-cp38-abi3-win_amd64.whl.metadata
  Using cached tornado-6.4.1-cp38-abi3-win_amd64.whl.metadata (2.6 kB)
Collecting xyzservices>=2021.09.1 (from bokeh)
  Obtaining dependency information for xyzservices>=2021.09.1 from https://files.pythonhosted.org/packages/4c/d3/e07ce413d16ef64e885bea37551eac4c5ca3ddd440933f9c94594273d0d9/xyzservices-2024.9.0-py3-none-any.whl.metadata
  Using cached xyzservices-2024.9.0-py3-none-any.whl.metadata (4.1 kB)
Collecting MarkupSafe>=2.0 (from Jinja2>=2.9->bokeh)
  Obtaining dependency information for MarkupSafe>=2.0 from https://files.pythonhosted.org/packages/fc/b5/20cb1d714596acb553c810009c8004c809823947da63e13c19a7decfcb6c/MarkupSafe-3.0.1-cp311-cp311-win_amd64.whl.metadata
  Using cached MarkupSafe-3.0.1-cp311-cp311-win_amd64.whl.metadata (4.1 kB)
Collecting python-dateutil>=2.8.2 (from pandas>=1.2->bokeh)
  Obtaining dependency information for python-dateutil>=2.8.2 from https://files.pythonhosted.org/packages/ec/57/56b9bcc3c9c6a792fcbaf139543cee77261f3651ca9da0c93f5c1221264b/python_dateutil-2.9.0.post0-py2.py3-none-any.whl.metadata
  Using cached python_dateutil-2.9.0.post0-py2.py3-none-any.whl.metadata (8.4 kB)
Collecting pytz>=2020.1 (from pandas>=1.2->bokeh)
  Obtaining dependency information for pytz>=2020.1 from https://files.pythonhosted.org/packages/11/c3/005fcca25ce078d2cc29fd559379817424e94885510568bc1bc53d7d5846/pytz-2024.2-py2.py3-none-any.whl.metadata
  Using cached pytz-2024.2-py2.py3-none-any.whl.metadata (22 kB)
Collecting tzdata>=2022.7 (from pandas>=1.2->bokeh)
  Obtaining dependency information for tzdata>=2022.7 from https://files.pythonhosted.org/packages/a6/ab/7e5f53c3b9d14972843a647d8d7a853969a58aecc7559cb3267302c94774/tzdata-2024.2-py2.py3-none-any.whl.metadata
  Using cached tzdata-2024.2-py2.py3-none-any.whl.metadata (1.4 kB)
Collecting six>=1.5 (from python-dateutil>=2.8.2->pandas>=1.2->bokeh)
  Obtaining dependency information for six>=1.5 from https://files.pythonhosted.org/packages/d9/5a/e7c31adbe875f2abbb91bd84cf2dc52d792b5a01506781dbcf25c91daf11/six-1.16.0-py2.py3-none-any.whl.metadata
  Using cached six-1.16.0-py2.py3-none-any.whl.metadata (1.8 kB)
Using cached bokeh-3.6.0-py3-none-any.whl (6.9 MB)
ERROR: HTTP error 403 while getting https://files.pythonhosted.org/packages/8d/2f/804f02ff30a7fae21f98198828d0857439ec4c91a96e20cf2d6c49372966/contourpy-1.3.0-cp311-cp311-win_amd64.whl (from https://pypi.org/simple/contourpy/) (requires-python:>=3.9)
ERROR: 403 Client Error: Forbidden for url: https://files.pythonhosted.org/packages/8d/2f/804f02ff30a7fae21f98198828d0857439ec4c91a96e20cf2d6c49372966/contourpy-1.3.0-cp311-cp311-win_amd64.whl?_sm_nck=1

environment.yml

No response

~/.condarc

channels:
  - conda-forge
jjerphan commented 2 hours ago

Hi @GillesFa,

This issue seems unrelated to mamba.

I can correctly download the build of bokeh.

Can you retry in a simple python virtual environment without using a conda environment via mamba?