Want to install transformers library in pytorch
Open anaconda3 directly at the beginning, and enter pip install transformers==4.15.0 -i https://pypi.tuna.tsinghua.edu.cn/simple to install directly. However, when using transformers in pytorch, an error No module named' is reported. transformers'
Later I realized that I installed transformers in the bash environment
Then execute the command conda activate pytorch, go to the pytorch environment to reinstall, and you can import