启动 PyCharm 时未找到 VM 选项文件 [英] VM options files not found, while launching PyCharm

查看:1676
本文介绍了启动 PyCharm 时未找到 VM 选项文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我最近从网上安装了 pycharm,当我尝试启动该应用程序时,它显示以下消息:

I recently installed pycharm from the web, and when I try to launch the application, it shows the following message:

未找到 VM 选项文件.

VM options file not found.

我浏览了这个网站寻找答案,发现该文件存在于bin文件夹中,但我仍然找不到它,另一个解决方案是运行pycharm.sh 开头,但我在任何地方都找不到它.所以我请你指导我.

I browsed over this site to find answers and found out that the file is present in bin folder, but I still could not find it, and another solution was to run pycharm.sh at the start, but I cannot find it anywhere yet. So I would request you to guide me.

推荐答案

很可能在您的 bin 文件夹中,pycharm.vmoptions 文件丢失.

Most probably in your bin folder, pycharm.vmoptions file is missing.

如果是这种情况,请在您的 bin 目录中创建 pycharm.vmoptions 并粘贴以下内容:

If that's the case, create pycharm.vmoptions in your bin directory and paste the followings:

-Xms128m
-Xmx750m
-XX:ReservedCodeCacheSize=240m
-XX:+UseConcMarkSweepGC
-XX:SoftRefLRUPolicyMSPerMB=50
-ea
-XX:CICompilerCount=2
-Dsun.io.useCanonPrefixCache=false
-Djdk.http.auth.tunneling.disabledSchemes=""
-XX:+HeapDumpOnOutOfMemoryError
-XX:-OmitStackTraceInFastThrow
-Djdk.attach.allowAttachSelf=true
-Dkotlinx.coroutines.debug=off
-Djdk.module.illegalAccess.silent=true
-XX:+UseCompressedOops
-Dfile.encoding=UTF-8

-XX:ErrorFile=$USER_HOME/java_error_in_pycharm_%p.log
-XX:HeapDumpPath=$USER_HOME/java_error_in_pycharm.hprof

我已经在我的 mac 上测试过了.

I've tested in my mac.

这篇关于启动 PyCharm 时未找到 VM 选项文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