Pip doesn't install latest available version from pypi (argparse in this case)

前端 未结 2 1927
生来不讨喜
生来不讨喜 2020-12-31 03:30

The problem

I worked on some python projects lately and had lots of problems with pip not installing the latest versions of some requirements. I am on

相关标签:
2条回答
  • 2020-12-31 03:53

    Here's the command I used to install argparse using pip 1.5.4:

    pip install --allow-all-external argparse==1.2.1
    
    0 讨论(0)
  • 2020-12-31 03:55

    I think this line is the key:

    Some externally hosted files were ignored (use --allow-external to allow).

    When I install argparse here I get

    You are installing an externally hosted file. Future versions of pip will default to disallowing externally hosted files.

    Downloading argparse-1.2.1.tar.gz (69kB): 69kB downloaded

    So you have a newer version of pip that is disallowing externally hosted files by default

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