1、在ubuntu下浏览器下载pycharm
2、/usr/local下新建文件夹,由于权限,用命令进行新建sudo mkdir pycharm
3、解压缩到/usr/local下,比如sudo tar -zxvf pycharm-community-2019.3.4.tar.gz -C /usr/local/pycharm
4、进入bin目录下,用命令./pycharm.sh 等待安装
5、在当前目录下配置pycharm的环境变量vim ~/.bashrc
export PyCharm=/usr/local/pycharm/pycharm-community-2019.3.4
exportPATH=PATH
6、source ~/.bashrc ,重启pycharm
、