Install particular version with easy_install

后端 未结 3 1610
南笙
南笙 2020-12-23 16:04

I\'m trying to install lxml. I\'ve had a look at the website, and version 2.2.8 looked reasonable to me but when I did easy_install lxml, it instal

相关标签:
3条回答
  • 2020-12-23 16:18

    You should do something like this:

    easy_install "lxml==2.2.8"
    
    0 讨论(0)
  • 2020-12-23 16:30

    I believe the way to specify a version would be like this:

    easy_install lxml==2.2.8
    

    I (and most other Python users I suspect) stopped using easy_install and started using pip some time ago, so a solution in those terms is:

    easy_install pip
    pip install lxml==2.2.8
    

    (pip has several benefits, including an uninstall command)

    0 讨论(0)
  • 2020-12-23 16:32

    From the easy_install documentation:

    easy_install PackageName==1.2.3

    0 讨论(0)
提交回复
热议问题