简体   繁体   English

如何在 Python 3.6(python 发行版)上安装 VPython?

[英]How to install VPython on Python 3.6 (python distribution)?

I want to get Vpython on Python 3.6(Python Distribution).我想在 Python 3.6(Python 分发版)上获得 Vpython。 I couldn't find an option except for anaconda.除了anaconda,我找不到其他选项。 Please help because I want to process the data coming from Arduino to Python making 3D visualizations.请帮忙,因为我想处理来自 Arduino 的数据到 Python 进行 3D 可视化。

See VPython's website for install options and how the new VPython differs from the older classic VPython.有关安装选项以及新 VPython 与旧的经典 VPython 的不同之处,请参阅VPython 的网站 The new VPython works with python 3.6.新的 VPython 适用于 python 3.6。 The old classic VPython works only with python 2.x.. If you have the old classic VPython on your computer then you might need to uninstall it first.旧的经典 VPython 仅适用于 python 2.x.. 如果您的计算机上有旧的经典 VPython,那么您可能需要先卸载它。 Then install the new VPython version 7 with pip.然后使用 pip 安装新的 VPython 版本 7。

pip install VPython 

Then launch IDLE or spyder python IDE and try running this simple program:然后启动 IDLE 或 spyder python IDE 并尝试运行这个简单的程序:

from VPython import *

box()

You should see a 3d canvas with a box appear in your webb browser.您应该会在 webb 浏览器中看到一个带有框的 3d 画布。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM