1

Is there a way to install an old version of a package with optional dependencies?

For example, I can pip install pandas[xml] that would install the current pandas version with the xml extra dependencies.

Nonetheless, when I do pip install pandas==1.4.4[xml], the following error appears: ERROR: Extras after version '==1.4.4[xml]'. From the archived documentation of pandas the [xml] extra dependencies already existed in version 1.4.4.

KevinYanesG
  • 171
  • 1
  • 6

1 Answers1

-1

first you need to install the specific version of the package using pip:

pip install pandas==1.4.4

after install the optional dependencies separately:

pip install pandas[xml]==1.4.4
Lendy345
  • 34
  • 6
  • 1
    No need to install `pip install pandas==1.4.4` separately, `pip install "pandas[xml]==1.4.4"` works just fine alone. – phd Jul 19 '23 at 11:11