gpt4 book ai didi

python - VPython 重定向到本地主机

转载 作者:行者123 更新时间:2023-12-01 02:38:18 27 4
gpt4 key购买 nike

我已经通过在 cmd 中键入 pip install vpython 在 python 3.6(和 Windows 10)中安装了 vpython(检查 http://vpython.org/ ),并且安装成功。

但是当我在 IDLE 中输入 from vpython import * 时,即使重新安装了几次,它也会将我重定向到 localhost:50484,而且我无法执行任何操作IDLE 中的 Vpython 东西。

我应该如何解决该问题并在我的电脑上正确运行 VPython?

谷歌搜索后,我认为我的 vpython 问题非常独特。

最佳答案

我尝试通过使用管理权限打开cmd来安装Vpython。

然后我在 python 控制台上写下了以下几行:

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>
>>>

这是我得到的输出:

Vpython image

关于python - VPython 重定向到本地主机,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45994594/

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