Skip to content

Better documentation on using --platform and --python-version #6369

@paddymul

Description

@paddymul

What's the problem this feature will solve?
I want to use pip to download linux packages onto a mac.

I know that I need to use some combination of --platform, --python-version, --only-binary=:all:. but I don't know the proper values for these options.

Describe the solution you'd like
I would like the documentation from the command line tool to be clear, or the package documentation on pypi to be clear for each package what values were used for these options.

I am specifically trying to install pandas and sklearn for this example, but I think the issue is with the documentation.

for --platform I have tried linux linux_x86_64
for --python-version I have tried 3, 37, 3.7, cp37

I'm not sure if any of these are correct. I would expect the tool to offer example values ie

 cp37 is not a valid option for --python-platform try (3, 37, py37) instead

I am downloading these packages in order to package them into an AWS lambda function. I would rather not spin up a linux VM just to download packages.

Alternative Solutions

I also tried

pip search -vvv pandas

I would expect that command to list all possible platform/python-version options that are applicable for the package.

Thank you

Metadata

Metadata

Assignees

No one assigned

    Labels

    good first issueA good item for first time contributors to work ontype: docsDocumentation related

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions