Forums

Bash python commands with python 3

I'm trying to run a setup package that requires python 3.0+ and am getting an error when attempting to run the package that says python 3.0 is required. I've added /usr/bin/python3.3 to the beginning of the PATH variable, but that doesn't seem to do the trick.

Any suggestions on how to tell bash to use python 3 for running $ python commands? Maybe that's unrelated and it's a problem with the setup package seeing that python 2.7 is installed and throws the error?

Open a Bash console. 'cd' to the folder you want. python3.3 main.py ?

+1 to what jgmdavies says. To run python 3, just use the command python3.3 from your bash prompt.

ugh long day yesterday... that worked. I had tried python-3.3 (such as with pip-3.3) but just needed to leave out the dash. Thanks.

Excellent, glad you worked it out! Thanks for letting us know.