Python IDLE: Change Python Version

后端 未结 6 1016
半阙折子戏
半阙折子戏 2020-11-29 08:43

I have Python 2.x and 3.x on my machine (Mac OS X 10.6). For some things I want to use ver 2, but for others I want ver 3. I like the IDLE software for editing/running, but

6条回答
  •  有刺的猬
    2020-11-29 09:12

    In the Windows environment, if you want to use particular install of IDLE, I find the easiest way is to right click on the .py file and choose "open with". Then navigate to the IDLE.bat file in the Python version install location you want to use. I find picking just the ilde.py doesn't work but the .bat file does.

    E. g.

    D:\Python27\ArcGISx6410.4\Lib\idlelib\idle.bat

    or

    D:\Python27Desktop\ArcGIS10.4\Lib\idlelib\idle.bat
    

提交回复
热议问题