gpt4 book ai didi

python - 如何在树莓派上安装 python-gammu

转载 作者:太空宇宙 更新时间:2023-11-03 11:26:48 25 4
gpt4 key购买 nike

<分区>

我在安装 gammu 的 python 模块时遇到问题树莓派 b+ 型。我怎么解决这个问题 ?谢谢!

pi@raspberrypi ~ $ sudo pip install python-gammu
Downloading/unpacking python-gammu
Running setup.py egg_info for package python-gammu
Package gammu was not found in the pkg-config search path.
Perhaps you should add the directory containing `gammu.pc'
to the PKG_CONFIG_PATH environment variable
No package 'gammu' found
Traceback (most recent call last):
File "<string>", line 14, in <module>
File "/home/pi/build/python-gammu/setup.py", line 108, in <module>
check_minimum_gammu_version()
File "/home/pi/build/python-gammu/setup.py", line 43, in check_minimum_gammu_version
"gammu"
File "/usr/lib/python2.7/distutils/spawn.py", line 34, in spawn
_spawn_posix(cmd, search_path, dry_run=dry_run)
File "/usr/lib/python2.7/distutils/spawn.py", line 167, in _spawn_posix
(cmd[0], exit_status)
distutils.errors.DistutilsExecError: command 'pkg-config' failed with exit status 1
Complete output from command python setup.py egg_info:
Package gammu was not found in the pkg-config search path.

Perhaps you should add the directory containing `gammu.pc'

to the PKG_CONFIG_PATH environment variable

No package 'gammu' found

Traceback (most recent call last):

File "<string>", line 14, in <module>

File "/home/pi/build/python-gammu/setup.py", line 108, in <module>

check_minimum_gammu_version()

File "/home/pi/build/python-gammu/setup.py", line 43, in check_minimum_gammu_version

"gammu"

File "/usr/lib/python2.7/distutils/spawn.py", line 34, in spawn

_spawn_posix(cmd, search_path, dry_run=dry_run)

File "/usr/lib/python2.7/distutils/spawn.py", line 167, in _spawn_posix

(cmd[0], exit_status)

distutils.errors.DistutilsExecError: command 'pkg-config' failed with exit status 1

----------------------------------------
Command python setup.py egg_info failed with error code 1 in /home/pi/build/python-gammu
Storing complete log in /root/.pip/pip.log

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com