1

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!

Jhidzzo
  • 77
  • 10

2 Answers2

3

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
Rajeev Ranjan
  • 3,588
  • 6
  • 28
  • 52
  • 1
    This does work, but it's not *essential* -- pip *can* install from a downloaded file, just not with the syntax the OP was originally trying to use. – Charles Duffy May 27 '17 at 19:11
  • ok that installation worked but others still dont work... fhem@raspberrypi:/home/pi/Downloads/attr-0.2.0$ sudo pip install attr Traceback (most recent call last): File "/usr/local/bin/pip", line 6, in from pkg_resources import load_entry_point File "/usr/local/lib/python3.4/dist-packages/pkg_resources/__init__.py", line 48, in import six ImportError: No module named 'six' – Jhidzzo May 27 '17 at 19:24
  • sudo python -m pip install --upgrade --force-reinstall pip Worked for me – Jhidzzo May 27 '17 at 19:50
2

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
Andriy Ivaneyko
  • 20,639
  • 6
  • 60
  • 82