Wie installieren von python 3 und setuptools auf raspberry pi?
Ich installieren möchte Sie-bekommen aber nicht. Fistly, wenn ich make install
je nach Projekt ist eine README-Datei, bekam ich diese Fehlermeldung:
pi@raspberrypi ~/you-get $ make install
python3 setup.py bdist_egg
Traceback (most recent call last):
File "setup.py", line 15, in <module>
from setuptools import setup, find_packages
ImportError: No module named setuptools
make: *** [bdist_egg] Error 1
Ich denke, es ist, weil die setuptool
von python nicht installiert, so dass, nach diese, ich habe den Befehl ausgeführt, aber immer noch obige Fehlermeldung.
Dann habe ich versucht sudo easy_install pip
und pip install you-get
, bekam aber diese Fehlermeldung:
pi@raspberrypi ~ $ sudo pip install you-get
Downloading/unpacking you-get
Downloading you-get-0.3.24.tar.gz (51kB): 51kB downloaded
Running setup.py egg_info for package you-get
Installing collected packages: you-get
Running setup.py install for you-get
SyntaxError: ("unqualified exec is not allowed in function 'decipher' it contains a nested function with free variables",)
Successfully installed you-get
Cleaning up...
Möchte ich sehen, ob es wirklich versäumt, so dass ich laufen you-get -V
, dann kam dieser Fehler:
pi@raspberrypi ~ $ you-get -V
Traceback (most recent call last):
File "/usr/local/bin/you-get", line 8, in <module>
load_entry_point('you-get==0.3.24', 'console_scripts', 'you-get')()
File "build/bdist.linux-armv6l/egg/pkg_resources.py", line 318, in load_entry_point
File "build/bdist.linux-armv6l/egg/pkg_resources.py", line 2221, in load_entry_point
File "build/bdist.linux-armv6l/egg/pkg_resources.py", line 1954, in load
File "/usr/local/lib/python2.7/dist-packages/you_get/__init__.py", line 3, in <module>
from .common import *
File "/usr/local/lib/python2.7/dist-packages/you_get/common.py", line 9, in <module>
from urllib import request, parse
ImportError: cannot import name request
Ich denke, es ist, weil die version von python auf dem Raspberry Pi, der Standard-python-version 2.7, aber die you-get
software benötigt python 3, also installierte ich die Python ist3 und dies ausführen:
pi@raspberrypi ~ $ python3 /usr/bin/you-get
python3: can't open file '/usr/bin/you-get': [Errno 2] No such file or directory
pi@raspberrypi ~ $ whereis you-get
you-get: /usr/local/bin/you-get
pi@raspberrypi ~ $ python3 /usr/local/bin/you-get
Traceback (most recent call last):
File "/usr/local/bin/you-get", line 5, in <module>
from pkg_resources import load_entry_point
ImportError: No module named pkg_resources
Dann weiß ich nicht, was als Nächstes zu tun ist.
InformationsquelleAutor Phoenix | 2013-12-15
Du musst angemeldet sein, um einen Kommentar abzugeben.
Wenn Sie möchten, installieren Sie die Python-3.X-version von pip, den Sie brauchen, um den Gegner mit aptitude das Paket:
Weitere Infos http://packages.debian.org/wheezy/python3-pip
InformationsquelleAutor Ketouem
oder für python 2:
InformationsquelleAutor Sid
Hatte ich schon Python ist3, aber keine setuptools, das funktionierte:
Raspbian Jessie Pi3B
InformationsquelleAutor atomh33ls