Can not install with Python 2.7.12
See original GitHub issuewhen 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-0.1.0.7-py2.7.egg
Collecting beautifulsoup4==4.3.2 (from newspaper)
Using cached beautifulsoup4-4.3.2.tar.gz
Collecting Pillow==2.5.1 (from newspaper)
Using cached Pillow-2.5.1.zip
Collecting PyYAML==3.11 (from newspaper)
Using cached PyYAML-3.11.zip
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 setup.py egg_info:
Downloading http://pypi.python.org/packages/source/d/distribute/distribute-0.6.21.tar.gz
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tmp/pip-build-auxeV6/nltk/setup.py", line 23, in <module>
distribute_setup.use_setuptools()
File "distribute_setup.py", line 145, in use_setuptools
return _do_download(version, download_base, to_dir, download_delay)
File "distribute_setup.py", line 124, in _do_download
to_dir, download_delay)
File "distribute_setup.py", line 193, in download_setuptools
src = urlopen(url)
File "/usr/lib/python2.7/urllib2.py", line 154, in urlopen
return opener.open(url, data, timeout)
File "/usr/lib/python2.7/urllib2.py", line 435, in open
response = meth(req, response)
File "/usr/lib/python2.7/urllib2.py", line 548, in http_response
'http', request, response, code, msg, hdrs)
File "/usr/lib/python2.7/urllib2.py", line 473, in error
return self._call_chain(*args)
File "/usr/lib/python2.7/urllib2.py", line 407, in _call_chain
result = func(*args)
File "/usr/lib/python2.7/urllib2.py", 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 setup.py egg_info" failed with error code 1 in /tmp/pip-build-auxeV6/nltk/
Can anyone tell me how fix this problem
Issue Analytics
- State:
- Created 6 years ago
- Reactions:5
- Comments:11 (4 by maintainers)
Top 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: https://bit.ly/python3-mastery 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@codelucas I can confirm that installing newspaper in a Python 2.7.14 conda env works via
pip install git+https://github.com/codelucas/newspaper.git@python-2-head
which contains the new requirements.txt file.
@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 https://pypi.python.org/packages/d8/07/5765cc9c36e2be1a0f0e615b7a092129e1ba30a25182506dea437290c193/newspaper-0.1.0.7.tar.gz
then extract
tar -xzf newspaper-0.1.0.7.tar.gz
edit the requirement.txt with new requirement.txt in repository
you should be fine