我在其 python 版本中安装了透明锁屏 xtrlock,但我无法以非 root 用户身份运行它:
user@my-server:~/$ pyxtrlock
Traceback (most recent call last):
File "/usr/local/bin/pyxtrlock", line 4, in <module>
__import__('pkg_resources').run_script('pyxtrlock==0.4', 'pyxtrlock')
File "/usr/lib/python3.6/site-packages/pkg_resources/__init__.py", line 3095, in <module>
@_call_aside
File "/usr/lib/python3.6/site-packages/pkg_resources/__init__.py", line 3079, in _call_aside
f(*args, **kwargs)
File "/usr/lib/python3.6/site-packages/pkg_resources/__init__.py", line 3108, in _initialize_master_working_set
working_set = WorkingSet._build_master()
File "/usr/lib/python3.6/site-packages/pkg_resources/__init__.py", line 570, in _build_master
ws.require(__requires__)
File "/usr/lib/python3.6/site-packages/pkg_resources/__init__.py", line 888, in require
needed = self.resolve(parse_requirements(requirements))
File "/usr/lib/python3.6/site-packages/pkg_resources/__init__.py", line 774, in resolve
raise DistributionNotFound(req, requirers)
pkg_resources.DistributionNotFound: The 'pyxtrlock==0.4' distribution was not found and is required by the application
我不熟悉 python 包构建,那么如何或在哪里设置任何用户以“查看” pxtrlock 分发?