1、提示 Error loading: /Applications/PyCharm CE.app/Contents/plugins/python/helpers/pydev/pydevd_attach_to_process/attach_x86_64.dylib

进入 /Applications/PyCharm CE.app/Contents/plugins/python/helpers/pydev/pydevd_attach_to_process/linux_and_mac/ 目录下

执行命令

g++ -fPIC -D_REENTRANT -std=c++11 -arch arm64 -c -o attach_x86_64.o attach.cpp
 
g++ -dynamiclib -nostartfiles -arch arm64 -o attach_x86_64.dylib attach_x86_64.o -lc
 
rm attach_x86_64.o
 
mv attach_x86_64.dylib ../attach_x86_64.dylib

问题解决

posted on 2023-02-21 10:24  风生水起  阅读(529)  评论(0编辑  收藏  举报