Search code examples
pythonvpython

VPython redirecting to localhost


I have installed vpython (check http://vpython.org/ ) in python 3.6 (and Windows 10) from cmd by typing pip install vpython, and it installed successfully.

But when I type from vpython import * in IDLE, even after a couple of reinstalling, it's redirecting me to localhost:50484, and I can't do any Vpython stuff in IDLE.

What should I do to fix the issue, and run VPython on my PC properly ?

After googling up, I think my problem of vpython is pretty unique.


Solution

  • I have tried installing the Vpython by opening the cmd with administrative permission.

    Then I wrote the lines on python console:

    Python 3.6.0 (v3.6.0:41df79263a11, Dec 23 2016, 07:18:10) [MSC v.1900 32 bit (Intel)] on win32
    Type "help", "copyright", "credits" or "license" for more information.
    >>> from vpython import *
    >>> box()
    <vpython.vpython.box object at 0x0497E770>
    >>>
    

    Here is the output what I got:

    Vpython image