Question

So I'm trying to download ez_setup.py according to the instructions for Mac here:

https://pypi.python.org/pypi/setuptools#unix-based-systems-including-mac-os-x

Am I just supposed to run:

wget https://bitbucket.org/pypa/setuptools/raw/bootstrap/ez_setup.py -O - | python

If so, I get a syntax error (carrot points to the s in "https"). Any ideas what's going on here?

Thanks for the help, Mariogs

Was it helpful?

Solution

Sounds like you're running this command from within the Python shell. Run it instead from the command line shell (Terminal), and you should be good to go.

Update

Unfortunately, wget is not installed by default on OS X. You can install for example using homebrew: brew install wget, but that would require you to first install homebrew (which may have conveniences for other software later though).

Instead, you can use curl as a replacement for wget:

curl https://bitbucket.org/pypa/setuptools/raw/bootstrap/ez_setup.py | python

Note that curl automatically sends its output to stdout, which means that you don't those -O - options.

NB: you may need to prepend sudo to that line:

curl https://bitbucket.org/pypa/setuptools/raw/bootstrap/ez_setup.py | sudo python
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top