Python PyVRML97需要PyOpenGL的旧版本
所以我设置了一个virtualenv,打开系统站点包,名为Python PyVRML97需要PyOpenGL的旧版本,python,python-2.7,pip,pyopengl,vrml,Python,Python 2.7,Pip,Pyopengl,Vrml,所以我设置了一个virtualenv,打开系统站点包,名为vrmlmol。在vrmlmolenv内部,我安装了yelk和pip 这是输出- (vrmlmol)debanjan@thinkpad:~/vrmlmol$ yolk -V PyOpenGL PyOpenGL 3.1.0b1 PyOpenGL 3.0.2 PyOpenGL 3.0.1 (vrmlmol)debanjan@thinkpad:~/vrmlmol$ yolk -V PyVRML97 PyVRML97 2.3.0a4 正如您所见
vrmlmol
。在vrmlmol
env内部,我安装了yelk
和pip
这是输出-
(vrmlmol)debanjan@thinkpad:~/vrmlmol$ yolk -V PyOpenGL
PyOpenGL 3.1.0b1
PyOpenGL 3.0.2
PyOpenGL 3.0.1
(vrmlmol)debanjan@thinkpad:~/vrmlmol$ yolk -V PyVRML97
PyVRML97 2.3.0a4
正如您所见,PyPI中不存在PyOpenGL的2.x版本。当我尝试安装PyOpenGL和PyVRML时,出现以下依赖项故障:
(vrmlmol)debanjan@thinkpad:~/vrmlmol$ pip install -I PyOpenGL PyVRML97
Downloading/unpacking PyOpenGL
Downloading PyOpenGL-3.0.2.tar.gz (891kB): 891kB downloaded
Running setup.py egg_info for package PyOpenGL
warning: no previously-included files matching '*.odt' found anywhere in distribution
warning: no previously-included files matching '*.odp' found anywhere in distribution
warning: no previously-included files matching '.cvsignore' found anywhere in distribution
warning: no previously-included files matching '*.diff' found anywhere in distribution
warning: no previously-included files found matching 'src/*.h'
warning: no previously-included files found matching 'src/*.xml'
warning: no previously-included files found matching 'src/*.zip'
warning: no previously-included files found matching 'src/*.pdf'
warning: no previously-included files found matching 'src/*.zip'
warning: no previously-included files found matching 'src/*.txt'
warning: no files found matching 'src/win32deps.py'
warning: no files found matching 'src/toglinstall/get_togl.py'
warning: no files found matching 'ChangeLog.txt'
warning: no previously-included files found matching 'OpenGL_accelerate'
Downloading/unpacking PyVRML97
Could not find a version that satisfies the requirement PyVRML97 (from versions: 2.2.0a4, 2.2.0a5, 2.2.0a5, 2.2.0a6, 2.2.0a6, 2.2.0a7, 2.2.0a7, 2.2.0a8, 2.2.0a8, 2.3.0a1, 2.3.0a1, 2.3.0a2, 2.3.0a2, 2.3.0a3, 2.3.0a3, 2.3.0a4, 2.3.0a4)
Cleaning up...
No distributions matching the version for PyVRML97
Storing complete log in /home/debanjan/.pip/pip.log
由于这些软件包不存在,我看不到使用pip安装较新的PyVRML或较旧的PyOpenGL的任何选项。有人帮忙吗?我试图让一些同事更容易开始自己的设置。。所以皮普会很高兴有他们 这是PIP最近更改的副作用,默认情况下不允许安装alpha/beta版本。PyVRML97的最后一个“最终”版本非常陈旧,它依赖于PyOpenGL 2.x(该版本早已过时,不再可以通过自动化工具从SourceForge中检索) 不幸的是,我在发布PyVRML97和OpenGLContext的最终版本时失职了,因为我经常把它们当作我个人的PyOpenGL测试环境。在我着手修复之前,您需要明确指定alpha版本 要解决特定问题,您需要明确指定PyVRML97版本:
$ pip install "PyVRML97==2.3.0a4"
要使用Python 2.7(Linux上)上所有软件包的最新发布版本安装完整、可工作的PyVRML97/OpenGLContext环境,您的命令行如下所示:
$ virtualenv oglc-env
$ source oglc-env/bin/activate
(oglc-env)$ pip install PyOpenGL PyOpenGL_accelerate "PyVRML97==2.3.0a4" simpleparse numpy "OpenGLContext==2.2.0a3" pydispatcher pillow
您可能会发现,pillow需要在系统级别安装额外的依赖项才能安装(我的机器上已经安装了这些依赖项)。我刚刚在Kubuntu 13.10机器上测试了安装过程,并使用生成的virtualenv运行了OpenGLContext演示脚本