#16724·conda

安装附加组件不会拉入额外的包

作者: danyeaw创建于 2026年9月18日更新于 2026年9月18日
标签type::bugsource::contributor¡blocking!

Checklist

  • I added a descriptive title
  • I searched open reports and couldn't find a duplicate

What happened?

https://docs.conda.io/projects/conda/en/latest/user-guide/tasks/install-packages-from-pypi.html#install-with-extras-support shows an example like the following:

conda install 'package[extras="EXTRA"]'

However, if I try to do that, it accepts the extra but doesn't add any additional packages to the solve:

(C:\Users\DYeaw\Projects\conda\devenv) PS C:\Users\DYeaw\Projects\conda> Python -m conda create -p $env:Temp\httpx 'httpx[extras="cli"]' -c conda-forge -c conda-pypi --override-channels
Retrieving notices: done
Channels:
 - conda-forge
 - conda-pypi
Platform: win-64
Target prefix: C:\Users\DYeaw\AppData\Local\Temp\httpx
Collecting package metadata (repodata.json): | WARNING conda.models.version:get_matcher(564): Using .* with relational operator is superfluous and deprecated and will be removed in a future version of conda. Your spec was 3.4.*, but conda is ignoring the .* and treating it as 3.4
done
Solving environment: done
## Package Plan ##
  environment location: C:\Users\DYeaw\AppData\Local\Temp\httpx
  added / updated specs:
    - httpx[extras=['cli']]
The following packages will be downloaded:
  package                    |            build
  ---------------------------|-----------------
  httpx-1.0.dev6             |   py3_none_any_0          37 KB  conda-pypi
  ------------------------------------------------------------
                                           Total:          37 KB
The following NEW packages will be INSTALLED:
  bzip2              conda-forge/win-64::bzip2-1.0.8-h0ad9c76_10
  ca-certificates    conda-forge/noarch::ca-certificates-2026.7.22-h4c7d964_0
  httpx              conda-pypi/noarch::httpx-1.0.dev6-py3_none_any_0
  libexpat           conda-forge/win-64::libexpat-2.8.1-hac47afa_1
  libffi             conda-forge/win-64::libffi-3.7.0-h3d046cb_1
  liblzma            conda-forge/win-64::liblzma-5.8.3-hfd05255_1
  libmpdec           conda-forge/win-64::libmpdec-4.0.0-hfd05255_2
  libpython          conda-forge/win-64::libpython-3.14.7-h4f90d01_106_cp314
  libsqlite          conda-forge/win-64::libsqlite-3.53.4-hf5d6505_1
  libzlib            conda-forge/win-64::libzlib-1.3.2-hfd05255_3
  openssl            conda-forge/win-64::openssl-3.6.4-hf411b9b_0
  Python             conda-forge/win-64::Python-3.14.7-h53f6dd8_106_cp314
  python_abi         conda-forge/noarch::python_abi-3.14-9_cp314
  tk                 conda-forge/win-64::tk-8.6.13-h967ab96_4
  truststore         conda-forge/noarch::truststore-0.10.4-pyhcf101f3_0
  typing_extensions  conda-forge/noarch::typing_extensions-4.16.0-pyhcf101f3_0
  tzdata             conda-forge/noarch::tzdata-2026c-h151e31d_0
  ucrt               conda-forge/win-64::ucrt-10.0.26100.0-h57928b3_0
  vc                 conda-forge/win-64::vc-14.5-ha367084_41
  vc14_runtime
…