Why cannot install VPython to WinPython

444 views
Skip to first unread message

斌柯

unread,
Mar 11, 2015, 4:59:34 AM3/11/15
to vpytho...@googlegroups.com
Though WinPython Control Panel shows VPython packages installed, "from visual import *" will raise "no module named VPython" error. 
I download the .exe installer but it can only install into D:\python27 and WinPython still cannot recognize VPython.
How can I use VPython under WinPython?

Bruce Sherwood

unread,
Mar 12, 2015, 12:51:26 AM3/12/15
to vpytho...@googlegroups.com
As the Windows download page at vpython.org emphasizes, "Be sure to allow the installer to install into C:\Python27." At least in the past there were problems if Python was installed somewhere else, though I'm not sure that's your problem.

In Python27/Lib/site-packages, do you see the following folders and files?

FontTools, numpy, Polygon, ttfquery, vidle, is, visual , visual_common, and wx-3.0-msw

FontTools.pth
numpy-1.9.1-py2.7.egg-info
Polygon2-2.0.6-py2.7.egg-info
wx.pth
wxversion.py

Big Stone

unread,
Apr 18, 2015, 4:07:58 PM4/18/15
to vpytho...@googlegroups.com
Hello 斌柯,


It work on my PC when I do that:
- use WinPython-64bit-3.4.3.2
- launch the IDLE icon
- type "from visual import *"

result (just a warning from future):

Python 3.4.3 (v3.4.3:9b73f1c3e601, Feb 24 2015, 22:44:40) [MSC v.1600 64 bit (AMD64)] on win32
Type "copyright", "credits" or "license()" for more information.
>>> from visual import *

Warning (from warnings module):
  File "D:\result_tests\WinPython-64bit-3.4.3.2\python-3.4.3.amd64\lib\site-packages\vis\materials.py", line 70
    self.__setattr__(key, value)
FutureWarning: comparison to `None` will result in an elementwise object comparison in the future.
>>>

Bruce Sherwood

unread,
Apr 19, 2015, 1:38:57 AM4/19/15
to vpytho...@googlegroups.com
Presumably you got a 64-bit version of VPython 5.74 for Python 3.4 from http://www.lfd.uci.edu/~gohlke/pythonlibs/. This is a very old version of VPython, and I would expect it to fail in various ways on Python 3.

Reply all
Reply to author
Forward
0 new messages