• 技术文章 >常用工具 >Pycharm

    mac环境下无法打开pycharm怎么办

    FXLFXL2020-07-31 11:37:03原创15345
    mac环境下无法打开pycharm的解决方法:1、打开终端;2、进入目录/Users/用户名/Library/Application\Support/JetBrains/PyCharm/;3、删除pycharm.vmoptions文件即可。

    解决步骤:

    (推荐教程:Python入门教程

    1、首先打开终端,执行命令

    cd /Applications/PyCharm.app/Contents/MacOS

    2、查看无法打开pycharm的原因,执行命令

    c./pycharm

    下面就是展示的分析日志

    2020-04-26 22:14:15.680 pycharm[21588:9354544] allVms required 1.8*,1.8+
    2020-04-26 22:14:15.685 pycharm[21588:9354552] Current Directory: /Applications/PyCharm.app/Contents/MacOS
    2020-04-26 22:14:15.685 pycharm[21588:9354552] Value of PYCHARM_VM_OPTIONS is (null)
    2020-04-26 22:14:15.685 pycharm[21588:9354552] Processing VMOptions file at /Users/liuxiaoming/Library/Application Support/JetBrains/PyCharm2020.1/pycharm.vmoptions
    2020-04-26 22:14:15.686 pycharm[21588:9354552] Done
    Error: could not find libjava.dylib
    Failed to GetJREPath()
    OpenJDK 64-Bit Server VM warning: Option UseConcMarkSweepGC was deprecated in version 9.0 and will likely be removed in a future release.
    Error opening zip file or JAR manifest missing : ‎/Applications/PyCharm.app/Contents/bin/jetbrains-agent.jar
    Error occurred during initialization of VM
    agent library failed to init: instrument

    3、进入目录/Users/用户名/Library/Application\ Support/JetBrains/PyCharm2020.1/

    cd /Users/用户名/Library/Application\ Support/JetBrains/PyCharm2020.1/

    4、删除pycharm.vmoptions即可

    rm -f pycharm.vmoptions

    删除之后pycharm就可以重新打开了。

    专题推荐:mac pycharm
    上一篇:pycharm如何设置执行环境 下一篇:pycharm怎么添加运行参数

    相关文章推荐

    • mac怎么配置pycharm• pycharm有mac版吗• pycharm mac怎么汉化

    全部评论我要评论

    © 2021 Python学习网 苏ICP备2021003149号-1

  • 取消发布评论
  • 

    Python学习网