PyCharm and third-party library installation [pro-test effective]

Table of contents

One: install python

Two: Install Pycharm (Chinese should not exist in the installation path)

Three: Install third-party libraries


One: install python

In this article, follow the steps below to install the python operating environment and the PyCharm editor

1. Double-click to run python-3.7.4-amd64.exe (download the corresponding python according to the 64-bit or 32-bit computer system)
Add Python 3.7 to PATH must be checked and added to the environment variable

2. Click customize installation

3.install choose the default installation path or choose the path yourself, please remember this path
( reminder: there should be no Chinese in the installation path )

4. Click close, the installation is complete

5. Check whether the installation is successful

Run cmd, you can WIN key + R or operate as shown in the figure below

Enter python in the black box, and then press Enter; if the version number of python appears and enters the python mode >>>, it proves that everyone's python installation is successful! Continue to enter exit(), and press Enter to exit this mode

Two: Install Pycharm ( Chinese should not exist in the installation path )

professional means the professional version, community means the community version, it is recommended to install the community version, because it is free to use

1. Find and double-click to install

Click next
and remember to modify the installation path. I put the E disk here. After the modification, Next

click next

Click install to install
after the installation is complete, you need to restart the computer

After restarting the computer, the installation is complete

Three: Install third-party libraries

1. The local installation method of the whl package:

A. Find the whl package corresponding to the python3.7 version in the folder, according to the BC steps,

Install the whl list in order to install

B. Open cmd

C. Enter pip install --user (note that a space should be added after install) and drag the whl package to the console (note that there is no Chinese in the path where the whl package is stored), then press Enter 

2. Online installation of third-party library command method:

pip install 库名 -i https://pypi.tuna.tsinghua.edu.cn/simple --user

For example: pip install numpy -i https://pypi.tuna.tsinghua.edu.cn/simple --user

So far: the python development environment and editor are installed

Note: The WHL placement path must not have a Chinese path! ! !

pip install --user

Enter the above command (the space character must not be omitted) drag the .whl file to the console and press Enter

Sometimes there will be network instability and re-enter the command to install

Check if the installation is successful pip list

pip list

Guess you like

Origin blog.csdn.net/m0_56051805/article/details/126904272