Brief tutorial on installing composer-python
This article mainly introduces a brief tutorial on installing producer-python. Producer-python is mostly used to process communication between processes in Python programming. For more information, see
Compile is required to write a python script. However, because the development-python package does not provide setup. py, you cannot directly install it through pip. You only need to download the source code for manual compilation and installation.
?
|
1
2
3 |
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
|
However, some errors still occur in the./configure process.
?
|
1
2
3
4
5
6
7
8
9
10 |
Configure: error: Package requirements (dbus-1> = 1.0) were not met:
No package 'found-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.
|
This is obviously because the dependency library is missing.
?
|
1 |
Sudo apt-get install libdbus-glib-1-dev
|
Then the installation will proceed smoothly.
?
|
1
2
3 |
./Configure
Make
Sudo make install
|