已解决正确查看pip版本、查看pip帮助命令

article/2025/9/28 12:22:20

已解决(pip查看版本报错)Usage:pip [options] no such option: —verson





文章目录

  • 报错代码
  • 报错翻译
  • 报错原因
  • 解决方法
  • 千人全栈VIP答疑群联系博主帮忙解决报错





报错代码



粉丝群一个小伙伴想用pip查看版本报错,但是发生了报错(当时他心里瞬间凉了一大截,跑来找我求助,然后顺利帮助他解决了,顺便记录一下希望可以帮助到更多遇到这个bug不会解决的小伙伴),报错代码如下:

pip --verson

报错信息截图如下所示


在这里插入图片描述




报错翻译



报错信息翻译如下

用法:pip<command>〔options〕
没有这样的选项:-verson





报错原因



报错原因

粉丝pip命令写错了,所以报错信息提示没有这个选项,下面正确代码小伙伴任选其一即可!!!





解决方法



查看pip版本语句1:

pip -V

查看pip版本语句2:

pip --version

运行结果返回pip版本号:


在这里插入图片描述

pip --help或者pip -h返回所有pip命令:

C:\Users\Administrator>pip -hUsage:pip <command> [options]Commands:install                     Install packages.download                    Download packages.uninstall                   Uninstall packages.freeze                      Output installed packages in requirements format.inspect                     Inspect the python environment.list                        List installed packages.show                        Show information about installed packages.check                       Verify installed packages have compatible dependencies.config                      Manage local and global configuration.search                      Search PyPI for packages.cache                       Inspect and manage pip's wheel cache.index                       Inspect information available from package indexes.wheel                       Build wheels from your requirements.hash                        Compute hashes of package archives.completion                  A helper command used for command completion.debug                       Show information useful for debugging.help                        Show help for commands.General Options:-h, --help                  Show help.--debug                     Let unhandled exceptions propagate outside the main subroutine, instead of logging themto stderr.--isolated                  Run pip in an isolated mode, ignoring environment variables and user configuration.--require-virtualenv        Allow pip to only run in a virtual environment; exit with an error otherwise.--python <python>           Run pip with the specified Python interpreter.-v, --verbose               Give more output. Option is additive, and can be used up to 3 times.-V, --version               Show version and exit.-q, --quiet                 Give less output. Option is additive, and can be used up to 3 times (corresponding toWARNING, ERROR, and CRITICAL logging levels).--log <path>                Path to a verbose appending log.--no-input                  Disable prompting for input.--proxy <proxy>             Specify a proxy in the form scheme://[user:passwd@]proxy.server:port.--retries <retries>         Maximum number of retries each connection should attempt (default 5 times).--timeout <sec>             Set the socket timeout (default 15 seconds).--exists-action <action>    Default action when a path already exists: (s)witch, (i)gnore, (w)ipe, (b)ackup,(a)bort.--trusted-host <hostname>   Mark this host or host:port pair as trusted, even though it does not have valid or anyHTTPS.--cert <path>               Path to PEM-encoded CA certificate bundle. If provided, overrides the default. See 'SSLCertificate Verification' in pip documentation for more information.--client-cert <path>        Path to SSL client certificate, a single file containing the private key and thecertificate in PEM format.--cache-dir <dir>           Store the cache data in <dir>.--no-cache-dir              Disable the cache.--disable-pip-version-checkDon't periodically check PyPI to determine whether a new version of pip is available fordownload. Implied with --no-index.--no-color                  Suppress colored output.--no-python-version-warningSilence deprecation warnings for upcoming unsupported Pythons.--use-feature <feature>     Enable new functionality, that may be backward incompatible.--use-deprecated <feature>  Enable deprecated functionality, that will be removed in the future.

以上是此问题报错原因的解决方法,欢迎评论区留言讨论是否能解决,如果有用欢迎点赞收藏文章谢谢支持,博主才有动力持续记录遇到的问题!!!

千人全栈VIP答疑群联系博主帮忙解决报错

由于博主时间精力有限,每天私信人数太多,没办法每个粉丝都及时回复,所以优先回复VIP粉丝,可以通过订阅限时9.9付费专栏《100天精通Python从入门到就业》进入千人全栈VIP答疑群,获得优先解答机会(代码指导、远程服务),白嫖80G学习资料大礼包,专栏订阅地址:https://blog.csdn.net/yuan2019035055/category_11466020.html

  • 优点作者优先解答机会(代码指导、远程服务),群里大佬众多可以抱团取暖(大厂内推机会),此专栏文章是专门针对零基础和需要进阶提升的同学所准备的一套完整教学,从0到100的不断进阶深入,后续还有实战项目,轻松应对面试!

  • 专栏福利简历指导、招聘内推、每周送实体书、80G全栈学习视频、300本IT电子书:Python、Java、前端、大数据、数据库、算法、爬虫、数据分析、机器学习、面试题库等等

  • 注意:如果希望得到及时回复,订阅专栏后私信博主进千人VIP答疑群在这里插入图片描述
    在这里插入图片描述

免费资料获取,更多粉丝福利,关注下方公众号获取

在这里插入图片描述


http://chatgpt.dhexx.cn/article/wCqoDulF.shtml

相关文章

解决OpenSSL SSL_read: Connection was reset, errno 10054

报错问题&#xff1a; fatal: unable to access ‘https://github.com/Sunyt1992/ref-comet.git/’: OpenSSL SSL_read: Connection was reset, errno 10054 OpenSSL SSL_read:连接已重置&#xff0c;错误号10054 字面意思&#xff1a;服务器的SSL证书灭有经过第三方机构的签署…

TCP 10054

2019独角兽企业重金招聘Python工程师标准>>> TcpSocket:Connection reset by peer 10054 10054 ConnectionReset 客户端网络情况不好的条件下&#xff0c;比如正在下载其他东西&#xff0c;而服务器又有心跳超时处理&#xff0c;客户端的心跳迟迟发不上去&#xff0…

gitHub报错10054、443解决办法

为了学习netty框架&#xff0c;将netty的源码fork到自己的github账号下&#xff0c;使用IDEA进行下载&#xff0c;报了errno 10054的错误&#xff0c;如下所示&#xff1a; 21:40:24.692: [..\..\javaworkspace] git -c credential.helper -c core.quotepathfalse -c log.show…

git 提交10054

环境&#xff1a;goland 远端&#xff1a;github 在当前路径下执行&#xff1a; git config --global core.longpaths true

telnetlib备份cisco交换机10054

问题 想用python的telnetlib模块对所有交换机做个自动备份&#xff0c;但是有几台3850交换机汇报如下错误: buf self.sock.recv(50) ConnectionResetError: [WinError 10054] 远程主机强迫关闭了一个现有的连接。调试了一下午终于在一篇文章中找到了临时解决办法&#xff0…

