Skip to content

conda create -n test scipy installs free-threaded Python #792

Closed

Description

@lesteve

Solution to issue cannot be found in the documentation.

  • I checked the documentation.

Issue

on Windows conda create -c conda-forge -n test scipy install free-threaded Python on Windows, which is quite unexpected. I would expect vanilla Python to be installed by default.

mamba create -c conda-forge -n test scipy does also install free-threaded Python.

Of course there are work-arounds to force vanila Python e.g. conda install -c conda-forge scipy python-gil.

As expected:

  • on Windows only installing numpy installs vanilla Python through conda create -c conda-forge numpy
  • on Linux, installing scipy installs vanilla Python through conda create -c conda-forge scipy

I seemed to remember similar teething issues in the past but I thought they had been fixed since. The only similar issue I could find was #738 but only conda update -all was affected and it is not Windows-specific so it is probably a slightly different issue?

cc @rgommers and @isuruf who were involved in #738.

This was initially reported by @vitorpohlenz in scikit-learn, see scikit-learn/scikit-learn#31149 (comment).

Installed packages

# packages in environment at C:\Users\rjxQE\AppData\Local\miniforge3\envs\test:
#
# Name                    Version                   Build  Channel
bzip2                     1.0.8                h2466b09_7    conda-forge
ca-certificates           2025.1.31            h56e8100_0    conda-forge
intel-openmp              2024.2.1          h57928b3_1083    conda-forge
libblas                   3.9.0           31_h641d27c_mkl    conda-forge
libcblas                  3.9.0           31_h5e41251_mkl    conda-forge
libexpat                  2.7.0                he0c23c2_0    conda-forge
libffi                    3.4.6                h537db12_1    conda-forge
libhwloc                  2.11.2          default_ha69328c_1001    conda-forge
libiconv                  1.18                 h135ad9c_1    conda-forge
liblapack                 3.9.0           31_h1aa476e_mkl    conda-forge
liblzma                   5.8.1                h2466b09_0    conda-forge
libmpdec                  4.0.0                h2466b09_0    conda-forge
libsqlite                 3.49.1               h67fdade_2    conda-forge
libwinpthread             12.0.0.r4.gg4f2fc60ca      h57928b3_9    conda-forge
libxml2                   2.13.7               h442d1da_1    conda-forge
libzlib                   1.3.1                h2466b09_2    conda-forge
mkl                       2024.2.2            h66d3029_15    conda-forge
numpy                     2.2.4           py313hd96daed_0    conda-forge
openssl                   3.5.0                ha4e3fda_0    conda-forge
pip                       25.0.1             pyh145f28c_0    conda-forge
python                    3.13.3          hd7c436d_1_cp313t    conda-forge
python_abi                3.13                   5_cp313t    conda-forge
scipy                     1.15.2          py313h8a36d7e_0    conda-forge
tbb                       2021.13.0            h62715c5_1    conda-forge
tk                        8.6.13               h5226925_1    conda-forge
tzdata                    2025b                h78e105d_0    conda-forge
ucrt                      10.0.22621.0         h57928b3_1    conda-forge
vc                        14.3                h2b53caa_26    conda-forge
vc14_runtime              14.42.34438         hfd919c2_26    conda-forge

Environment info

active environment : base
    active env location : C:\Users\lesteve\AppData\Local\miniforge3
            shell level : 1
       user config file : C:\Users\lesteve\.condarc
 populated config files : C:\Users\lesteve\AppData\Local\miniforge3\.condarc
                          C:\Users\lesteve\.condarc
          conda version : 25.3.1
    conda-build version : not installed
         python version : 3.10.13.final.0
                 solver : libmamba (default)
       virtual packages : __archspec=1=broadwell
                          __conda=25.3.1=0
                          __win=10.0.19045=0
       base environment : C:\Users\lesteve\AppData\Local\miniforge3  (writable)
      conda av data dir : C:\Users\lesteve\AppData\Local\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\lesteve\AppData\Local\miniforge3\pkgs
                          C:\Users\lesteve\.conda\pkgs
                          C:\Users\lesteve\AppData\Local\conda\conda\pkgs
       envs directories : C:\Users\lesteve\AppData\Local\miniforge3\envs
                          C:\Users\lesteve\.conda\envs
                          C:\Users\lesteve\AppData\Local\conda\conda\envs
               platform : win-64
             user-agent : conda/25.3.1 requests/2.31.0 CPython/3.10.13 Windows/10 Windows/10.0.19045 solver/libmamba conda-libmamba-solver/25.3.0 libmambapy/2.1.0
          administrator : False
             netrc file : None
           offline mode : False
(base) C:\Users\lesteve>conda config --show-sources
==> C:\Users\lesteve\AppData\Local\miniforge3\.condarc <==
channels:
  - conda-forge

==> C:\Users\lesteve\.condarc <==
channels:
  - conda-forge

