Want to install six and It gives me the error " No module named 'six' "

838 Views Asked by At

I get following error:

fhem@raspberrypi:/home/pi/Downloads$ sudo pip install six-1.10.0.tar.gz
Traceback (most recent call last):
  File "/usr/local/bin/pip", line 6, in <module>
    from pkg_resources import load_entry_point
  File "/usr/local/lib/python3.4/dist-packages/pkg_resources/__init__.py", line 48, in <module>
    import six
ImportError: No module named 'six'

Thx for all answers!

2

There are 2 best solutions below

3
On BEST ANSWER

Probably you need to untar the tar file.

tar -xzvf ./six-1.10.0.tar.gz

Then cd into six-1.10.0

Then install using -

python setup.py install
0
On

You have to specify six version in other way, as six==1.10.0, command below would work for you:

sudo pip install six==1.10.0