2014-03-12 62 views
0

因此,我建立了一个名为vrmlmol的virtualenv,它带有system-site-packages。在vrmlmol env中,我安装了yolkpip
这里是输出 -PyVRML97需要较旧版本的PyOpenGL

(vrmlmol)[email protected]:~/vrmlmol$ yolk -V PyOpenGL 
PyOpenGL 3.1.0b1 
PyOpenGL 3.0.2 
PyOpenGL 3.0.1 
(vrmlmol)[email protected]:~/vrmlmol$ yolk -V PyVRML97 
PyVRML97 2.3.0a4 

正如你看到PyOpenGL的2.X版本PyPI将不存在。当我尝试安装PyOpenGL和PyVRML我碰到下面的相关性错误:

(vrmlmol)[email protected]:~/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对他们来说很好。

回答

2

这是最近对PIP进行的更改的副作用,默认情况下不允许安装alpha/beta版本。 PyVRML97的最后一个“最终”版本太旧了,以至于它依赖于PyOpenGL 2.x(这已经过时了,并且不再能够通过自动工具从SourceForge中检索)。

不幸的是,我一直无法获得PyVRML97和OpenGLContext的最终版本,因为我经常把它们当作我个人的PyOpenGL测试环境。在我解决问题之前,您需要明确指定Alpha版本。

为了得到过去的具体问题,你需要明确指定PyVRML97发布:

$ pip install "PyVRML97==2.3.0a4" 

要安装一个完整的,与所有当前最最近发布的版本工作PyVRML97/OpenGLContext环境关于Python 2.7(在Linux上)的包,你的命令行应该是这样的:

$ 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 

你可能会发现枕头将需要安装在系统级额外的依赖得到它安装(我已经有那些我的机器)。我刚刚在Kubuntu 13.10机器上测试了安装过程,并运行了带有virtualenv的OpenGLContext演示脚本。

相关问题