-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Better documentation on using --platform and --python-version #6369
Comments
Have you tried looking at the downloadable files page for each package? e.g. https://pypi.org/project/pandas/#files |
I was just digging through the source code as you made this comment. I eventually figured out that the arguments I wanted were These were completely non-obvious. This has solved my problem, but I still think that users could get very lost and confused when trying to use these options. |
It seems like if one looks at the page of downloadable files for a package, this shouldn't be too hard provided one has an understanding of what the wheel filenames mean (which is documented in PEP 425). But I'd like to know how this can be made easier. I'm also not sure if it's more a pip issue or a Warehouse (PyPI) issue. |
+1 One of the things we could do is have a more friendly explainer of Wheel Tags somewhere and link to it. Perhaps packaging.python.org is the right place for such a document? |
hey I would like to get some more insight into this issue |
I think there are two areas we can improve here:
Since these flags are for wheel selection, valid inputs are described in the wheel spec (PEP 427). It would be helpful to provide a short write-up in the documentation and link to the PEP and PyPA’s page for platform tags. |
I would like to work on this issue , please assign me this issue . @uranusjr |
@Joe-Sin7h GitHub does not allow assigning arbitrary users to an issue (not sure what the criterion is), so please feel free to go ahead and create a PR when you’re ready. |
I've written up a txt with documentation on tags, but am unsure where to add this or where to fold its content in. I'd also be happy to contribute on point 2, but am unsure where in the src to start. |
I think @pradyunsg you can probably answer the documentation part better. For point 2, you want to start in |
File a PR adding it to the User Guide for now? Once I'm able to see the content, I'll be able to better judge if we should keep it there or move it into a Topic Guide or something else. |
Hi , is the issue still open & up for someone to contribute |
Please go ahead and open a pull request. |
Evening everyone, This is with the intention of adding it as part of the User Guide in the pip repository. Any resources or clarification is appreciated. :) |
I would suggest that we simply add a note to the documentation for |
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 triedlinux
linux_x86_64
for
--python-version
I have tried3
,37
,3.7
,cp37
I'm not sure if any of these are correct. I would expect the tool to offer example values ie
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
I would expect that command to list all possible platform/python-version options that are applicable for the package.
Thank you
The text was updated successfully, but these errors were encountered: