I am using Wing IDE and I have installed VIDLE with Vpython. VIDLE works fine, but if I want to use it on Wing IDE, somehow it can't import the visual module. It always gives an error "No module named visual". How can I import the visual module into the IDE?
I thought maybe the problem lies in the version of the Vpython or the Python itself. The installed Vpython is for Python 2.7 (I've tried another one for 3.4, but the VIDLE wouldn't work with it). 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. So if this really has something to do with the version, how can I change the Python path on Wing IDE?
Sorry, I am quite new in Python and I've looked everywhere but didn't come to any helpful answer. Thank you in advance.
Instead of
import visual
use
import vpython
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.