只能说在M1上conda是安装所有包最方便的 没有任何错误出现
M1 先装miniforge
https://github.com/conda-forge/miniforge/#download
安装教程就在readme里,卸载也在readme里。跟着官方的做没有出错。
python --version
Python 3.9.10
conda activate *****(你的环境)
pip install sklearn
conda install -c conda-forge cvxpy
conda install -c conda-forge tensorflow
conda install -c conda-forge/label/cf201901 cvxopt
conda install matplotlib
pip3 install torch torchvision torchaudio