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
问题解决