新建一个新的环境
然后安装:
bash
# 不能拷贝别人的环境再安mebert_wash的环境。有冲突。我需要重新安一个空的conda环境,再安装。
# conda create -n wash python==3.10 ipykernel
python -m pip install --upgrade setuptools
python -m pip install --upgrade pip
pip install setuptools-scm
# 老版本==3.0.2不能用了要安新的
pip install transformers
pip install pytorch-crf==0.7.2
# torch==1.6.0 or 1.13.1
# for mac: pip3 install torch torchvision torchaudio
pip install torch==1.13.1
pip install seqeval
pip install matplotlib
# pip uninstall nvidia_cublas_cu11
pip install tqdm
pip install pybind11>=2.12
pip install numpy==1.26.0
# pip uninstall -y numpy
# pip install --upgrade numpy