-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
File "get-pip.py", line 43 #2343
Comments
I'm pretty sure there some more output after that. Can you paste it all? |
[root@localhost src]# python get-pip.py |
Maybe it got corrupted. Try getting it again from https://bootstrap.pypa.io/get-pip.py |
Yes, I download from the link, but still comes out the same error. |
I think something wrong in my system, I install python-3.4.2, but system still show: Python 2.4.3I will check again. |
hello, i changed to python-3.4.2 and run the command, the system shows a new error:
Yum broken. |
hello:
|
As far as I know, command yum is based on python 2.x. -Boush |
Pip no longer supports Python 2.4, the |
I just installed latest Python 2.7.14 from www.python.org. Built it from source, and have Python working and showing version 2.7.14. It did not include or build pip. I downloaded get-pip.py from https://pip.pypa.io/en/stable/installing/#installing-with-get-pip-py, and tried to run: Python get-pip.py, as per instructions - but I got exactly the same error documented here, viz. "SyntaxError: Invalid Syntax" on line 43. Is there a fix for this error, or a workaround? Thanx. |
Solution: (I realize this is a closed thread - but for those doing google searches to resolve this, let me put the solution I found that worked for us).. We have a bunch of machines running an older Fedora, and the fix for us was, given I had just installed the newer Python 2.7.14 from source and used "make install" (probably better to leave your system default Python alone, and install using "make altinstall"), but I wanted to use python 2.7 as system default. I did a "yum install openssl-devel" to get all the ssl stuff, and then, did a REBOOT of the machine. The reboot was critical. Once rebooted, the "python get-pip.py" command ran, and found all three needed packages, downloaded them, and indicated "pip, wheel, setuptools" were installed successfully. Entering "pip --version" at command shell, indicates pip version 9.0.1 running and using "/usr/local/lib/python2.7/site-packages (python 2.7)". |
hello:
I installed python-3.4.2 and run python get-pip.py, system come out this error:
Does anyone knows how to solve that?
thanks!
The text was updated successfully, but these errors were encountered: