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

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

图片[1]-mac环境下无法打开pycharm怎么办-uusu优素-乐高,模型,3d打印,编程

解决步骤:

(推荐教程:Python入门教程)

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

cd/Applications/PyCharm.app/Contents/MacOS

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

c./pycharm

下面就是展示的分析日志

2020-04-2622:14:15.680pycharm[21588:9354544]allVmsrequired1.8*,1.8+
2020-04-2622:14:15.685pycharm[21588:9354552]CurrentDirectory:/Applications/PyCharm.app/Contents/MacOS
2020-04-2622:14:15.685pycharm[21588:9354552]ValueofPYCHARM_VM_OPTIONSis(null)
2020-04-2622:14:15.685pycharm[21588:9354552]ProcessingVMOptionsfileat/Users/liuxiaoming/Library/ApplicationSupport/JetBrains/PyCharm2020.1/pycharm.vmoptions
2020-04-2622:14:15.686pycharm[21588:9354552]Done
Error:couldnotfindlibjava.dylib
FailedtoGetJREPath()
OpenJDK64-BitServerVMwarning:OptionUseConcMarkSweepGCwasdeprecatedinversion9.0andwilllikelyberemovedinafuturerelease.
ErroropeningzipfileorJARmanifestmissing:‎/Applications/PyCharm.app/Contents/bin/jetbrains-agent.jar
ErroroccurredduringinitializationofVM
agentlibraryfailedtoinit:instrument

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

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

4、删除pycharm.vmoptions即可

rm-fpycharm.vmoptions
原文来自:https://www.py.cn
© 版权声明
THE END
喜欢就支持一下吧
点赞12 分享
评论 抢沙发
头像
欢迎您留下宝贵的见解!
提交
头像

昵称

取消
昵称表情代码图片

    暂无评论内容