无法在Windows 7的Enthought Canopy中可视化Python (vpython)

1 投票
1 回答
1434 浏览
提问于 2025-04-18 03:47

我在Windows 7上安装了Enthought Canopy(免费版)。

我想安装visual python(vpython)。

我尝试了很多方法,比如用命令“pip install vpython”,但是没有找到这个包。

我还试着从这个链接下载最新的压缩包:https://codeload.github.com/BruceSherwood/vpython-wx/zip/master,然后在Canopy的控制台里输入命令:pip install/directory/vpython-wx-src.6.05b.zip(我确保目录和文件名是正确的)。

但是安装不成功,出现了这个错误:

Unpacking c:\users\teo\downloads\vpython-wx-src.6.05b.zip
Running setup.py egg_info for package from file:///c%7C%5Cusers%5Cteo%5Cdownloads%5Cvpython-wx-src.6.05b.zip
Downloading http://pypi.python.org/packages/source/d/distribute/distribute-0.6.34.tar.gz
Extracting in c:\users\teo\appdata\local\temp\tmprfdxhf
Now working in c:\users\teo\appdata\local\temp\tmprfdxhf\distribute-0.6.34
Building a Distribute egg in c:\users\teo\appdata\local\temp\pip-e84ef9-build
c:\users\teo\appdata\local\temp\pip-e84ef9-build\distribute-0.6.34-py2.7.egg

warning: no files found matching 'site-packages\visual\docs\navigation.js'
Downloading/unpacking fontTools (from VPython==6.05)
Downloading FontTools-2.4.tar.gz (323Kb): 323Kb downloaded
Running setup.py egg_info for package fontTools
C:\Users\Teo\AppData\Local\Enthought\Canopy\App\appdata\canopy-1.3.0.1715.win-x86_64\lib\distutils\dist.py:267:
UserWarning: Unknown distribution option: 'console'
warnings.warn(msg)
WARNING: '' not a valid package name; please use only.-separated package names in setup.py

warning: no files found matching 'Doc\ChangeLog'
Downloading/unpacking Polygon (from VPython==6.05)
Could not find any downloads that satisfy the requirement Polygon (from VPython==6.05)
No distributions at all found for Polygon (from VPython==6.05)
Storing complete log in C:\Users\Teo\AppData\Roaming\pip\pip.log

有人能帮我吗?在Enthought的支持页面上说:“如果你有未解答的问题,请在Stack Overflow上发帖,并加上标签‘enthought’”,但我不知道怎么加标签。

编辑:因为日志文件太大,无法在这里贴出来,所以我把它放在这里:

http://www51.zippyshare.com/v/47998264/file.html

1 个回答

1

在Enthought Canopy中安装vpython的最快方法是:

  1. 确保你已经把Canopy设置为默认的Python(在偏好设置菜单中)。

  2. 下载并安装Chris Gohlke为Windows提供的VPython安装程序:http://www.lfd.uci.edu/~gohlke/pythonlibs/#vpython

撰写回答