How to install a third-party library in win Anaconda

Source: Internet
Author: User
This time to bring you in win anaconda how to install a third-party library, in win Anaconda install third-party Library of note what, the following is the actual case, together to see.

Anaconda integrates many of the required packages in scientific computing, such as numpy,scipy, to see what packages are pre-installed in Anaconda, and can be viewed through the cmd command, as shown in the Conda list:

However, because of the actual requirements, we will need to import the list of third-party packages, such as Gemsim, in Anaconda, we can refer to the following steps to install the required third-party package:

1. Start the Anaconda Command window:

Start > All Programs > Anaconda >anaconda prompt

2. Install Gensim Package

In the Anaconda Command window, enter pip install Gensim

3. Successful Installation

But the speed is really slow, it is recommended to use

conda install gensim

Add:

Anaconda Overview

Anaconda is a Python release for scientific computing that supports Linux, MAC, Windows, and provides package management and environmental management capabilities that can easily resolve multiple versions of Python coexistence, switching, and various third-party package installation issues. Anaconda uses the tool/command Conda to manage the package and environment, and it already contains Python and related companion tools.

This first explains the differences between the concepts of Conda and Anaconda. Conda can be understood as a tool and an executable command whose core function is package management and environmental management. Package management is similar to the use of PIP, and environmental management allows users to easily install different versions of Python and switch quickly. Anaconda is a packaged collection that is preloaded with Conda, a version of Python, numerous packages, scientific computing tools, and so on, so it is also known as a distribution version of Python. In fact, there are Miniconda, as the name implies, it contains only the most basic content--python and Conda, as well as related to the necessary dependencies, for the space-demanding users, Miniconda is an option.

Before entering the following, explain Conda's design philosophy--conda almost all the tools, third-party packages are treated as a package, even including Python and Conda itself! As a result, Conda has broken the constraints of package management and environmental management, making it easy to install versions of Python, various packages and easily switch between them.

But sometimes we still have to install the three-party package ourselves. For example, TensorFlow is used for deep learning packages.

For this I used three ways to install.

The first is to open the Anaconda prompt, enter the PIP install TensorFlow, but WHL file download to about 2% error, try it a few times

The second method is to download the three-way package that supports the window system from the official website click the Open link, and then enter the PIP install path +WHL file name in Anaconda prompt, but the following results appear:

The pip list TensorFlow package does not appear after the input.

The third type is input conda install tensorflow , which appears as shown below

Finally, not only installed the three-party package including TensorFlow, but also updated some of the old three-party package.

This is the perfect solution to the problem.

The following installation method for the WHL file

Install with the PIP command, you need to install the PIP command package, switch to Python under the script directory
Go to the website to download the third-party package required by http://www.lfd.uci.edu/~gohlke/pythonlibs/#libsvm, and place it in E:\selenium\
Directory, install it using the following command.

Support Python version 3.0 or above

Pip Install E:\SELENIUM\LIBSVM-3.22-CP36-CP36M-WIN_AMD64.WHL

Supports Python versions below 3.0

Pip Install E:\SELENIUM\LIBSVM-3.22-CP27-CP27M-WIN_AMD64.WHL

32-bit system installation

Pip Install E:\SELENIUM\LIBSVM-3.22-CP27-CP27M-WIN32.WHL

Believe that you have read the case of this article you have mastered the method, more exciting please pay attention to the PHP Chinese network other related articles!

Recommended reading:

Python operator Matrix column

Python operations Excel read and write data

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.