Python Forum
ubuntu packages in pip - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: General (https://python-forum.io/forum-1.html)
+--- Forum: News and Discussions (https://python-forum.io/forum-31.html)
+--- Thread: ubuntu packages in pip (/thread-9912.html)

Pages: 1 2


ubuntu packages in pip - Skaperen - May-04-2018

for a new server running Ubuntu 16.04 LTS i am going through a big list of packages to see what i want to install. if a python package is also in pip, i would prefer to install it via pip. i am wondering if the names are the same or similar (such as remove "python-" from the Ubuntu page name) or if any are radically different. as i go through each name i want to know if it is in pip's repository. i'm building the lists of what to install. this will be transferred to the server later, for actual install, then. how can i tell if a given name is also available via pip. is pip search with that name always going to work?


RE: ubuntu packages in pip - Gribouillis - May-04-2018

You could write a script to list all the python-* packages and do the pip search for you. You could even do this with the python-apt package, the python API to the apt system.


RE: ubuntu packages in pip - Skaperen - May-08-2018

i forgot the solution to making pip list all its packages in one command. can i do regex?


RE: ubuntu packages in pip - Gribouillis - May-08-2018

Did you try pip list without arguments? If you want all the packages in pypi, I found this url https://pypi.org/simple/


RE: ubuntu packages in pip - Skaperen - May-09-2018

i wanted all of the packages in pypi. but i thought someone figured out an option or key for pip search command to make it list them all. i wanted the one-line description with each one. but if going to a web site, i should get the full description for my troubles.


RE: ubuntu packages in pip - Gribouillis - May-09-2018

I could get information in json format about a package (request in this example) by using https://pypi.org/pypi/request/json


RE: ubuntu packages in pip - Skaperen - May-11-2018

firefox formatted the JSON for me. but i don't see a description. i'd like to get ALL packages in one listing.


RE: ubuntu packages in pip - wavic - May-11-2018

You have to do some web scrapping on https://pypi.org/simple/ and take all packages names and GET https://pypi.org/pypi/ package_name /json for each.


RE: ubuntu packages in pip - Skaperen - May-13-2018

i want to do only one HTTP(S) request, not 138622 of them.


RE: ubuntu packages in pip - wavic - May-13-2018

You want one json file for all of them? I doubt that there is one somewhere. The packages info is constantly changing.