Brauchen Sie Hilfe bei der Installation von Anfragen für Python 3
Ich versuche, das "Anfragen" -Modul für Python 3 unter FreeBSD zu installieren. Ich verwende Python 3.2, habe aber auch Python 2.6 auf dem Computer installiert.
Ich habe Pip installiert.
pip --version
pip 1.1 from /usr/local/lib/python3.2/site-packages (python 3.2)
Ich habe Pip-Installationsanforderungen ausgeführt
Ich habe eine Reihe von Syntaxfehlern, beginnend mit:
File "/usr/local/lib/python3.2/site-packages/requests/packages/chardet/chardistribution.py", line 48
self._mDone = constants.False # If this flag is set to constants.True, detection is done and conclusion has been made
^
SyntaxError: invalid syntax
File "/usr/local/lib/python3.2/site-packages/requests/packages/chardet/charsetgroupprober.py", line 44
prober.active = constants.True
^
SyntaxError: invalid syntax
File "/usr/local/lib/python3.2/site-packages/requests/packages/chardet/constants.py", line 46
False = __builtin__.False
Habe ich irgendwie die Python 2-Version von "Anfragen" bekommen?Wenn ich "Python" starte, bekomme ich die Version 2.6.6. Ich muss explizit "python3.2" ausführen. Muss ich etwas tun, damit 3.2 meine Standard-Python-Installation wird?