It is solved in one article. When carrying out different projects, different requirements.txt need to be installed. How to avoid conflicts?

First create a virtual environment:

conda create -n environment name python=XX

Activate the environment in cmd

activate environment name

Enter the directory where the project's requirements.txt is located

 

perform an operation

pip install -i https://pypi.doubanio.com/simple/ -r requirements.txt

start download

 

Guess you like

Origin blog.csdn.net/qq_53545309/article/details/130188572