国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 編程 > Python > 正文

安裝dbus-python的簡要教程

2020-02-23 01:07:12
字體:
來源:轉載
供稿:網友

寫一個 python 腳本需要用到 dbus,但因為 dbus-python 這個包并沒有提供 setup.py , 所以無法通過 pip 直接安裝,唯有下載源碼手動編譯安裝一途了。

wget https://pypi.python.org/packages/source/d/dbus-python/dbus-python-0.84.0.tar.gztar zxvf dbus-python-0.84.0.tar.gzcd dbus-python-0.84.0

但事有不順,在 ./configure 的過程中,還是出了一些錯。

configure: error: Package requirements (dbus-1 >= 1.0) were not met:No package 'dbus-1' foundConsider adjusting the PKG_CONFIG_PATH environment variable if youinstalled software in a non-standard prefix.Alternatively, you may set the environment variables DBUS_CFLAGSand 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

然后安裝就就可以順利進行了

./configuremakesudo make install


發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
主站蜘蛛池模板: 开江县| 彩票| 天全县| 蒲城县| 利津县| 东平县| 塔河县| 二连浩特市| 林州市| 共和县| 福清市| 博爱县| 门头沟区| 沂南县| 彭阳县| 安国市| 循化| 新源县| 简阳市| 万州区| 清远市| 阿巴嘎旗| 红桥区| 土默特右旗| 景东| 台安县| 平舆县| 白水县| 泽库县| 邯郸县| 怀仁县| 盐亭县| 巴塘县| 息烽县| 永泰县| 什邡市| 莫力| 长垣县| 张家界市| 台前县| 蒙城县|