Invalid Syntax Installing pip - ez_setup.py

Billy Furlong billyfurlong at gmail.com
Mon Dec 1 13:14:39 EST 2014


Hi Chris,

Yep that got me closer.  I found that using | sudo python2.7 was a bad command.  So I changed over to | python2.7.


[root at myserver tmp]# wget https://bootstrap.pypa.io/ez_setup.py --no-check-certificate -O - | python2.7
--2014-12-01 12:57:07--  https://bootstrap.pypa.io/ez_setup.py
Resolving bootstrap.pypa.io... 23.235.46.175
Connecting to bootstrap.pypa.io|23.235.46.175|:443... connected.
WARNING: certificate common name `*.c.ssl.fastly.net' doesn't match requested host name `bootstrap.pypa.io'.
HTTP request sent, awaiting response... 200 OK
Length: 10476 (10K) [text/x-python]
Saving to: `STDOUT'

100%[=============================================================================================>] 10,476      --.-K/s   in 0s

2014-12-01 12:57:07 (30.8 MB/s) - `-' saved [10476/10476]

Downloading https://pypi.python.org/packages/source/s/setuptools/setuptools-7.0.zip
Traceback (most recent call last):
  File "<stdin>", line 332, in <module>
  File "<stdin>", line 327, in main
  File "<stdin>", line 287, in download_setuptools
  File "<stdin>", line 224, in download_file_wget
  File "<stdin>", line 169, in _clean_check
  File "/opt/python2.7/lib/python2.7/subprocess.py", line 542, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['wget', 'https://pypi.python.org/packages/source/s/setuptools/setuptools-7.0.zip', '--quiet', '--output-document', '/tmp/setuptools-7.0.zip']' returned non-zero exit status 1





More information about the Python-list mailing list