Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Can not install with Python 2.7.12

See original GitHub issue

Issue Description

when I run pip install newspaper under Ubuntu 16.04 with python 2.7.12, I see this

yajing@yajing:~$ sudo -H pip install newspaper
Requirement already satisfied: newspaper in /usr/local/lib/python2.7/dist-packages/newspaper-
Collecting beautifulsoup4==4.3.2 (from newspaper)
  Using cached beautifulsoup4-4.3.2.tar.gz
Collecting Pillow==2.5.1 (from newspaper)
  Using cached
Collecting PyYAML==3.11 (from newspaper)
  Using cached
Collecting cssselect==0.9.1 (from newspaper)
  Using cached cssselect-0.9.1.tar.gz
Collecting lxml==3.3.5 (from newspaper)
  Using cached lxml-3.3.5.tar.gz
Collecting nltk==2.0.5 (from newspaper)
  Using cached nltk-2.0.5.tar.gz
    Complete output from command python egg_info:
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/tmp/pip-build-auxeV6/nltk/", line 23, in <module>
      File "", line 145, in use_setuptools
        return _do_download(version, download_base, to_dir, download_delay)
      File "", line 124, in _do_download
        to_dir, download_delay)
      File "", line 193, in download_setuptools
        src = urlopen(url)
      File "/usr/lib/python2.7/", line 154, in urlopen
        return, data, timeout)
      File "/usr/lib/python2.7/", line 435, in open
        response = meth(req, response)
      File "/usr/lib/python2.7/", line 548, in http_response
        'http', request, response, code, msg, hdrs)
      File "/usr/lib/python2.7/", line 473, in error
        return self._call_chain(*args)
      File "/usr/lib/python2.7/", line 407, in _call_chain
        result = func(*args)
      File "/usr/lib/python2.7/", line 556, in http_error_default
        raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)
    urllib2.HTTPError: HTTP Error 403: SSL is required
Command "python egg_info" failed with error code 1 in /tmp/pip-build-auxeV6/nltk/

Can anyone tell me how fix this problem

Issue Analytics

  • State:open
  • Created 5 years ago
  • Reactions:5
  • Comments:11 (4 by maintainers)

github_iconTop GitHub Comments

fdroesslercommented, Feb 15, 2018

@codelucas I can confirm that installing newspaper in a Python 2.7.14 conda env works via

pip install git+

which contains the new requirements.txt file.

trimbilrepocommented, Feb 15, 2018

@codelucas the problem was the NLTK version. version 2.0.5 is the old version and hosted in http rather than https. you can remove nltk and tried install newspaper to reproduce the problem.

to solve this issue: just donwload newspaper from pip website wget

then extract tar -xzf newspaper-

edit the requirement.txt with new requirement.txt in repository

cd newspaper-
# edit the file
tar -czvf  newspaper- newspaper-
pip install newspaper-

you should be fine

Read more comments on GitHub >

github_iconTop Results From Across the Web

error while installing Python 2.7.12 "There is a problem with ...
After doing all this, I downloaded python 2.7. 12 and try to install. And I able to install this without any error.
Read more >
Issue 27564: 2.7.12 Windows Installer package broken.
I downloaded the msi for Python 2.7.12 and attempted to run it. ... A program required for this install to complete could not...
Read more >
How to Install Python 2.7 on Windows 10 & add to system path
Python 3 Course: How To Install Python 2.7 on windows 10How to ... Your browser can 't play this video.
Read more >
How to Install Python PIP on Windows, Mac, and Linux
If you're using Python 2.7.9 (or greater), 3.4 (or greater), then PIP is already built into the Python installer. When you download the...
Read more >
Python 2.7.12 not compatible with Django but still cannot be ...
Install ArcMap; Install Python 3.x; pip install Django. Typically, the last Python installed on the machine becomes the one you get when you ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Post

No results found

github_iconTop Related Hashnode Post

No results found