这个报错怎么解决WARNING: The scripts pip.exe, pip3.10.exe, pip3.9.exe and pip3.exe are installed in 'C:\Users\wyx\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\Python39\Scripts' which is not on PATH. Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
时间: 2023-07-21 20:56:16 浏览: 6152
这个报错是在提醒你安装的pip所在的路径没有被添加到系统环境变量PATH中。对于这个问题,你可以考虑将pip所在的路径添加到系统环境变量中,或者在使用pip命令时加上`--no-warn-script-location`参数来忽略这个警告。
如果你想将pip所在的路径添加到系统环境变量中,可以按照以下步骤进行操作:
1. 打开控制面板,选择"系统和安全",然后选择"系统",点击"高级系统设置"。
2. 在"高级"选项卡中,点击"环境变量"。
3. 在"系统变量"中找到"Path"变量,点击"编辑"按钮。
4. 点击"新建"按钮,输入pip所在的路径(例如:C:\Users\wyx\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\Python39\Scripts)。
5. 点击"确定"按钮,保存修改并关闭所有窗口。
添加完成后,你可以重新打开命令行窗口,输入pip命令进行测试,这个问题应该就会解决了。
阅读全文
相关推荐









