我在Ubuntu 14.04上使用virtualenv與Python 2.7.13,我試圖讓import pygst
工作(我是一個完整的Python noob)。Python - 沒有名爲pygst的模塊
我下載:
https://gstreamer.freedesktop.org/src/gst-python/gst-python-1.12.1.tar.xz
編譯和安裝:
./configure --prefix=$VIRTUAL_ENV && make install
但是我還是不能import pygst
:
>>> import pygst
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: No module named pygst
但也沒有匹配pygst PIP封裝。我必須錯過一些非常簡單的事情,但我無法弄清楚。
這並沒有幫助,因爲它不僅影響系統的Python安裝,不VIRTUALENV:
sudo apt-get install python-gst0.10 gstreamer0.10-plugins-good gstreamer0.10-plugins-ugly
如何安裝pygst用的virtualenv?
您是否嘗試過使用'sudo apt-get install'? –
http://www.techinfected.net/2017/01/how-to-install-python-gst-in-ubuntu.html –
@code_byter是的。這不是系統python安裝。這是一個虛擬世界。安裝'python-gst0.10'模塊沒有幫助。 – Casper