pip command 	ModuleName
  • command:用于指定要执行的命令(install:安装,uninstall:卸载)
  • ModuleName:需要安装的模块名称

示例:

安装第三方模块numpy模块(用于科学计算):

C:\Users> pip install numpy
Collecting numpy
Downloading https://files.pythonhosted.org/packages/96/d6/53a59338c613e0c3ec7e3052bbf068a5457a005a5f7ad4ae005167c3597e/numpy-1.15.2-cp37-none-win_amd64.whl (13.5MB)
100% |████████████████████████████████| 13.5MB 1.3MB/s
Installing collected packages: numpy
Successfully installed numpy-1.15.2

卸载numpy模块:

C:\Users>  pip uninstall numpy
Uninstalling numpy-1.15.2:
Would remove:
d:\python\lib\site-packages\numpy-1.15.2.dist-info\*
d:\python\lib\site-packages\numpy\*
d:\python\scripts\f2py.py
Proceed (y/n)? y
Successfully uninstalled numpy-1.15.2

多学两招

  1. 如果想要查看本机Python中都有哪些模块(包括标准模块和第三方模块),可以在IDE中输入以下命令
print(help('modules'))

执行结果:
Please wait a moment while I gather a list of all available modules... Demo _thread getpass secrets
Demo2 _threading_local gettext select
Demo3 _tkinter glob selectors
Demo4 _tracemalloc gzip setuptools
__future__ _warnings hashlib shelve
_abc _weakref heapq shlex
_ast _weakrefset hmac shutil
_asyncio _winapi html signal
_bisect abc http site
_blake2 aifc idlelib sitecustomize
_bootlocale antigravity imaplib smtpd
_bz2 argparse imghdr smtplib
_codecs array imp sndhdr
_codecs_cn ast importlib socket
_codecs_hk asynchat inspect socketserver
_codecs_iso2022 asyncio io sqlite3
_codecs_jp asyncore ipaddress sre_compile
_codecs_kr atexit itertools sre_constants
_codecs_tw audioop json sre_parse
_collections backend_interagg keyword ssl
_collections_abc base64 lib2to3 stat
_compat_pickle bdb linecache statistics
_compression binascii locale string
_contextvars binhex logging stringprep
_csv bisect lzma struct
_ctypes builtins macpath subprocess
_ctypes_test bz2 mailbox sunau
_datetime cProfile mailcap symbol
_decimal calendar marshal symtable
_distutils_findvs cgi math sys
_dummy_thread cgitb mimetypes sysconfig
_elementtree chunk mmap tabnanny
_functools cmath modulefinder tarfile
_hashlib cmd msilib telnetlib
_heapq code msvcrt tempfile
_imp codecs multiprocessing test
_io codeop netrc textwrap
_json collections nntplib this
_locale colorsys nt threading
_lsprof compileall ntpath time
_lzma concurrent nturl2path timeit
_markupbase configparser numbers tkinter
_md5 contextlib opcode token
_msi contextvars operator tokenize
_multibytecodec copy optparse trace
_multiprocessing copyreg os traceback
_opcode crypt parser tracemalloc
_operator csv pathlib tty
_osx_support ctypes pdb turtle
_overlapped curses pickle turtledemo
_pickle dataclasses pickletools types
_py_abc datetime pip typing
_pydecimal dbm pipes unicodedata
_pyio decimal pkg_resources unittest
_queue difflib pkgutil urllib
_random dis platform uu
_sha1 distutils plistlib uuid
_sha256 doctest poplib venv
_sha3 dummy_threading posixpath warnings
_sha512 easy_install pprint wave
_signal email profile weakref
_sitebuiltins encodings pstats webbrowser
_socket ensurepip pty winreg
_sqlite3 enum py_compile winsound
_sre errno pyclbr wsgiref
_ssl faulthandler pydoc xdrlib
_stat filecmp pydoc_data xml
_string fileinput pyexpat xmlrpc
_strptime fnmatch queue xxsubtype
_struct formatter quopri zipapp
_symtable fractions random zipfile
_testbuffer ftplib re zipimport
_testcapi functools reprlib zlib
_testconsole gc rlcompleter
_testimportmultiple genericpath runpy
_testmultiphase getopt sched Enter any module name to get more help. Or, type "modules spam" to search
for modules whose name or summary contain the string "spam". None

随着时间的过度,结果可能不一样(官方可能进行,增、删、改)

  1. 查看本机已安装的第三方模块,可以在命令窗口(cmd)中输入pip list命令将会展示已安装的所有模块:
C:\Users> pip list
Package Version
---------- -------
pip 18.0
setuptools 39.0.1

