Three ways to install third-party libraries python
Method 1: Use the command pip
Method 2: Method integrated installation
Method 3: Installation file
A command .pip installation methods (internet connection required):
pip installation method simply, is to use pip to install python comes with tools to install third-party libraries,
Use pip installation tool, you need to open a command-line operation to provide provided for windows, Mac OS,
And Linux platforms;
pip -h Show command help
Pip commonly used commands
pip install <third-party library name> Install the specified third-party libraries
pip install -U <third-party library name> to install a third-party library has been updated to make it to the latest version
pip uninstall <third-party libraries> wrote in the designated third party libraries
pip download <third-party libraries> Download but do not install third-party libraries developed as a follow-installed base
pip show <third-party libraries> lists the details of a developing third-party libraries
pip search <third-party libraries> according to keyword search and the presentation of the third-party libraries
pip list third-party libraries listed in the current system has been installed
Second, the integration of third-party libraries installation method:
Anaconda https://www.continuum.io
- Supports nearly 800 third-party libraries
- contains more mainstream tools
- for data computing development
Three third-party libraries file installation method:
Why do some third-party libraries can be downloaded with a pip, but can not be installed?
- This is because it is not an executable file provided by some third-party libraries, post pip to download, install needs to be compiled
- If the operating system does not build environment, you can download but not install
http://www.lfd.uci.edu/~gohlke/pythonlibs/ UCI page
- gives a number of versions of the compiler compiles directly through the installation of third-party libraries in the windows
Such as installing jieba library
- Step 1: On the UCI page search wordcloud
- Step 2: Download the corresponding version of the file
- Step 3: Use pip install <filename> install
Taking notes, for future use and review!