ktulxx Posted July 29, 2017 Share Posted July 29, 2017 Hi.I'd like to get these installed, if possible: urllib2BeautifulSoup 4 (bs4)lxmlrfc822datetime It will be a simple html parser for my personal use. username: ktulxxserver: TommyPython 2.7.5 Thank you. Link to comment Share on other sites More sharing options...
Luigi123 Posted July 29, 2017 Share Posted July 29, 2017 This support request is being escalated to our root admin. Link to comment Share on other sites More sharing options...
Krydos Posted July 30, 2017 Share Posted July 30, 2017 I installed bs4. The others listed were already available. http://krydos.heliohost.org/cgi-bin/modules27.py Link to comment Share on other sites More sharing options...
ktulxx Posted July 30, 2017 Author Share Posted July 30, 2017 Thanks, Krydos. Works beautifully Just wondering - why can't I see all the modules in the list by your link? rfc822, for instance, is not there. Link to comment Share on other sites More sharing options...
Krydos Posted July 30, 2017 Share Posted July 30, 2017 The way the list works is by looking at what modules have been installed by pip. Here's the code #!/bin/python print("Content-Type: text/html\n\n") import pip installed_packages = pip.get_installed_distributions() installed_packages_list = sorted(["<td>%s</td><td>%s</td>" % (i.key, i.version) for i in installed_packages]) print("Tommy /bin/python installed modules:<br><br>") print("<table><tr><th align='left'>Module</th><th align='left'>Version</th></tr>") print("</tr><tr>".join(installed_packages_list)) print("</tr></table>") That list won't include the python standard libraries which weren't installed with pip: https://docs.python.org/2/library/index.html 1 Link to comment Share on other sites More sharing options...
ktulxx Posted July 30, 2017 Author Share Posted July 30, 2017 Clear enough.Thank you. Link to comment Share on other sites More sharing options...
Recommended Posts