今天发现一个很奇怪的问题
但是我一换成
conda create -n DCA python==3.8.12
就是成功的
这个就很奇怪,
解决如下
https://towardsdatascience.com/how-to-manage-conda-environments-on-an-apple-silicon-m1-mac-1e29cb3bad12
998 conda search python
conda search python
这句命令显示没有python3.7.6的版本
vim ~/.zshrc
source ~/.zshrc
其中我~/.zshrc
的内容如下
# >>> conda initialize >>>
# !! Contents within this block are managed by 'conda init' !!
__conda_setup="$('/Users/yxk/anaconda3/bin/conda' 'shell.zsh' 'hook' 2> /dev/null)"
if [ $? -eq 0 ]; then
eval "$__conda_setup"
else
if [ -f "/Users/yxk/anaconda3/etc/profile.d/conda.sh" ]; then
. "/Users/yxk/anaconda3/etc/profile.d/conda.sh"
else
export PATH="/Users/yxk/anaconda3/bin:$PATH"
fi
fi
unset __conda_setup
# <<< conda initialize <<<
create_x86_conda_environment () {
# create a conda environment using x86 architecture
# first argument is environment name, all subsequent arguments will be passed to `conda create`
# example usage: create_x86_conda_environment myenv_x86 python=3.9
CONDA_SUBDIR=osx-64 conda create -n $@
conda activate $1
conda config --env --set subdir osx-64
}
然后这个结果是这样的