ubuntu cannot start pycharm, Required tools are missing: realpath***

linux下安装pycharm 2021.1版本遇到的坑

  1. 官网下载pycharm linux包,地址:https://www.jetbrains.com/pycharm/download/#section=windows
  2. 解压到文件夹
  3. 按照官网说明,运行文件夹下./pycharm-community-2021.1.2/bin/pycharm.sh
  • 问题:弹错误窗口“cannot start pycharm, Required tools are missing: realpath (SHELL=*** PATH=***)”
  • 分析思路:网上搜了一通,并没有答案,只有jdk未配置的一些解决方案。给了启发,看下pycharm.sh脚本的实现,发现如下代码:
    pycharm.sh部分实现
  • 解决方案:恍然大悟,原来是环境未安装realpath包,果断sudo apt-get install realpath。再执行./pycharm-community-2021.1.2/bin/pycharm.sh, 搞定!

你可能感兴趣的:(python,python,pycharm)