【hacker的错误集】(Try to run this command from the system terminal. Make sure...)

简介: 今天,闲着没事干,把自己的python和pycharm卸载重安了,结果在安装requests库时报错了…(当时很慌,没有截图)只知道报错内容是

503b3f6b22a14a4dbf5c501a373dce17.jpg


报错内容



今天,闲着没事干,把自己的python和pycharm卸载重安了,结果在安装requests库时报错了…(当时很慌,没有截图)只知道报错内容是


Try to run this command from the system terminal. Make sure that you use the correct version of pip installed for your Python interpreter located at D:\python37\python.exe .


报错分析



33c51b4bc67441eaba7abc3873ee9716.jpg

虽然很慌但是也得分析一下,问题出在那里,依旧是使用根据单词意思来分析报错原因


system terminal 系统终端

command命令

correct version of pip pip的正确版本

Python interpreter

located位于


差不多懂了,大概意思就是pip的版本不对

先在pycharm project interpreter查看一下pycharm的pip的版本


b7cd67158d29416bbea88a5274120517.png


再在Terminal终端运行一下pip list,看一下python的pip版本


f18328301322428d80dd2c4baa430cc1.png


果然对不上,pycharm的pip版本是22.0.4,python的pip版本是21.2.4


解决方案



hacker:那么应该如何去解决呢?要不把python的pip卸载一下看看再打印一下pip list,万一解决了呢

居然:好办法,可谓是简单粗暴👍👍👍

直接上图,这里就不解释为什么了(我也不知道)


02e8919462204254b0ae112f1cb870fe.png


居然:好像版本对上了,要不安一下requests库看看

hacker:安排,必须安排👀👀👀


939adc8531844169b9085657ce211eb3.png


居然:好像安装成功了,要不稳妥一点,导入一下看看报不报错

hacker:有道理,那就看看吧


19c58a3684e54cb59b9db762627985da.png


不错不错,没报错完美解决!!!


fe91374ec50743d9be5aa6628dd6a9c4.jpg

目录
相关文章
|
1月前
|
NoSQL C语言
vscode出现 ERROR: Unable to start debugging. Unexpected GDB output from command “-exec-run“.
vscode出现 ERROR: Unable to start debugging. Unexpected GDB output from command “-exec-run“.
662 0
问题解决:Try to run this command from the system terminal. Make sure that you use the...
问题解决:Try to run this command from the system terminal. Make sure that you use the...
|
Java 应用服务中间件 开发工具
IDEA命令行缩短器助你解决此问题:Command line is too long. Shorten command line...(上)
IDEA命令行缩短器助你解决此问题:Command line is too long. Shorten command line...(上)
IDEA命令行缩短器助你解决此问题:Command line is too long. Shorten command line...(上)
|
XML IDE Java
IDEA命令行缩短器助你解决此问题:Command line is too long. Shorten command line...(下)
IDEA命令行缩短器助你解决此问题:Command line is too long. Shorten command line...(下)
IDEA命令行缩短器助你解决此问题:Command line is too long. Shorten command line...(下)
IDEA运行报Command line is too long错误解决办法
IDEA运行报Command line is too long错误解决办法
440 0
IDEA运行报Command line is too long错误解决办法
|
数据安全/隐私保护
提示 you neet to root to perform this command 的解决办法
提示 you neet to root to perform this command 的解决办法
|
数据安全/隐私保护 Ruby
cocopods 命令行执行命令时报错You don't have write permissions for the /Library/*
cocopods 命令行执行命令时报错You don't have write permissions for the /Library/*
1967 0
Command /Applications/Xcode.app/Contents/Developer/usr/bin/copypng failed with exit code 1错误解决办法
Command /Applications/Xcode.app/Contents/Developer/usr/bin/copypng failed with exit code 1错误解决办法
113 0
|
移动开发 Unix Shell
执行shell脚本时提示bad interpreter:No such file or directory的解决办法
执行shell脚本时提示bad interpreter:No such file or directory的解决办法
1121 0