[Tutor] trouble with beautiful soup

Mark Lawrence breamoreboy at yahoo.co.uk
Thu Dec 31 10:52:45 EST 2015


Please don't top post, it makes following threads extremely difficult.


On 31/12/2015 13:19, marcus lütolf wrote:
> Dear Pythonistas,
> finally I could install BeautifulSoup on my laptop. Please forget my most recent mail below.
> But if I try the same procedure on my pc i get this and I have no idea why  this code I used for exercises gets into this command even after havin deleted all
> Ma saved exercise codes referring to parsing the web:
>
> Microsoft Windows [Version 10.0.10586]
> (c) 2015 Microsoft Corporation. Alle Rechte vorbehalten.
>
> C:\Users\marcus>cd c:\Python27\Scripts
>
> c:\Python27\Scripts>pip install beutifulsoup

Whoops.

> Traceback (most recent call last):
>    File "c:\python27\lib\runpy.py", line 162, in _run_module_as_main
>      "__main__", fname, loader, pkg_name)
>    File "c:\python27\lib\runpy.py", line 72, in _run_code
>      exec code in run_globals
>    File "c:\Python27\Scripts\pip.exe\__main__.py", line 5, in <module>
>    File "c:\python27\lib\site-packages\pip\__init__.py", line 15, in <module>
>      from pip.vcs import git, mercurial, subversion, bazaar  # noqa
>    File "c:\python27\lib\site-packages\pip\vcs\mercurial.py", line 10, in <module>
>      from pip.download import path_to_url
>    File "c:\python27\lib\site-packages\pip\download.py", line 38, in <module>
>      from pip._vendor import requests, six
>    File "c:\python27\lib\site-packages\pip\_vendor\requests\__init__.py", line 58, in <module>
>      from . import utils
>    File "c:\python27\lib\site-packages\pip\_vendor\requests\utils.py", line 26, in <module>
>      from .compat import parse_http_list as _parse_list_header
>    File "c:\python27\lib\site-packages\pip\_vendor\requests\compat.py", line 38, in <module>
>      from urllib2 import parse_http_list
> ImportError: cannot import name parse_http_list
>
> c:\Python27\Scripts>
>

I get:-

c:\Python27\Scripts>pip install beutifulsoup
Collecting beutifulsoup
   Could not find a version that satisfies the requirement beutifulsoup 
(from versions: )
No matching distribution found for beutifulsoup

I'd guess that the answer from this 
http://stackoverflow.com/questions/17391289/tried-to-use-relative-imports-and-broke-my-import-paths 
applies.

-- 
My fellow Pythonistas, ask not what our language can do for you, ask
what you can do for our language.

Mark Lawrence



More information about the Tutor mailing list