requirements相关
主要使用目的:任何应用程序通常需要设置安装所需并依赖一组类库来满足工作要求。要求文件是指定和一次性安装包的依赖项具体一整套方法。
1.用git将项目拉下来
2.配置虚拟环境
3.最后执行pip install -r requirements.txt -i https://pypi.tuna.tsinghua.edu.cn/simple命令
可能会报错:
pip安装三方库不成功:WARNING: You are using pip version 20.2.3; however, version 20.2.4 is available.
You should consider upgrading via the ‘c:\users\lenovo\appdata\local\programs\python\python37\python.exe -m pip install --upgrade pip’ command.
原因:pip版本过低导致安装第三方库失败
解决方法:
在cmd中输入: easy_install -U pip

浙公网安备 33010602011771号