How to run a program using python 3.x

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?

+3
source share
4 answers

Usually a symlink is created in your path with a name python3.

So you just need to call your program through

python3 ProgramName.py
+4
source

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.

, .

0

Python . . Python . Blender 2.5 Python 3, , Python 3 , .

, .

0

sudo apt-get install python3

python3, python 2.7

, python3 →

1

python3

Method2

save sample.py

python3 sample.py
0

All Articles