1、先进入应用程序,显示包内容,终端运行pycharm,发现错误原因。
2、发现是虚拟机配置文件,某个路径下的jetbrains-agent.jar文件不存在导致。
解决:
a、要么修改pycharm.vmoptions文件;重新指向jar文件所在的路径;
b、要么把jetbrains-agent.jar文件拷贝到/Users/lqd/Downloads/macsoft/
-javaagent:/Users/lqd/Downloads/macsoft/jetbrains-agent.jar firecats-MacBook-Pro:~$ cd /Applications/PyCharm.app/Contents/MacOS firecats-MacBook-Pro:MacOS$ ./pycharm 2019-12-22 13:23:54.321 pycharm[3109:74261] allVms required 1.8*,1.8+ 2019-12-22 13:23:54.324 pycharm[3109:74268] Value of PYCHARM_VM_OPTIONS is (null) 2019-12-22 13:23:54.324 pycharm[3109:74268] Processing VMOptions file at /Users/lqd/Library/Preferences/PyCharm2019.3/pycharm.vmoptions 2019-12-22 13:23:54.324 pycharm[3109:74268] Done 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 : /Users/lqd/Downloads/macsoft/jetbrains-agent.jar Error occurred during initialization of VM agent library failed to init: instrument firecats-MacBook-Pro:MacOS$ cd /Users/lqd/Library/Preferences/PyCharm2019.3 firecats-MacBook-Pro:PyCharm2019.3$ rm -f pycharm.vmoptions firecats-MacBook-Pro:PyCharm2019.3$
---
Project Interpreter
/Library/Frameworks/Python.framework/Versions/3.7/bin/python3.7