osx - Where should my .bash_profile file be for Python to update? -


i'm using mac osx 10.6.8 snow leopard , think i've got need install python 3.3.2, when type python terminal still says have 2.6.1. because can't find path newer version, , should fixed adding following .bash_profile:

path="/library/frameworks/python.framework/versions/3.3.2/bin:${path}" export path 

i've done (and run cat command on several times check), keeps saying same thing. suppose .bash_profile file and/or python 3.3.2 folder might not in right directories? .bash_profile in /users/mac (home) , python folder in /library/frameworks/python.framework/versions. should somewhere else?

thanks in advance!

use python3 run python3, , restart shell after modifying .bash_profile or source .bash_profile load new settings without restarting shell.

$ python3 /usr/bin/python3 

example:

$ cat so.py #!/usr/bin/python3 print("hello, world!") $ chmod +x so.py $ ./so.py hello, world! 

Comments

Popular posts from this blog

c++ - Creating new partition disk winapi -

Android Prevent Bluetooth Pairing Dialog -

VBA function to include CDATA -