python用pip安装whl文件

python用pip安装whl文件1.安装python第三方包:注:安装whl文件,前提执行,才能成功。pipinstallwheel<1.进入c:\python\scripts的目录<2.在D:\Python27\Scripts目录下用管理员打开cmd,运行pip命令pipinstall包的名字.whl当然也可以使用:pipinstallC:\Users\xxx\Downloads…

大家好,又见面了,我是你们的朋友全栈君。

1.安装python第三方包:

注:安装whl文件,前提执行 ,才能成功。
pip install wheel

python用pip安装whl文件

 

<1.进入c:\python\scripts的目录

 

 

<2. 在D:\Python27\Scripts目录下用管理员打开cmd,运行pip命令

     pip install 包的名字.whl

     当然也可以使用:

 

pip install C:\Users\xxx\Downloads\python_dateutil-2.5.3-py2.py3-none-any.whl

 

 

 

 

<3.安装成功后,出现Successfully .....

 

2.安装失败:

 
<1.查看自已配置的环境,可以看看另一篇:环境变量
<2.环境变量没问题,就使用在线安装。

例如:安装numpy ,命令:pip install numpy ,就成功啦。

 

3.卸载已安装的库:

 
<1.使用 pip list 查看已安装的库,看好库的名称。
<2. 使用 pip uninstall tensorflow-gpu  ,就会把它卸载下来啦。(我是要安装cpu版本的,安装错啦卸载很简单)。
<3 当然还有其他卸载方法 :
 
安装TensorFlow转载:点击打开链接
 

 

方法二:手工删除
去Python的第三方模块或包的存放位置进行手工删除文件和文件夹,然后删除easy-install.pth文件中的相应的行。

 

 

pip是一个很方便的工具, 可以方便安装, 列出, 卸载python的模块/库/包等

常见使用, 例如:
cmd下:
安装pycurl包
pip install pycurl

列出已经安装的python包
pip list 

输出pycurl包的信息
pip show pycurl
                    
卸载pycurl包
pip uninstall pycurl

以下是pip全部命令参数 :
Usage:                                                                         
  pip <command> [options]                                                      
                                                                               
Commands:                                                                      
  install                     Install packages.                                
  uninstall                   Uninstall packages.                              
  freeze                      Output installed packages in requirements format.
  list                        List installed packages.                         
  show                        Show information about installed packages.       
  search                      Search PyPI for packages.                        
  wheel                       Build wheels from your requirements.             
  help                        Show help for commands.                          
                                                                               
General Options:                                                               
  -h, –help                  Show help.                                       
  –isolated                  Run pip in an isolated mode, ignoring            
                              environment variables and user configuration.    
  -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.                                
  –log <path>                Path to a verbose appending log.                 
  –proxy <proxy>             Specify a proxy in the form                      
                              [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.            
  –trusted-host <hostname>   Mark this host as trusted, even though it does   
                              not have valid or any HTTPS.                     
  –cert <path>               Path to alternate CA bundle.                     
  –client-cert <path>        Path to SSL client certificate, a single file    
                              containing the private key and the certificate   
                              in PEM format.                                   
  –cache-dir <dir>           Store the cache data in <dir>.                   
  –no-cache-dir              Disable the cache.                               
  –disable-pip-version-check                                                  
                              Don’t periodically check PyPI to determine       
                              whether a new version of pip is available for    
                              download. Implied with –no-index.               

 

 

版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请联系我们举报,一经查实,本站将立刻删除。

发布者:全栈程序员-站长,转载请注明出处:https://javaforall.net/139212.html原文链接:https://javaforall.net

(0)
全栈程序员-站长的头像全栈程序员-站长


相关推荐

  • SSH服务器拒绝密码,再试一次;PermitRootLogin yes无效问题

    SSH服务器拒绝密码,再试一次;PermitRootLogin yes无效问题最近有小伙伴xshell远程登录时,出现了如下情况:网上找的答案也是千篇一律,大多数都是说将PermitRootLogin设置为yes,重启即可,然而很多并不行。在这里,说一下所有解决办法吧,总有一个适合你:如果没有安装ssh,即看不见PermitRootLogin,则使用如下语句安装:sudoapt-getinstallopenssh-server使用vim/etc/s…

    2022年6月11日
    30
  • DL入门(2):自编码器(AutoEncoder)

    DL入门(2):自编码器(AutoEncoder)简单叙述普通自编码器、堆叠自编码器、稀疏自编码器、降噪自编码器的原理及应用。

    2022年6月6日
    40
  • 并查集

    并查集

    2021年9月13日
    48
  • linux tty_linux tty

    linux tty_linux ttyLinux中的tty与pts终端是一种字符型设备,它有多种类型,通常使用tty来简称各种类型的终端设备。tty是Teletype的缩写。 Teletype是最早出现的一种终端设备——可以称作电传打字机,由Teletype公司生产。tty在Linux系统的设备特殊文件目录/dev/下。终端特殊设备文件一般有以下几种:1、串行端口终端(/dev/ttySn)串行端口终端(Serial Port Terminal)是使用计算机串行端口连接的终端设备。计算机把每个串行端口都看作是一个字符设备。有段时间这

    2022年8月9日
    7
  • 函数指针和指针函数用法和区别

    函数指针和指针函数用法和区别前言函数指针和指针函数,在学习C语言的时候遇到这两个东西简直头疼,当然还有更头疼的,比如什么函数指针函数、指针函数指针、数组指针、指针数组、函数指针数组等等,描述越长其定义就越复杂,当然理解起来就越难,特别是刚开始学习这门语言的童鞋,估计碰到这些东西就已经要崩溃了,然后好不容易死记硬背下来应付考试或者面试,然后过了几天发现,又是根本不会用,也不知道该在哪些地方用,这就尴尬了。今天这里只…

    2022年6月22日
    23
  • RSA加密算法Python实现

    RSA加密算法Python实现RSA加密算法Python实现RSA加密算法是目前使用最广泛的加密方式,具体流程见RSA加密算法之前想过用C语言实现,但是由于C语言对整型的位宽有要求,RSA加密算法中需要使用的数字大小远远超出C语言中longlongint的最大值,最近学习了Python之后,发现Python没有这一要求,可以较容易的实现。以下模拟中只能输入数字,因为实际过程中所有文字信息都被转化成Unicode数字码传输,代码中没有做转化这一步,只模拟算法。fromrandomimportrandintfromd

    2022年5月28日
    37

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注

关注全栈程序员社区公众号