【问题标题】:How to install VPython on Python 3.6 (python distribution)?如何在 Python 3.6(python 发行版)上安装 VPython?
【发布时间】:2017-07-12 03:14:51
【问题描述】:

我想在 Python 3.6(Python 发行版)上安装 Vpython。除了 anaconda,我找不到其他选择。请帮忙,因为我想处理从 Arduino 到 Python 的数据,进行 3D 可视化。

【问题讨论】:

    标签: python-3.x arduino-ide vpython


    【解决方案1】:

    请参阅VPython's website 了解安装选项以及新 VPython 与旧版经典 VPython 的不同之处。新的 VPython 适用于 python 3.6。旧的经典 VPython 仅适用于 python 2.x。如果您的计算机上有旧的经典 VPython,那么您可能需要先将其卸载。然后用 pip 安装新的 VPython 版本 7。

    pip install VPython 
    

    然后启动 IDLE 或 spyder python IDE 并尝试运行这个简单的程序:

    from VPython import *
    
    box()
    

    您应该会在 web 浏览器中看到一个带有框的 3d 画布。

    【讨论】:

    • 我拿到了盒子,当我尝试使用鼠标旋转盒子时没有任何反应。它似乎是一个盒子的 2D 图像。
    猜你喜欢
    • 2017-09-04
    • 1970-01-01
    • 2016-09-13
    • 1970-01-01
    • 2017-09-11
    • 1970-01-01
    • 1970-01-01
    • 2018-06-29
    • 1970-01-01
    相关资源
    最近更新 更多