Python is a powerful programming language that provides many modules for scientific computing, including NumPy, scipy, Pandas, and matplotlib. To use Python for scientific computing requires one by one of the required modules to be installed, which may be dependent on other software packages or libraries, making it relatively cumbersome to install and use. Fortunately, someone is doing this kind of thing, compiling the modules needed for scientific computing and then packaging them for use in the form of a release, Anaconda is one of the most popular scientific computing distributions.
The default version of Anaconda that we downloaded from the website (link 1) already has many libraries (link 2), including NumPy.
Although Anaconda has come with a large number of common modules in scientific calculations, it can be used directly. Sometimes you need to install some other Python modules. Like what:
Conda
Anaconda comes with the Conda command for installing and updating modules, such as:
1 Conda Install scipy 2 Conda update scipy
After installing the libraries we need, if we use the Spyder installed with Anaconda as the development environment, this article ends the o_o
In fact, I've been using Pycharm as the IDE for Python development. In the 5 hours before writing this article I have been trying a variety of different ways to make my Computer pycharm can successfully install the NumPy library, browse through the major Chinese and foreign website introduction of the method to let me realize this is a very annoying problem. The various versions of WHL files that include, but are not limited to, PIP commands are invalidated for a variety of reasons. Extremely disappointed I tried to install the Anaconda, in this interface (link 3) I found
"How to set up a IDE to use Anaconda"
It introduces several methods of using Anaconda in software, including Pycharm.
- Spyder
- Python Tools for Visual Studio (PTVS)
- Pycharm
- Eclipse & PyDev
- Wing IDE
- Ninja IDE
So, after configuring Pycharm call Anaconda, we can invoke a variety of scientific computing libraries happily in Pycharm.
The steps are as follows:
1. Installing Anaconda
2. Installing Pycharm
3. Add Anaconda Python.exe to Pycharm's Files>>settings>>project Interpreter>>add Local. After the application, you can invoke various Anaconda libraries.
A little curve to the taste of salvation.
How to use Python's scientific Computing library quickly and gracefully under Windows?