安裝dbus-python的簡要教程
更新時間:2015年05月05日 17:29:45 投稿:goldensun
這篇文章主要介紹了安裝dbus-python的簡要教程,dbus-python在Python編程中多用于處理進程之間的通信,需要的朋友可以參考下
寫一個 python 腳本需要用到 dbus,但因為 dbus-python 這個包并沒有提供 setup.py , 所以無法通過 pip 直接安裝,唯有下載源碼手動編譯安裝一途了。
wget https://pypi.python.org/packages/source/d/dbus-python/dbus-python-0.84.0.tar.gz tar zxvf dbus-python-0.84.0.tar.gz cd dbus-python-0.84.0
但事有不順,在 ./configure 的過程中,還是出了一些錯。
configure: error: Package requirements (dbus-1 >= 1.0) were not met: No package 'dbus-1' found Consider adjusting the PKG_CONFIG_PATH environment variable if you installed software in a non-standard prefix. Alternatively, you may set the environment variables DBUS_CFLAGS and DBUS_LIBS to avoid the need to call pkg-config. See the pkg-config man page for more details.
這顯然是缺失了依賴庫
sudo apt-get install libdbus-glib-1-dev
然后安裝就就可以順利進行了
./configure make sudo make install
相關(guān)文章
Python3如何使用tabulate打印數(shù)據(jù)
這篇文章主要介紹了Python3如何使用tabulate打印數(shù)據(jù),文中通過示例代碼介紹的非常詳細,對大家的學(xué)習(xí)或者工作具有一定的參考學(xué)習(xí)價值,需要的朋友可以參考下2020-09-09
Pytorch關(guān)于Dataset?的數(shù)據(jù)處理
這篇文章主要介紹了Pytorch關(guān)于Dataset?的數(shù)據(jù)處理,學(xué)習(xí)如何對卷積神經(jīng)網(wǎng)絡(luò)編程;首先,需要了解Pytorch對數(shù)據(jù)的使用,也是在我們模型流程中對數(shù)據(jù)的預(yù)處理部分,下面我們就一起進入文章查看具體處理過程吧2021-12-12
Python面向?qū)ο罂偨Y(jié)及類與正則表達式詳解
Python中的類提供了面向?qū)ο缶幊痰乃谢竟δ埽侯惖睦^承機制允許多個基類,派生類可以覆蓋基類中的任何方法,方法中可以調(diào)用基類中的同名方法。這篇文章主要介紹了Python面向?qū)ο罂偨Y(jié)及類與正則表達式 ,需要的朋友可以參考下2019-04-04
Python實現(xiàn)的數(shù)據(jù)結(jié)構(gòu)與算法之鏈表詳解
這篇文章主要介紹了Python實現(xiàn)的數(shù)據(jù)結(jié)構(gòu)與算法之鏈表,詳細分析了鏈表的概念、定義及Python實現(xiàn)與使用鏈表的相關(guān)技巧,非常具有實用價值,需要的朋友可以參考下2015-04-04

