I can't install hashlib manually
![Creative The name of the picture](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgO9GURib1T8z7lCwjOGLQaGtrueEthgQ8LO42ZX8cOfTqDK4jvDDpKkLFwf2J49kYCMNW7d4ABih_XCb_2UXdq5fPJDkoyg7-8g_YfRUot-XnaXkNYycsNp7lA5_TW9td0FFpLQ2APzKcZ/s1600/1.jpg)
![Creative The name of the picture](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhYQ0N5W1qAOxLP7t7iOM6O6AzbZnkXUy16s7P_CWfOb5UbTQY_aDsc727chyphenhyphen5W4IppVNernMMQeaUFTB_rFzAd95_CDt-tnwN-nBx6JyUp2duGjPaL5-VgNO41AVsA_vu30EJcipdDG409/s400/Clash+Royale+CLAN+TAG%2523URR8PPP.png)
up vote
0
down vote
favorite
I'm not sure why, but when I'm installing hashlib
, it gives me an error. I've already tried a good number of potential solutions, and I'd appreciate any help.
$ pip install --user hashlib
Collecting hashlib
Using cached https://files.pythonhosted.org/packages/74/bb/9003d081345e9f0451884146e9ea2cff6e4cc4deac9ffd4a9ee98b318a49/hashlib-20081119.zip
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/home/tania/anaconda3/lib/python3.6/site-packages/setuptools/__init__.py", line 12, in <module>
import setuptools.version
File "/home/tania/anaconda3/lib/python3.6/site-packages/setuptools/version.py", line 1, in <module>
import pkg_resources
File "/home/tania/anaconda3/lib/python3.6/site-packages/pkg_resources/__init__.py", line 36, in <module>
import email.parser
File "/home/tania/anaconda3/lib/python3.6/email/parser.py", line 12, in <module>
from email.feedparser import FeedParser, BytesFeedParser
File "/home/tania/anaconda3/lib/python3.6/email/feedparser.py", line 27, in <module>
from email._policybase import compat32
File "/home/tania/anaconda3/lib/python3.6/email/_policybase.py", line 9, in <module>
from email.utils import _has_surrogates
File "/home/tania/anaconda3/lib/python3.6/email/utils.py", line 28, in <module>
import random
File "/home/tania/anaconda3/lib/python3.6/random.py", line 46, in <module>
from hashlib import sha512 as _sha512
File "/tmp/pip-install-vm0l089t/hashlib/hashlib.py", line 80
raise ValueError, "unsupported hash type"
^
SyntaxError: invalid syntax
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-install-vm0l089t/hashlib/
python
add a comment |Â
up vote
0
down vote
favorite
I'm not sure why, but when I'm installing hashlib
, it gives me an error. I've already tried a good number of potential solutions, and I'd appreciate any help.
$ pip install --user hashlib
Collecting hashlib
Using cached https://files.pythonhosted.org/packages/74/bb/9003d081345e9f0451884146e9ea2cff6e4cc4deac9ffd4a9ee98b318a49/hashlib-20081119.zip
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/home/tania/anaconda3/lib/python3.6/site-packages/setuptools/__init__.py", line 12, in <module>
import setuptools.version
File "/home/tania/anaconda3/lib/python3.6/site-packages/setuptools/version.py", line 1, in <module>
import pkg_resources
File "/home/tania/anaconda3/lib/python3.6/site-packages/pkg_resources/__init__.py", line 36, in <module>
import email.parser
File "/home/tania/anaconda3/lib/python3.6/email/parser.py", line 12, in <module>
from email.feedparser import FeedParser, BytesFeedParser
File "/home/tania/anaconda3/lib/python3.6/email/feedparser.py", line 27, in <module>
from email._policybase import compat32
File "/home/tania/anaconda3/lib/python3.6/email/_policybase.py", line 9, in <module>
from email.utils import _has_surrogates
File "/home/tania/anaconda3/lib/python3.6/email/utils.py", line 28, in <module>
import random
File "/home/tania/anaconda3/lib/python3.6/random.py", line 46, in <module>
from hashlib import sha512 as _sha512
File "/tmp/pip-install-vm0l089t/hashlib/hashlib.py", line 80
raise ValueError, "unsupported hash type"
^
SyntaxError: invalid syntax
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-install-vm0l089t/hashlib/
python
add a comment |Â
up vote
0
down vote
favorite
up vote
0
down vote
favorite
I'm not sure why, but when I'm installing hashlib
, it gives me an error. I've already tried a good number of potential solutions, and I'd appreciate any help.
$ pip install --user hashlib
Collecting hashlib
Using cached https://files.pythonhosted.org/packages/74/bb/9003d081345e9f0451884146e9ea2cff6e4cc4deac9ffd4a9ee98b318a49/hashlib-20081119.zip
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/home/tania/anaconda3/lib/python3.6/site-packages/setuptools/__init__.py", line 12, in <module>
import setuptools.version
File "/home/tania/anaconda3/lib/python3.6/site-packages/setuptools/version.py", line 1, in <module>
import pkg_resources
File "/home/tania/anaconda3/lib/python3.6/site-packages/pkg_resources/__init__.py", line 36, in <module>
import email.parser
File "/home/tania/anaconda3/lib/python3.6/email/parser.py", line 12, in <module>
from email.feedparser import FeedParser, BytesFeedParser
File "/home/tania/anaconda3/lib/python3.6/email/feedparser.py", line 27, in <module>
from email._policybase import compat32
File "/home/tania/anaconda3/lib/python3.6/email/_policybase.py", line 9, in <module>
from email.utils import _has_surrogates
File "/home/tania/anaconda3/lib/python3.6/email/utils.py", line 28, in <module>
import random
File "/home/tania/anaconda3/lib/python3.6/random.py", line 46, in <module>
from hashlib import sha512 as _sha512
File "/tmp/pip-install-vm0l089t/hashlib/hashlib.py", line 80
raise ValueError, "unsupported hash type"
^
SyntaxError: invalid syntax
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-install-vm0l089t/hashlib/
python
I'm not sure why, but when I'm installing hashlib
, it gives me an error. I've already tried a good number of potential solutions, and I'd appreciate any help.
$ pip install --user hashlib
Collecting hashlib
Using cached https://files.pythonhosted.org/packages/74/bb/9003d081345e9f0451884146e9ea2cff6e4cc4deac9ffd4a9ee98b318a49/hashlib-20081119.zip
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/home/tania/anaconda3/lib/python3.6/site-packages/setuptools/__init__.py", line 12, in <module>
import setuptools.version
File "/home/tania/anaconda3/lib/python3.6/site-packages/setuptools/version.py", line 1, in <module>
import pkg_resources
File "/home/tania/anaconda3/lib/python3.6/site-packages/pkg_resources/__init__.py", line 36, in <module>
import email.parser
File "/home/tania/anaconda3/lib/python3.6/email/parser.py", line 12, in <module>
from email.feedparser import FeedParser, BytesFeedParser
File "/home/tania/anaconda3/lib/python3.6/email/feedparser.py", line 27, in <module>
from email._policybase import compat32
File "/home/tania/anaconda3/lib/python3.6/email/_policybase.py", line 9, in <module>
from email.utils import _has_surrogates
File "/home/tania/anaconda3/lib/python3.6/email/utils.py", line 28, in <module>
import random
File "/home/tania/anaconda3/lib/python3.6/random.py", line 46, in <module>
from hashlib import sha512 as _sha512
File "/tmp/pip-install-vm0l089t/hashlib/hashlib.py", line 80
raise ValueError, "unsupported hash type"
^
SyntaxError: invalid syntax
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-install-vm0l089t/hashlib/
python
edited May 19 at 23:14
![](https://i.stack.imgur.com/QxbAJ.png?s=32&g=1)
![](https://i.stack.imgur.com/QxbAJ.png?s=32&g=1)
Chai T. Rex
3,45611132
3,45611132
asked May 19 at 22:59
![](https://i.stack.imgur.com/lZGcD.jpg?s=32&g=1)
![](https://i.stack.imgur.com/lZGcD.jpg?s=32&g=1)
Tan
1
1
add a comment |Â
add a comment |Â
1 Answer
1
active
oldest
votes
up vote
1
down vote
can't install hashlib manually
$ pip install --user hashlib
Note1 : pip
is usually a python2 command.
Note2 : A contemporary "hashlib" is present by default:
$ locate hashlib.py
/snap/core/4486/usr/lib/python3.5/hashlib.py
/snap/core/4571/usr/lib/python3.5/hashlib.py
/snap/pulsemixer/23/usr/lib/python3.5/hashlib.py
/snap/pulsemixer/8/usr/lib/python3.5/hashlib.py
/snap/software-boutique/31/usr/lib/python3.5/hashlib.py
/snap/ubuntu-mate-welcome/169/usr/lib/python3.5/hashlib.py
/usr/lib/python2.7/hashlib.py
/usr/lib/python2.7/hashlib.pyc
/usr/lib/python3.6/hashlib.py
Hashlib-2008 : Like the name says â year 2008: Files that old will often fail with gcc-7
.
Manually : Get hashlib-20081119.zip
https://files.pythonhosted.org/packages/74/bb/9003d081345e9f0451884146e9ea2cff6e4cc4deac9ffd4a9ee98b318a49/hashlib-20081119.zip
Example with Ubuntu 18.04 and python2
( Fails with python3 ):
sudo apt install g++ g++-5
unzip hashlib-20081119.zip
cd hashlib-20081119/
export CC=gcc-5 && python setup.py build && sudo python setup.py install
.
.
Writing /usr/local/lib/python2.7/dist-packages/hashlib-20081119.egg-info
add a comment |Â
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
1
down vote
can't install hashlib manually
$ pip install --user hashlib
Note1 : pip
is usually a python2 command.
Note2 : A contemporary "hashlib" is present by default:
$ locate hashlib.py
/snap/core/4486/usr/lib/python3.5/hashlib.py
/snap/core/4571/usr/lib/python3.5/hashlib.py
/snap/pulsemixer/23/usr/lib/python3.5/hashlib.py
/snap/pulsemixer/8/usr/lib/python3.5/hashlib.py
/snap/software-boutique/31/usr/lib/python3.5/hashlib.py
/snap/ubuntu-mate-welcome/169/usr/lib/python3.5/hashlib.py
/usr/lib/python2.7/hashlib.py
/usr/lib/python2.7/hashlib.pyc
/usr/lib/python3.6/hashlib.py
Hashlib-2008 : Like the name says â year 2008: Files that old will often fail with gcc-7
.
Manually : Get hashlib-20081119.zip
https://files.pythonhosted.org/packages/74/bb/9003d081345e9f0451884146e9ea2cff6e4cc4deac9ffd4a9ee98b318a49/hashlib-20081119.zip
Example with Ubuntu 18.04 and python2
( Fails with python3 ):
sudo apt install g++ g++-5
unzip hashlib-20081119.zip
cd hashlib-20081119/
export CC=gcc-5 && python setup.py build && sudo python setup.py install
.
.
Writing /usr/local/lib/python2.7/dist-packages/hashlib-20081119.egg-info
add a comment |Â
up vote
1
down vote
can't install hashlib manually
$ pip install --user hashlib
Note1 : pip
is usually a python2 command.
Note2 : A contemporary "hashlib" is present by default:
$ locate hashlib.py
/snap/core/4486/usr/lib/python3.5/hashlib.py
/snap/core/4571/usr/lib/python3.5/hashlib.py
/snap/pulsemixer/23/usr/lib/python3.5/hashlib.py
/snap/pulsemixer/8/usr/lib/python3.5/hashlib.py
/snap/software-boutique/31/usr/lib/python3.5/hashlib.py
/snap/ubuntu-mate-welcome/169/usr/lib/python3.5/hashlib.py
/usr/lib/python2.7/hashlib.py
/usr/lib/python2.7/hashlib.pyc
/usr/lib/python3.6/hashlib.py
Hashlib-2008 : Like the name says â year 2008: Files that old will often fail with gcc-7
.
Manually : Get hashlib-20081119.zip
https://files.pythonhosted.org/packages/74/bb/9003d081345e9f0451884146e9ea2cff6e4cc4deac9ffd4a9ee98b318a49/hashlib-20081119.zip
Example with Ubuntu 18.04 and python2
( Fails with python3 ):
sudo apt install g++ g++-5
unzip hashlib-20081119.zip
cd hashlib-20081119/
export CC=gcc-5 && python setup.py build && sudo python setup.py install
.
.
Writing /usr/local/lib/python2.7/dist-packages/hashlib-20081119.egg-info
add a comment |Â
up vote
1
down vote
up vote
1
down vote
can't install hashlib manually
$ pip install --user hashlib
Note1 : pip
is usually a python2 command.
Note2 : A contemporary "hashlib" is present by default:
$ locate hashlib.py
/snap/core/4486/usr/lib/python3.5/hashlib.py
/snap/core/4571/usr/lib/python3.5/hashlib.py
/snap/pulsemixer/23/usr/lib/python3.5/hashlib.py
/snap/pulsemixer/8/usr/lib/python3.5/hashlib.py
/snap/software-boutique/31/usr/lib/python3.5/hashlib.py
/snap/ubuntu-mate-welcome/169/usr/lib/python3.5/hashlib.py
/usr/lib/python2.7/hashlib.py
/usr/lib/python2.7/hashlib.pyc
/usr/lib/python3.6/hashlib.py
Hashlib-2008 : Like the name says â year 2008: Files that old will often fail with gcc-7
.
Manually : Get hashlib-20081119.zip
https://files.pythonhosted.org/packages/74/bb/9003d081345e9f0451884146e9ea2cff6e4cc4deac9ffd4a9ee98b318a49/hashlib-20081119.zip
Example with Ubuntu 18.04 and python2
( Fails with python3 ):
sudo apt install g++ g++-5
unzip hashlib-20081119.zip
cd hashlib-20081119/
export CC=gcc-5 && python setup.py build && sudo python setup.py install
.
.
Writing /usr/local/lib/python2.7/dist-packages/hashlib-20081119.egg-info
can't install hashlib manually
$ pip install --user hashlib
Note1 : pip
is usually a python2 command.
Note2 : A contemporary "hashlib" is present by default:
$ locate hashlib.py
/snap/core/4486/usr/lib/python3.5/hashlib.py
/snap/core/4571/usr/lib/python3.5/hashlib.py
/snap/pulsemixer/23/usr/lib/python3.5/hashlib.py
/snap/pulsemixer/8/usr/lib/python3.5/hashlib.py
/snap/software-boutique/31/usr/lib/python3.5/hashlib.py
/snap/ubuntu-mate-welcome/169/usr/lib/python3.5/hashlib.py
/usr/lib/python2.7/hashlib.py
/usr/lib/python2.7/hashlib.pyc
/usr/lib/python3.6/hashlib.py
Hashlib-2008 : Like the name says â year 2008: Files that old will often fail with gcc-7
.
Manually : Get hashlib-20081119.zip
https://files.pythonhosted.org/packages/74/bb/9003d081345e9f0451884146e9ea2cff6e4cc4deac9ffd4a9ee98b318a49/hashlib-20081119.zip
Example with Ubuntu 18.04 and python2
( Fails with python3 ):
sudo apt install g++ g++-5
unzip hashlib-20081119.zip
cd hashlib-20081119/
export CC=gcc-5 && python setup.py build && sudo python setup.py install
.
.
Writing /usr/local/lib/python2.7/dist-packages/hashlib-20081119.egg-info
edited May 20 at 13:47
answered May 20 at 13:17
![](https://i.stack.imgur.com/aXCqO.jpg?s=32&g=1)
![](https://i.stack.imgur.com/aXCqO.jpg?s=32&g=1)
Knud Larsen
1,441157
1,441157
add a comment |Â
add a comment |Â
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1038220%2fi-cant-install-hashlib-manually%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password