简体   繁体   中英

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

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!

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

您必须以其他方式指定六个版本,因为six==1.10.0 ,以下命令将为您工作:

sudo pip install six==1.10.0

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM