【linux】服务器安装及卸载pycharm社区版教程
【创作不易,求点赞+关注+收藏】
文章目录
1、到官网下载安装包
下拉找到社区版,点击下载
2、通过终端wget下载安装包
cd /public/apps,我要把安装包下载到/public/apps目录
cd /public/apps # 进入该路径下载安装包
wget https://download.jetbrains.com/python/pycharm-community-2024.1.4.tar.gz
3、解压
tar -xzvf pycharm-community-2024.1.4.tar.gz -C /public/apps/pycharm-community
4、安装
cd /public/apps//pycharm-community-2024.1.4/bin
./pycharm.sh
5、设置环境变量
vim ~/.bashrc # 按i进行编辑,按esc,然后输入:wq退出文本编辑
export PATH="public/apps/pycharm-community-2024.1.4/bin/:$PATH
source ~/.bashrc
6、运行pycharm
设置好环境变量之后,以后打开pycharm就直接输入命令:pycharm.sh
pycharm.sh
7、删除pycharm安装包、卸载pycharm
sudo rm -rf "/public/apps/pycharm-community-2024.1.4.tar.gz" # 删除安装包
sudo rm -rf /public/apps/pycharm-community/pycharm-community-2024.1.4/
rm -rf ~/.config/JetBrains/
rm -rf ~/.PyCharm2024.1/