gpt4 book ai didi

pyscripter - 如何更改pyscripter使用的python版本

转载 作者:行者123 更新时间:2023-12-04 06:40:07 28 4
gpt4 key购买 nike

我是 python 的新手,只是在学习该怎么做。

我正在使用 pyscripter,并且在学习期间已经有一段时间了。

我现在正在学习 2.6 版的在线类(class),但我的 pyscripter 使用的是最新的。
我需要知道如何更改它以使用旧版本,我已经看到有关更改 PATH 变量的回复,但没有看到它在哪里或如何进行。

我的机器上有 3 个版本的 python,25,26 和 33。

最佳答案

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

方式 1(两个中最好的)
转到 PyScripter>>Tools>>Options...>>Custom Parameters... 并添加以下值

 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.

并使用 OK 按钮关闭窗口。
现在选择 PyScripter>>Run>>Python Engine>>Remote,您就可以开始了。

方式2(更临时的解决方案)
转到 PyScripter>>运行>>配置外部运行...
将“应用程序:”字段设置为您的 python.exe 文件
使用 OK 按钮关闭窗口。
确保使用 PyScripter>>Run>>External Run (Alt+F9) 运行脚本

我希望这有帮助,祝你好运。

关于pyscripter - 如何更改pyscripter使用的python版本,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17155392/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com