0

I have been using Eric to develop Python2.7 code for a while.
I have just tried to look at Python3 and cannot figure out how to do it in Eric.
Setting > Preferences > Python says Python2 uses .py extension, Python3 uses .py3
I create hello.py3

#!/usr/bin/env python3
from platform import python_version
print ('version info ',  python_version())

If I run it in Eric I get
('version info ', '2.7.6')
but if I run it in a terminal I get
version info 3.4.3

How do I get Eric to use Python3?

Thanks
Mick

2
Contributors
2
Replies
30
Views
2 Years
Discussion Span
Last Post by micksulley
0

Yes that was it. Added /usr/bin/python3 as the Python3 interpreter and now it runs .py3 as python3 code.

Thanks You

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.