Home >Backend Development >Python Tutorial >What are the methods for downloading and changing python third-party libraries?

What are the methods for downloading and changing python third-party libraries?

王林
王林forward
2023-05-15 15:43:061599browse

    Press the "Start (win)" button and the R key, enter cmd, open the command line

    Find and click the required library:https://www.lfd.uci.edu/~gohlke/pythonlibs

    Download:

    The first common way:

    Enter "in the command line pip install library name", for example:

    pip install pygame

    The second quick way:

    Enter "pip install -i https:// in the command line pypi.douban.com/simple/library name", for example:

    pip install -i https://pypi.douban.com/simple/jieba

    Uninstall:

    Enter "pip uninstall library name" in the command line, such as:

    pip uninstall pygame

    Update:

    Enter "pip install -U library name" in the command line, for example:

    pip install -U pip

    View:

    1. Enter "pip list" on the command line to view the installed third-party libraries

    2. Enter "pip show library name" on the command line to view the detailed information of this installed library

    The above is the detailed content of What are the methods for downloading and changing python third-party libraries?. For more information, please follow other related articles on the PHP Chinese website!

    Statement:
    This article is reproduced at:yisu.com. If there is any infringement, please contact admin@php.cn delete