今天在自己家台式机上安装supervisor的时候,supervisor报错:
1
2
3
4
5
6
7
8
9
10
Traceback (most recent call last):
File "/usr/bin/supervisorctl", line 33, in <module>
sys.exit(load_entry_point('supervisor==4.2.5', 'console_scripts', 'supervisorctl')())
File "/usr/bin/supervisorctl", line 22, in importlib_load_entry_point
for entry_point in distribution(dist_name).entry_points
File "/usr/lib/python3.10/importlib/metadata/__init__.py", line 969, in distribution
return Distribution.from_name(distribution_name)
File "/usr/lib/python3.10/importlib/metadata/__init__.py", line 548, in from_name
raise PackageNotFoundError(name)
importlib.metadata.PackageNotFoundError: No package metadata was found for supervisor
已经在用pacman安装了supervisor,但是package not found,所以试试pip install supervisor,结果居然:
1
2
3
4
Traceback (most recent call last):
File "/usr/bin/pip", line 5, in <module>
from pip._internal.cli.main import main
ModuleNotFoundError: No module named 'pip'
但是也已经在pacman安装了python-pip。Google一下,获得解决方案:
1
sudo python -m ensurepip --upgrade
这就安装好了pip。随后用pip安装supervisor:
1
sudo pip install supervisor