提问人:JulienDesdo 提问时间:11/17/2023 最后编辑:Ljm DullaartJulienDesdo 更新时间:11/17/2023 访问量:25
在 Ubuntu 上的 Predator Helios 300 上安装 rgb_Keyboard 上的控件 [已关闭]
Install Control on rgb_Keyboard on Predator Helios 300 on Ubuntu [closed]
问:
我是初学者,所以我会尽量清楚地解释我的问题。所以问题是,当我在 Ubuntu 上的计算机上时,我没有控制 rgb 键盘,而我在 Windows 11 上控制它(我处于双启动状态)(并使用键盘上的捕食者键访问它)。
所以我在github上找到了一个模块:然后我用gitclone命令将其下载到我的桌面上。
然后我做了:https://github.com/JafarAkhondali/acer-predator-turbo-and-rgb-keyboard-linux-module#install-as-a-systemd-service-will-work-after-reboot-for-arch-linux-from-exodiaos-repo
chmod +x ./*.sh
sudo ./install.sh
重新启动
cd to the file path.
chmod +x ./*.sh
sudo ./install_service.sh
chmod +x ./*.sh
sudo ./install_openrc.sh
./facer_rgb.py
我尝试了这个命令,什么都没有:
./facer_rgb.py -m 2 -s 3 -b 100
我有python3。python文件使用json库,所以我检查了他的存在,我得到了:
pip show json
WARNING: Package(s) not found: json
------------------------------------------------------------------------------------
所以我做了pip install json,这是答案:
pip install json
error: externally-managed-environment
× This environment is externally managed
╰─> To install Python packages system-wide, try apt install
python3-xyz, where xyz is the package you are trying to
install.
If you wish to install a non-Debian-packaged Python package,
create a virtual environment using python3 -m venv path/to/venv.
Then use path/to/venv/bin/python and path/to/venv/bin/pip. Make
sure you have python3-full installed.
If you wish to install a non-Debian packaged Python application,
it may be easiest to use pipx install xyz, which will manage a
virtual environment for you. Make sure you have pipx installed.
See /usr/share/doc/python3.11/README.venv for more information.
note: If you believe this is a mistake, please contact your Python installation or OS distribution provider. You can override this, at the risk of breaking your Python installation or OS, by passing --break-system-packages.
hint: See PEP 668 for the detailed specification.
然后。。。
apt install python3-json
E: Impossible d'ouvrir le fichier verrou /var/lib/dpkg/lock-frontend - open (13: Permission non accordée)
E: Impossible d'obtenir le verrou de dpkg (/var/lib/dpkg/lock-frontend). Avez-vous les droits du superutilisateur ?
然后。。。
sudo apt install python3-json
Lecture des listes de paquets... Fait
Construction de l'arbre des dépendances... Fait
Lecture des informations d'état... Fait
E: Impossible de trouver le paquet python3-json
你可以帮我吗?
解决 python3 问题?第一。然后继续安装我在 GITHUB 上找到的模块。否则,如果它不起作用,请尝试寻找替代解决方案。
答: 暂无答案
评论
apt install python3-json
抱怨它无法获取锁,因为它需要以 root 身份运行。尝试sudo apt install python3-json
@LjmDullaart,json
模块是 Python 标准库的一部分,Ubuntu 包通过依赖项(→ →例如libpython3.10-stdlib
)包含它。python3
python3
libpython3-stdlib
sudo