λμλ μ½μ§μ κ²°κ³Ό..μ±κ³΅μ΄μμ€μ±κ³΅!
κΈ°λ‘μ ν΄λμ!
m1μ μμ§κΉμ§ ν¨ν€μ§ μ€μΉμ μ΄λ €μμ΄ μ‘°νΌ μλ κ² κ°λ€..9γ
9
distutils.errors.CompileError: command 'gcc' failed with exit status 1
μ΄λ° μλ¬λΆν° μμν΄μ clang, μ€λ§ μλ¬κ° λΉ¨κ°κ² ν°λ―Έλμ μ±μ μλ€. κ·Έλλ ν΄κ²°μ΄μμ€ ν΄κ²°~~!
μ, μΌλ¨ miniforge
λ‘ condaλ₯Ό μ¬μ©ν΄μΌ νλ€!!
#conda νκ²½ μμ±
% conda create -n detectron python=3.8
% conda activate detectron
#pytorch
% conda install -c conda-forge pytorch
#pillow
% conda install pillow
#torchvision
% git clone https://github.com/pytorch/vision torchvision
% cd torchvision
% git submodule update --init --recursive
% MACOSX_DEPLOYMENT_TARGET=11.0 CC=clang CXX=clang++ python setup.py install
#torchtext
% git clone https://github.com/pytorch/text torchtext
% cd torchtext
% git submodule update --init --recursive
% MACOSX_DEPLOYMENT_TARGET=11.0 CC=clang CXX=clang++ python setup.py clean install
# grpcio
% export GRPC_PYTHON_BUILD_SYSTEM_OPENSSL=1
% export GRPC_PYTHON_BUILD_SYSTEM_ZLIB=1
% pip install grpcio
#detectron2
% pip install 'git+https://github.com/facebookresearch/detectron2.git'
μλ νμΈμ κΈ μ λ³΄κ³ λ°λΌνκ³ μμ΅λλ€.
λ€λ¦μ΄ μλλΌ
% git submodule update --init --recursive
% MACOSX_DEPLOYMENT_TARGET=11.0 CC=clang CXX=clang++ python setup.py clean install
μ΄ λΆλΆμμ install λͺ λ Ήμ΄ μ λ ₯μ
error: unknown file type '.mm' (from '/Users/macpro/Desktop/deep learning/torchvision/torchvision/csrc/ops/mps/nms_kernel.mm')
μ΄λ° μ€λ₯κ° λ°μνλλ° νΉμ μ΄λ»κ² ν΄κ²°νλμ§ μ¬μ€λ³Ό μ μμκΉμ?