pycharm安装库的时候报错Try to run this command from the system terminal. Make sure that you use the correct version of 'pip’和 Non-zero exit code(2)

报错信息:

error occurred: Non-zero exit code(2) proppsed solution:Try to run this command from the system terminal. Make sure that you use the correct version of 'pip’

请添加图片描述

回想为什么出现报错原因,好像是在 pip 版本更新之后,因为其它一些报错问题,让我更新pip版本到最新 22.1.2 ,结果更新之后就什么python库的装不上了。

解决:重新更换pip旧版本。
可以在pytharm的 Terminal 或cmd里执行命令:

python -m pip install pip==20.2.4

显示成功即可。
请添加图片描述

查看是否更换。
请添加图片描述

然后就可以正常安装库了。

GitHub 加速计划 / term / terminal
94.53 K
8.17 K
下载
The new Windows Terminal and the original Windows console host, all in the same place!
最近提交(Master分支:1 个月前 )
59dc5eff Closes #17752 Closes #17764 Closes #17830 2 天前
bcac9993 `AutoSuggestBox` has a `SuggestionChosen` event and any reasonable person would assume that this means one of the items was chosen. But with WinUI it's raised whenever a suggestion is merely highlighted. `QuerySubmitted` is the right event instead. Clearly that naming is a lot better than `SuggestionChosen`, since the property to get the chosen item is called `ChosenSuggestion`. WinUI, like the unrelenting wilderness of a world indifferent to human suffering, stands as a testament to the futility of human aspiration. Closes #17916 ## Validation Steps Performed * Type "Casc" * Move up/down with the arrow keys * Neither the filtered list nor the text updates ✅ * Press Enter on an item * Text updates ✅ 2 天前
Logo

旨在为数千万中国开发者提供一个无缝且高效的云端环境,以支持学习、使用和贡献开源项目。

更多推荐