(亲测有效-专门解决Mac环境)Pycharm 解决无法打开的问题

时间:2024-04-07 09:18:48

(亲测有效-专门解决Mac环境)Pycharm 解决无法打开的问题

 

 1.第一步:先输入:   cd /Applications/PyCharm.app/Contents/MacOS

2.第二步:查看无法打开pycharm的原因,需要输入:c./pycharm

3.第三步:下面就是展示的分析日志:其中许多小伙伴都找不到 网上说的这个地址“cd /Users/用户名/Library/Preferences/PyCharm2019.1/”

其实地址不是这个,而是  /Users/liuxiaoming/Library/Application Support/JetBrains/PyCharm2020.1/pycharm.vmoptions

上面地址中的Application Support 是无法直接打开的  需要把这个做下处理变成 Application\ Support/

也就是说需要输入:cd /Users/用户名/Library/ApplicationSupport/JetBrains/PyCharm2020.1/

即可找到 pycharm.vmoptions

4.第四步:直接删除即可: rm -f pycharm.vmoptions

这样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
标红的才是这个文件真实的地址,花了好几个小时才解决,希望能让更多的人看到,避免踩坑,谢谢大家