I am using ubuntu 10.10 and I have both Python 2.x and Python 3.x. I have a program that should work with python 3.x (blender 2.5x).How to run a program using python 3.x?
Usually a symlink is created in your path with a name python3.
python3
So you just need to call your program through
python3 ProgramName.py
python python 2.x python 3.x? /usr/bin/python 2.5 /usr/bin/python2.6. /usr/bin/python 2, /usr/bin/python 2.6. , /usr/bin/python 3. , /usr/bin/python 3 /usr/bin/python.
, .
Python . . Python . Blender 2.5 Python 3, , Python 3 , .
sudo apt-get install python3
python3, python 2.7
, python3 →
1
Method2
save sample.py
python3 sample.py