Activity

  1. lesteve commented on May 5, 2025

    @lesteve
    MemberAuthor

    Hmmm actually trying again today, free-threaded is installed as well on Linux both by conda and mamba ...

    conda

    ❯ conda create -n test scipy -c conda-forge
    Channels:
     - conda-forge
     - nodefaults
    Platform: linux-64
    Collecting package metadata (repodata.json): done
    Solving environment: done
    
    ## Package Plan ##
    
      environment location: /home/lesteve/micromamba/envs/test
    
      added / updated specs:
        - scipy
    
    
    The following NEW packages will be INSTALLED:
    
      _libgcc_mutex      conda-forge/linux-64::_libgcc_mutex-0.1-conda_forge 
      _openmp_mutex      conda-forge/linux-64::_openmp_mutex-4.5-2_gnu 
      bzip2              conda-forge/linux-64::bzip2-1.0.8-h4bc722e_7 
      ca-certificates    conda-forge/noarch::ca-certificates-2025.4.26-hbd8a1cb_0 
      ld_impl_linux-64   conda-forge/linux-64::ld_impl_linux-64-2.43-h712a8e2_4 
      libblas            conda-forge/linux-64::libblas-3.9.0-31_h59b9bed_openblas 
      libcblas           conda-forge/linux-64::libcblas-3.9.0-31_he106b2a_openblas 
      libexpat           conda-forge/linux-64::libexpat-2.7.0-h5888daf_0 
      libffi             conda-forge/linux-64::libffi-3.4.6-h2dba641_1 
      libgcc             conda-forge/linux-64::libgcc-14.2.0-h767d61c_2 
      libgcc-ng          conda-forge/linux-64::libgcc-ng-14.2.0-h69a702a_2 
      libgfortran        conda-forge/linux-64::libgfortran-14.2.0-h69a702a_2 
      libgfortran5       conda-forge/linux-64::libgfortran5-14.2.0-hf1ad2bd_2 
      libgomp            conda-forge/linux-64::libgomp-14.2.0-h767d61c_2 
      liblapack          conda-forge/linux-64::liblapack-3.9.0-31_h7ac8fdf_openblas 
      liblzma            conda-forge/linux-64::liblzma-5.8.1-hb9d3cd8_0 
      libmpdec           conda-forge/linux-64::libmpdec-4.0.0-h4bc722e_0 
      libopenblas        conda-forge/linux-64::libopenblas-0.3.29-pthreads_h94d23a6_0 
      libsqlite          conda-forge/linux-64::libsqlite-3.49.1-hee588c1_2 
      libstdcxx          conda-forge/linux-64::libstdcxx-14.2.0-h8f9b012_2 
      libuuid            conda-forge/linux-64::libuuid-2.38.1-h0b41bf4_0 
      libzlib            conda-forge/linux-64::libzlib-1.3.1-hb9d3cd8_2 
      ncurses            conda-forge/linux-64::ncurses-6.5-h2d0b736_3 
      numpy              conda-forge/linux-64::numpy-2.2.5-py313h103f029_0 
      openssl            conda-forge/linux-64::openssl-3.5.0-h7b32b05_1 
      pip                conda-forge/noarch::pip-25.1.1-pyh145f28c_0 
      python             conda-forge/linux-64::python-3.13.3-h4724d56_1_cp313t 
      python_abi         conda-forge/linux-64::python_abi-3.13-5_cp313t 
      readline           conda-forge/linux-64::readline-8.2-h8c095d6_2 
      scipy              conda-forge/linux-64::scipy-1.15.2-py313h7f7b39c_0 
      tk                 conda-forge/linux-64::tk-8.6.13-noxft_h4845f30_101 
      tzdata             conda-forge/noarch::tzdata-2025b-h78e105d_0 
    
    ❯ conda info    
    
         active environment : scikit-learn-dev
        active env location : /home/lesteve/micromamba/envs/scikit-learn-dev
                shell level : 1
           user config file : /home/lesteve/.condarc
     populated config files : /home/lesteve/.condarc
              conda version : 25.3.1
        conda-build version : not installed
             python version : 3.12.10.final.0
                     solver : libmamba (default)
           virtual packages : __archspec=1=skylake
                              __conda=25.3.1=0
                              __glibc=2.41=0
                              __linux=6.14.4=0
                              __unix=0=0
           base environment : /home/lesteve/micromamba  (writable)
          conda av data dir : /home/lesteve/micromamba/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/nodefaults/linux-64
                              https://conda.anaconda.org/nodefaults/noarch
              package cache : /home/lesteve/micromamba/pkgs
                              /home/lesteve/.conda/pkgs
           envs directories : /home/lesteve/micromamba/envs
                              /home/lesteve/.conda/envs
                   platform : linux-64
                 user-agent : conda/25.3.1 requests/2.32.3 CPython/3.12.10 Linux/6.14.4-arch1-2 endeavouros/rolling glibc/2.41 solver/libmamba conda-libmamba-solver/25.3.0 libmambapy/2.1.0
                    UID:GID : 1000:1000
                 netrc file : /home/lesteve/.netrc
               offline mode : False
    

    mamba

    ❯ mamba create -n test scipy -c conda-forge
    nodefaults/noarch                                   ??.?MB @  ??.?MB/s  0.2s
    nodefaults/linux-64                                 ??.?MB @  ??.?MB/s  0.4s
    conda-forge/noarch                                  20.2MB @   6.4MB/s  3.2s
    conda-forge/linux-64                                43.7MB @  10.4MB/s  4.4s
    
    
    Transaction
    
      Prefix: /home/lesteve/micromamba/envs/test
    
      Updating specs:
    
       - scipy
    
    
      Package               Version  Build                 Channel           Size
    ───────────────────────────────────────────────────────────────────────────────
      Install:
    ───────────────────────────────────────────────────────────────────────────────
    
      + _libgcc_mutex           0.1  conda_forge           conda-forge     Cached
      + _openmp_mutex           4.5  2_gnu                 conda-forge     Cached
      + bzip2                 1.0.8  h4bc722e_7            conda-forge     Cached
      + ca-certificates   2025.4.26  hbd8a1cb_0            conda-forge     Cached
      + ld_impl_linux-64       2.43  h712a8e2_4            conda-forge     Cached
      + libblas               3.9.0  31_h59b9bed_openblas  conda-forge     Cached
      + libcblas              3.9.0  31_he106b2a_openblas  conda-forge     Cached
      + libexpat              2.7.0  h5888daf_0            conda-forge     Cached
      + libffi                3.4.6  h2dba641_1            conda-forge     Cached
      + libgcc               14.2.0  h767d61c_2            conda-forge     Cached
      + libgcc-ng            14.2.0  h69a702a_2            conda-forge     Cached
      + libgfortran          14.2.0  h69a702a_2            conda-forge     Cached
      + libgfortran5         14.2.0  hf1ad2bd_2            conda-forge     Cached
      + libgomp              14.2.0  h767d61c_2            conda-forge     Cached
      + liblapack             3.9.0  31_h7ac8fdf_openblas  conda-forge     Cached
      + liblzma               5.8.1  hb9d3cd8_0            conda-forge     Cached
      + libmpdec              4.0.0  h4bc722e_0            conda-forge     Cached
      + libopenblas          0.3.29  pthreads_h94d23a6_0   conda-forge     Cached
      + libsqlite            3.49.1  hee588c1_2            conda-forge     Cached
      + libstdcxx            14.2.0  h8f9b012_2            conda-forge     Cached
      + libuuid              2.38.1  h0b41bf4_0            conda-forge     Cached
      + libzlib               1.3.1  hb9d3cd8_2            conda-forge     Cached
      + ncurses                 6.5  h2d0b736_3            conda-forge     Cached
      + numpy                 2.2.5  py313h103f029_0       conda-forge     Cached
      + openssl               3.5.0  h7b32b05_1            conda-forge     Cached
      + pip                  25.1.1  pyh145f28c_0          conda-forge     Cached
      + python               3.13.3  h4724d56_1_cp313t     conda-forge     Cached
      + python_abi             3.13  5_cp313t              conda-forge     Cached
      + readline                8.2  h8c095d6_2            conda-forge     Cached
      + scipy                1.15.2  py313h7f7b39c_0       conda-forge     Cached
      + tk                   8.6.13  noxft_h4845f30_101    conda-forge     Cached
      + tzdata                2025b  h78e105d_0            conda-forge     Cached
    
      Summary:
    
      Install: 32 packages
    
      Total download: 0 B
    
    ───────────────────────────────────────────────────────────────────────────────
    
    ❯ mamba info      
    
           libmamba version : 2.1.1
         micromamba version : 2.1.1
               curl version : libcurl/8.13.0 OpenSSL/3.5.0 zlib/1.3.1 zstd/1.5.7 libssh2/1.11.1 nghttp2/1.64.0
         libarchive version : libarchive 3.7.7 zlib/1.3.1 bz2lib/1.0.8 libzstd/1.5.7
           envs directories : /home/lesteve/micromamba/envs
              package cache : /home/lesteve/micromamba/pkgs
                              /home/lesteve/.mamba/pkgs
                environment : base (active)
               env location : /home/lesteve/micromamba
          user config files : /home/lesteve/.mambarc
     populated config files : /home/lesteve/.condarc
           virtual packages : __unix=0=0
                              __linux=6.14.4=0
                              __glibc=2.41=0
                              __archspec=1=x86_64_v3
                   channels : https://conda.anaconda.org/conda-forge/linux-64
                              https://conda.anaconda.org/conda-forge/noarch
                              https://conda.anaconda.org/nodefaults/linux-64
                              https://conda.anaconda.org/nodefaults/noarch
           base environment : /home/lesteve/micromamba
                   platform : linux-64
    
  2. changed the title [-]On Windows `conda create -n test scipy` installs free-threaded Python[/-] [+]`conda create -n test scipy` installs free-threaded Python[/+] on May 5, 2025
  3. lesteve commented on May 13, 2025

    @lesteve
    MemberAuthor

    It doesn't seem to happen anymore (neither on Windows nor on Linux) ... let's close this one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions