#1
  1. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Aug 2004
    Posts
    167
    Rep Power
    11

    upgrade python path?


    i ugraded python from a dismal 1.5 to it's recent version and the sys.path still reflects the 1.5

    also, at the command line, I type python and i get a version 1.5 back.

    how can i modify the path to point to the correct version?
  2. #2
  3. Hello World :)
    Devshed Frequenter (2500 - 2999 posts)

    Join Date
    Mar 2003
    Location
    Hull, UK
    Posts
    2,537
    Rep Power
    69
    What OS are you running and where is the current versi located? The default location on *nix systems I believe is /usr/local/bin/, if this is the case it should be as easy as adding this to the $PATH variable before /usr/bin/. This should make 'python' run the current version, or at least it worked for me .

    Another solution would be to create an alias for /usr/local/bin/python called python2.4, making the 'python2.4' command start the current version of Python.

    Hope this helps,

    Mark.
    programming language development: www.netytan.com Hula


IMN logo majestic logo threadwatch logo seochat tools logo