简体   繁体   English

Wing IDE 中的 Vpython

[英]Vpython in Wing IDE

I am using Wing IDE and I have installed VIDLE with Vpython.我正在使用 Wing IDE,并且已经使用 Vpython 安装了 VIDLE。 VIDLE works fine, but if I want to use it on Wing IDE, somehow it can't import the visual module. VIDLE 工作正常,但如果我想在 Wing IDE 上使用它,不知何故它无法导入视觉模块。 It always gives an error "No module named visual".它总是给出错误“没有名为视觉的模块”。 How can I import the visual module into the IDE?如何将视觉模块导入 IDE?

I thought maybe the problem lies in the version of the Vpython or the Python itself.我想问题可能出在 Vpython 的版本或 Python 本身。 The installed Vpython is for Python 2.7 (I've tried another one for 3.4, but the VIDLE wouldn't work with it).安装的 Vpython 适用于 Python 2.7(我已经尝试过另一个适用于 3.4 的,但 VIDLE 无法使用它)。 Both Python 2.7 and 3.4 are installed on the PC, but I don't even know which one is taken as default on the IDE. PC上安装了Python 2.7和3.4,但我什至不知道IDE上默认使用哪一个。 So if this really has something to do with the version, how can I change the Python path on Wing IDE?那么如果这真的与版本有关,我该如何更改 Wing IDE 上的 Python 路径?

Sorry, I am quite new in Python and I've looked everywhere but didn't come to any helpful answer.抱歉,我是 Python 新手,到处都找遍了,但没有得到任何有用的答案。 Thank you in advance.先感谢您。

Instead of代替

import visual

use

import vpython

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM