Python Forum
Problems with moving from 3.5 to 3.6
Thread Rating:
  • 1 Vote(s) - 4 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Problems with moving from 3.5 to 3.6
#2
Quote:Python 3.6 does not see the "requests" module. The module is located in the folder "/usr/lib/python3/dist-packages/"
This could cause problems in the future. You are basically re-using python3.5 3rd party modules for python3.6. This appears to have no effect on request or bs4 modules, but can on others. You should strive to install separate modules, one for each python installation. 


Quote:beautifulsoup does not know what lxml is anymore.
You can either install lxml to your python3.6
https://pypi.python.org/pypi/lxml

or you can change your parser from
Quote:
soup = BeautifulSoup(html, "lxml")
to this
soup = BeautifulSoup(html, "html.parser")
Recommended Tutorials:
Reply


Messages In This Thread
Problems with moving from 3.5 to 3.6 - by Hellerick - Dec-27-2016, 09:35 AM
RE: Problems with moving from 3.5 to 3.6 - by metulburr - Dec-27-2016, 10:32 AM
RE: Problems with moving from 3.5 to 3.6 - by wavic - Dec-27-2016, 10:44 AM

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020