Debian
在 Debian 上成功安裝 PyCharm,但無法執行
我成功安裝了 PyCharm。
sudo snap install pycharm-community --classic
但我無法在應用程序菜單上找到它,也無法從終端執行它
pycharm-community
。Setting up snapd (2.49-1) ... Created symlink /etc/systemd/system/multi-user.target.wants/snapd.recovery-chooser-trigger.service → /lib/systemd/system/snapd.recovery-chooser-trigger.service. Created symlink /etc/systemd/system/multi-user.target.wants/snapd.seeded.service → /lib/systemd/system/snapd.seeded.service. Created symlink /etc/systemd/system/cloud-final.service.wants/snapd.seeded.service → /lib/systemd/system/snapd.seeded.service. Created symlink /etc/systemd/system/multi-user.target.wants/snapd.service → /lib/systemd/system/snapd.service. Created symlink /etc/systemd/system/sockets.target.wants/snapd.socket → /lib/systemd/system/snapd.socket. Processing triggers for gnome-menus (3.36.0-1) ... Processing triggers for man-db (2.9.4-2) ... Processing triggers for dbus (1.12.20-2) ... Processing triggers for mailcap (3.69) ... Processing triggers for desktop-file-utils (0.26-1) ... 2021-08-29T16:33:54+03:00 INFO Waiting for automatic snapd restart... core 16-2.51.4 from Canonical✓ installed $ sudo snap install pycharm-community --classic pycharm-community 2021.2.1 from jetbrains✓ installed
從我在 Debian Bullseye 中看到的內容來看,
Pycharm
它沒有出現在應用程序菜單中。二進製文件位於
/snap/bin/pycharm-community
.您要麼需要添加
/snap/bin
到您的環境:echo PATH=/snap/bin/:$PATH >> ~/.bashrc . ~/.bashrc
接著:
pycharm-community
或者使用二進製文件的完整路徑:
/snap/bin/pycharm-community
如果您還沒有,您還需要安裝以下軟體包:
libxtst-dev libxtst6 libxrender-dev libxrender1
之後,它將啟動。