安裝dbus-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)文章
Python?Pandas?修改表格數(shù)據(jù)類型?DataFrame?列的順序案例
這篇文章主要介紹了Python?Pandas?修改表格數(shù)據(jù)類型?DataFrame?列的順序案例,文章通過主題展開詳細的相關(guān)內(nèi)容,感興趣的小伙伴可以參考一下2022-08-08python啟動辦公軟件進程(word、excel、ppt、以及wps的et、wps、wpp)
見如下源代碼,也可從附件中下載。2009-04-04python實現(xiàn)的登陸Discuz!論壇通用代碼分享
這篇文章主要介紹了python實現(xiàn)的登陸Discuz!論壇通用代碼分享,需要的朋友可以參考下2014-07-07在Django admin中編輯ManyToManyField的實現(xiàn)方法
今天小編就為大家分享一篇在Django admin中編輯ManyToManyField的實現(xiàn)方法,具有很好的參考價值,希望對大家有所幫助。一起跟隨小編過來看看吧2019-08-08