2014-03-12 88 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演示腳本。

相關問題