我成功安装了 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
答案1
从我在 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
之后,它将启动。