pipreqs 命令 ConnectionResetError(10054, ‘An existing connection was forcibly closed by the remote hos

运行python pip命令时&#xff0c;报如下错误&#xff1a; Traceback (most recent call last): File "D:\Users\z0048rzf\Anaconda3\lib\site-packages\urllib3\connection.py", line 174, in _new_conn conn connection.create_connection( File "D:…

UDP 错误 10054 : 远程主机强迫关闭了一个现有的连接

在公司一项目的UDP消息服务开发中时不时的会遇到这样一个问题&#xff1a;在UDP通信过程中&#xff0c;如果客户端中途断开&#xff0c;服务器会收到一个SocketException&#xff0c;错误ID为10054&#xff0c;描述是“远程主机强迫关闭了一个现有的连接”&#xff0c;紧接着的…

Git clone项目报错-errno 10054

Git clone项目报错:Error&#xff1a;R P C failed;curl 56 Open SS L SS L_read:Connection was Reset, err no 10054 在网上找了很久都没有合适的答案&#xff0c;特地去stackFlow上面看了一下&#xff0c;一个印度人解说的是正确的: 具体原因:克隆的时候没有git in it,网络…

git错误10054

git错误10054 背景&#xff1a;今天用git克隆&#xff0c;结果发现克隆不了&#xff0c;报错10054 问题&#xff1a; 原因&#xff1a;服务器的SSL证书没有经过第三方机构的签署&#xff0c;导致连接无法连上去&#xff0c;如果没有经过第三方机构签署&#xff0c;远程仓库无…

【Python爬虫错误】ConnectionResetError: [WinError 10054] 远程主机强迫关闭了一个现有的连接

今天写爬虫爬取天天基金网站&#xff08;http://fund.eastmoney.com/&#xff09;时出现如下图所示的错误。 分析原因&#xff0c;是因为使用urlopen方法太过频繁&#xff0c;引起远程主机的怀疑&#xff0c;被网站认定为是攻击行为。导致urlopen()后&#xff0c;request.read…

10054 java_【理解】 Error 10053和 Error 10054

1. 10053 这个错误码的意思是: A established connection was aborted by the software in your host machine, 一个已建立的连接所在主机的软件中止 2. 10054 这个错误码的意思是&#xff1a; Connection closed by peer, 连接已经被对方关闭 10053 出现的可能原因是&#xf…

mysql 端口号_mysql的端口号(mysql常用端口号)

mysql的端口号(mysql常用端口号) 2020-05-07 21:58:15 共10个回答 mysql的默认端口号是多少 mysql默认端口号为3306,修改端口号方法:修改配置文件/etc/my.cnf 如何查看mysql的端口号 1使用命令showglobalvariableslikeport;查看端口号2修改端口,编辑/etc/my.cnf文件,早期版本有…

IT开发+软件测试常用端口号

目录 一、端口号二、非常常用端口号-软件测试 ★★★★★三、一般常用端口号 ★★★☆☆四、端口概述 ★★☆☆☆五、端口一览表详情 ★☆☆☆☆一、端口号 具有网络功能的应用软件的标识号。注意,端口号是不固定的,即可以由用户手工可以分配(当然,一般在软件编写时就已经…

Hadoop之常用端口号

hadoop3.xHDFS NameNode 内部通常端口&#xff1a;8020、9000、9820HDFS NameNode 对用户的查询端口&#xff1a;9870Yarn查看任务运行情况的端口&#xff1a;8088历史服务器&#xff1a;19888HDFS NameNode 对用户的查询端口&#xff1a;9870&#xff0c;经常查看目录信息&…

服务器网站常用端口号,web服务器常用端口号

关于 web服务器常用端口号的搜索结果 回答 一般常用的端口号为:WWW是80&xff0c;FTP是21&xff0c;SMTP是25&xff0c;你可以通过修改端口号来提高IIS服务器的安全性。如果你修改了端口设置&xff0c;只有知道端口号的用户才可以访问&xff0c;但用户在访问时需要指定新端…

SQL语句截取字段某指定字符的前半段/后半段内容

最近项目中遇到一个小问题&#xff1a; 需要从数据库中取出对应数据&#xff0c;并根据某个字段中的前半段内容进行排序&#xff0c;搜索资料后得以解决&#xff0c;现将解决方法记录如下&#xff1a; 最初的查询SQL&#xff1a; SELECT file_name,sort FROM base_annexesfil…

sql常用函数详解(一)——字符串截取

1.substring函数——截取字符串 SUBSTRING ( expression, start, length ) expression——字符串、二进制字符串、文本、图像、列或包含列的表达式。请勿使用包含聚合函数的表达式。 start——整数或可以隐式转换为int 的表达式&#xff0c;指定子字符串的开始位置。 length——…

sql截取数据

1、left从左开始截取字符串 left&#xff08;string, length&#xff09; -- &#xff08;字符串&#xff0c;截取长度&#xff09;示例&#xff1a;SELECT id,LEFT(id,4) FROM organization 运行结果&#xff1a; 2、right从右开始截取字符串 right&#xff08;strin…

sql数据库,截取语句(截取每列中的字段)

制表人也是省事&#xff0c;把这些信息放在一列中&#xff0c;现在需要取红框圈着的数据&#xff0c;有一百多行&#xff0c;操作了十多行&#xff0c;实在是蛋疼&#xff0c;还是用sql搞吧 首先把excel表导入sqlserver中 //表名为“疑点详细说明”&#xff0c;22为姓名身份证…

SQL语句:如何截取指定字段某一个字符的前面/后面的字符串?

假设数据库中&#xff0c;某一列数据像这样&#xff0c;每个数据都有同一个字符“-”&#xff0c;这时如果我们需要获取这个字符的前面的字符串或后面的字符串&#xff0c;应该用什么SQL语句呢&#xff1f; SUBSTRING ( expression, start, length ) --SUBSTRIN…