如何更改pyscripter使用的python版本 [英] How to change the version of python that pyscripter uses

查看:490
本文介绍了如何更改pyscripter使用的python版本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是使用Python的新手,只是学习该怎么做.

I am a newb with python and just learning what to do.

我正在使用pyscripter,学习时已经有一段时间了.

I am using pyscripter and have been for a while whilst learning.

我现在正在通过2.6讲授的在线课程,但是我的pyscripter使用的是最新的. 我需要知道如何更改它以使用较旧的版本,我已经看到了有关更改PATH变量的答复,但没有关于它在哪里或如何执行的答复.

I am now going through an online course which is taught in 2.6, yet my pyscripter uses the latest. I need to know how to change it to use an older version, I have seen replies about changing the PATH variable but not where it is or how to do it.

我的机器上有3个版本的python,分别是25,26和33.

I have 3 versions of python on my machine, 25,26 and 33.

推荐答案

我不知道这是否是最好的方法,但这是我做到的两种方法:

I don't know if this is the best way to do it, but those are the two ways I did it:

方法1(两种方法中的最好方法)
转到PyScripter >>工具>>选项... >>自定义参数...并添加以下值

WAY 1 (The best of two)
Go to PyScripter>>Tools>>Options...>>Custom Parameters... and add the following values

 1. PythonDir = C:\Program Files\CustomPythonInstallation
 2. PythonExe = C:\Program Files\CustomPythonInstallation\python.exe
 3. PythonVer = 3.3.3

 Note: Adapt the Name = Value pairs above to your case.

然后单击确定按钮关闭窗口. 现在选择PyScripter >>运行>> Python引擎>> Remote,您就可以使用了.

And close the window with OK button. Now select PyScripter>>Run>>Python Engine>>Remote and your are ready to go.

方法2(临时解决方案)
转到PyScripter >>运行>>配置外部运行... 将应用程序:"字段设置为您的python.exe文件 单击确定按钮关闭窗口. 确保使用PyScripter >>运行>>外部运行(Alt + F9)

WAY 2 (The more temporary solution)
Go to PyScripter>>Run>>Configure External Run... set the "Application:" field to your python.exe file Close the window with OK button. Make sure you run your scripts with PyScripter>>Run>>External Run (Alt+F9)

我希望这会有所帮助,祝你好运.

I hope this helped, good luck.

这篇关于如何更改pyscripter使用的python版本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