Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

when i type pyton on the terminal , i get the following:

Python 2.7.3 (v2.7.3:70274d53c1dd, Apr  9 2012, 20:32:06) 
[GCC 4.0.1 (Apple Inc. build 5493)] on darwin
Type "help", "copyright", "credits" or "license" for more information.

but when i run a python script i got the following:

WARNING: python-gevent not installed. `curl -k -L|sh`
GoAgent Version    : 2.1.9 (python/2.7.2 gevent/None pyopenssl/0.13)
Listen Address     :
GAE Mode           : https
GAE Profile        : google_hk
GAE APPID          : goagent
Pac Server         :

what should i configure to let the script using the right version python, cause when i try to install gevent, it told i already have it.

share|improve this question

Two ways you can do this.

First, you can call the script explicitly, using the python you want. To determine which python bin is being used, you can type:

which python

This will give you the full path to the python being used when you type python at the command line.

In any case, you can just type:

python script_name_here

Or you can use the full path to your python and do the same.

The second way is to edit your script, and edit the shebang line to point to the python returned by which python. In other words, edit the script you're running and change the first line to something like:

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.