不幸的是,您无法像普通的python包一样容易地安装vpython.整个过程比这要复杂得多.如果您想使用PyCharm进行开发,仍然可以.
首先,您需要在Windows上安装vpython.这很可能会将自身安装为您的主要python安装站点包之一.
这样做之后,只需选择已安装vpython的python安装.
如果您希望创建一个virtualenv,请使用–system-site-packages来创建:
$virtualenv --help [12:51:06]
Usage: virtualenv [OPTIONS] DEST_DIR
Options:
--version show program's version number and exit
(...)
--no-site-packages DEPRECATED. Retained only for backward compatibility.
Not having access to global site-packages is now the
default behavior.
--system-site-packages
Give the virtual environment access to the global
site-packages.
(...)