Auslaufpip Installation von Python 2.7.5

Post a reply

Smilies
:) :( :oops: :chelo: :roll: :wink: :muza: :sorry: :angel: :read: *x) :clever:
View more smilies

BBCode is ON
[img] is ON
[flash] is OFF
[url] is ON
Smilies are ON

Topic review
   

Expand view Topic review: Auslaufpip Installation von Python 2.7.5

by Anonymous » 19 Aug 2025, 07:09

Ich habe einen CentOS -Server (5.6) mit Python 2.4.3. Ich habe eine weitere lokale Installation von Python (2.7.5) in/opt und Soft-Links, die wie folgt /usr/local/bin/python2.7 und /usr/local/python2.7 erstellt wurden. Ich möchte Python-Requests mit PIP installieren. Bei der Installation der Befehlspip -Installationsanforderungen < /code> erhalte ich den folgenden Fehler: < /p>

Code: Select all

root ~/ff_test_ff # pip install requests
Unpacking ./requests
Running setup.py egg_info for package from file:///root/ff_test_ff/requests
Traceback (most recent call last):
File "", line 14, in ?
File "/tmp/pip-MM685m-build/setup.py", line 6, in ?
import requests
File "requests/__init__.py", line 58
from . import utils
^
SyntaxError: invalid syntax
Complete output from command python setup.py egg_info:
Traceback (most recent call last):

File "", line 14, in ?

File "/tmp/pip-MM685m-build/setup.py", line 6, in ?

import requests

File "requests/__init__.py", line 58

from . import utils

^

SyntaxError: invalid syntax

----------------------------------------
Command python setup.py egg_info failed with error code 1
Storing complete log in /root/.pip/pip.log
< /code>

Ich gehe davon aus, dass es immer noch versucht, Python 2.4 zu verwenden. Ich habe hier nachgesehen, dass 2.4 nicht unterstützt wird. Wie führe ich den Befehl pip install 
aus, verwende aber stattdessen Python2.7?

Top