sudo pip install python-pyudev
但是收到了以下信息:
Downloading/unpacking python-pyudev
Could not find any downloads that satisfy the requirement python-pyudev
Cleaning up...
No distributions at all found for python-pyudev
Storing complete log in /home/vineet/.pip/pip.log
然而,以下部分运行良好:
sudo apt-get install python-pyudev
什么时候应该使用
apt-get
来安装软件包,什么时候使用python-pip
?
pip
只用于安装Python包,而apt-get
用于安装任何软件包。 - Avinash Raj