Python安装、卸载第三方模块的更多相关文章

  1. python安装requests第三方模块

    2018-08-28 22:04:51 1 .下载到桌面后解压,放到python的目录下 ------------------------------------------------------- ...

  2. Python入门之第三方模块安装

    Python入门之第三方模块安装 平台:Win10 x64 + Anaconda3-5.3.0 (+Python3.7.0) Issue说明:pip install line_profiler-2.1 ...

  3. Python内置模块和第三方模块

    1.Python内置模块和第三方模块 内置模块: Python中,安装好了Python后,本身就带有的库,就叫做Python的内置的库. 内置模块,也被称为Python的标准库. Python 2.x ...

  4. 如何安装nginx第三方模块

    nginx文件非常小但是性能非常的高效,这方面完胜apache,nginx文件小的一个原因之一是nginx自带的功能相对较少,好在nginx允许第三方模块,第三方模块使得nginx越发的强大. 在安装 ...

  5. Python安装MySQL数据库模块

    背景 折腾: [记录]使用Python操作MySQL数据库 的过程中,需要去安装MySQLdb. 下载MySQLdb 去官网: http://pypi.python.org/pypi/MySQL-py ...

  6. python pip的安装流程,以及使用pip更新,卸载第三方模块

    在Python的学习过程中,肯定会遇到很多安装模块的地方,可以使用easy_install安装,但是easy_install相对于pip而言,最大的缺陷就是它所安装的模块是不能够卸载的,其他功能是和p ...

  7. 22.Python安装和卸载第三方模块方法

    安装和卸载第三方开源模块的步骤:下例,安装urllib3模块的步骤. 1.安装开源模块步骤: 按键盘windows键+r键,输出cmd回车.或开始->windows系统->命令提示符: 输 ...

  8. Python学习之==>第三方模块的安装、模块导入

    一.模块&包 1.模块 模块实质上就是一个Python文件,它是用来组织代码的.意思就是把Python代码写在里面,文件名就是模块的名称.例如:random.py,random就是模块的名称. ...

  9. 用python的requests第三方模块抓取王者荣耀所有英雄的皮肤

    本文使用python的第三方模块requests爬取王者荣耀所有英雄的图片,并将图片按每个英雄为一个目录存入文件夹中,方便用作桌面壁纸 下面时具体的代码,已通过python3.6测试,可以成功运行: ...

随机推荐

  1. Flask表单(form)的应用

    导入模块request模块 #指定请求方式,使用methods属性 @app.route("/",methods=['GET','POST']) def index(): #判断c ...

  2. jQuery源码分析学习--资料收集--更新中

    1.逐行分析jQuery源码的奥秘 - 网易云课堂  http://study.163.com/course/courseMain.htm?courseId=465001#/courseDetail? ...

  3. 《jQuery精品教程视频》-每天的复习笔记

    第一天 //jquery:简单.粗暴 //jq和js的关系 //js是什么? js是一门编程语言 //jq仅仅是基于js的一个库,jq可理解为就是开发js的一个工具. //概念 //1. 为什么要学j ...

  4. 前端必备——js中前端与后台的数据交互全解

    只要编程语言能够支持网卡端口的监听和发送,理论上都是可以实现服务器后台设计的.也因此造成了实现后台的语言偏多,而web前端语言以html/css/js为主.所以在这里我们不涉及后台的设计,只介绍在we ...

  5. 51NOD 数字1的数量

    题目描述: 给定一个十进制正整数N,写下从1开始,到N的所有正数,计算出其中出现所有1的个数. 例如:n = 12,包含了5个1.1,10,12共包含3个1,11包含2个1,总共5个1. Input ...

  6. Springboot引入多个yml方法

    SpringBoot默认加载的是application.yml文件,所以想要引入其他配置的yml文件,就要在application.yml中激活该文件 定义一个application-resource ...

  7. 核心编程9 文件和文件的输入输出 (os模块)

    1  python内建函数open和file 文件打开方便读取:f = open('文件名','模式','缓冲模式')         #'r'读取,'w'写入(先清空后创建).'a'追加 详情文件模 ...

  8. zookeeper安装教程

    zookeeper  一.单机安装 1.1 下载 1.2 安装 1.3 配置 1.4 启动和停止 二.伪集群模式 2.1 zookeeper1配置 2.2 zookeeper2配置 2.3 zooke ...

  9. C++ 11 snippets , 1

    1->创建7个Thread,跑个非常大的循环.观察CPU void func(string &name) { ;i<0xFFFFFFFF;i++) { //cout << ...

  10. LwIP Application Developers Manual10---LwIP IPv4/IPv6 stacks

    1.前言 lwIP正在加入IPv6,一个实验性的版本可以通过git下载,该版本实现了一个IPv4/IPv6的双协议栈.通过在lwipopts.h定义LWIP_IPV6可以使能IPv6 2.已实现的IP ...