Nov-20-2019, 09:31 AM
I am completely new about Python and on this forum. I installed Python 3.8.0 (64-bit), and learned that I need BeautifulSoup for webscraping. So I tried to install this tool several times with the help of YouTube instructions, but never got conformation that the installation was OK. Due to these attempts, maybe the directory structure inside my Python became a little mess. Indeed, I see that I have two library-maps: "Libs" and "lib", both containing a map "BeautifulSoup4-4.8.0".
I suppose I have to suppress one of them ?
When I try with Python "from bs4 import beautifulsoup" I get the message:
"You are trying to run the Python2-version of Beautiful Soup under Python3 - this will not work - You need to convert the code either by installing it (python setup.py install) or by running 2to3 (2to3 -w bs4)".
I tried both: when I enter in Python "python setup.py install" I get: "invalid syntax", and also after entering "2to3 -w bs4" I get same message.
What am I doing wrong ??
Many thanks
I suppose I have to suppress one of them ?
When I try with Python "from bs4 import beautifulsoup" I get the message:
"You are trying to run the Python2-version of Beautiful Soup under Python3 - this will not work - You need to convert the code either by installing it (python setup.py install) or by running 2to3 (2to3 -w bs4)".
I tried both: when I enter in Python "python setup.py install" I get: "invalid syntax", and also after entering "2to3 -w bs4" I get same message.
What am I doing wrong ??
Many thanks