WIN + R ,输入CMD,运行
pip freeze --local | findstr /v "^-e" | for /f "tokens=1 delims==" %a in ('more') do pip install -U %a
即可,部分结果如下:
可以使用
pip check
来检查环境依赖冲突,并进行修改
C:\Users\wmh21>pip check
langchain-cli 0.0.25 has requirement tomlkit<0.13.0,>=0.12.2, but you have tomlkit 0.13.0.
langchain-cli 0.0.25 has requirement typer[all]<0.10.0,>=0.9.0, but you have typer 0.12.3.
langchain-cli 0.0.25 has requirement uvicorn<0.24.0,>=0.23.2, but you have uvicorn 0.30.1.
langserve 0.2.2 has requirement pyproject-toml<0.0.11,>=0.0.10, but you have pyproject-toml 0.0.11.
pip uninstall tomlkit typer uvicorn pyproject-toml
pip install tomlkit==0.12.2 typer==0.9.0 uvicorn==0.23.2 pyproject-toml==0.0.10