开发者

How to setup Komodo Edit for Python 3.2

I would like to use Komodo Edit to edit scripts written in Python 3.2. How do I setup Komodo Edit to run the Python 3.2 interpreter? I am using开发者_如何学Python the latest version of Mac OSX.

The reason I ask because I am currently using Komodo Edit and am running some version of the Python interpreter. When I use the print(b, end=' ') command, I get and error pointing to end=' '. I think this is because Komodo is using Python 2.6.1 which is the default on the Mac.

Any suggestions would be greatly appreciated. Thank you.


You can change the default Python interpreter in Preferences -> Languages -> Python.


i had the same problem try to use python3.1 %F in Komodo's run command tool instead of %(python3) %F


I had the same issue. Thierry's answer got me on the right track. When using the run command, instead of using %(python) -u "%F" I needed to add a 3 after python %(python3) -u "%F"

%(python) -u "%F" (run command)   
import sys  
print(sys.version_info)   
sys.version_info(major=2, minor=7, micro=10, releaselevel='final', serial=0)

%(python3) -u "%F" (run command)    
import sys     
print(sys.version_info)    
sys.version_info(major=3, minor=5, micro=1, releaselevel='final', serial=0)
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