Some methods for installing third-party libraries on pycharm

Download and install third-party packages in pycharm,

Some methods for installing third-party libraries on pycharm:

Method 1: Use pycharm's built-in function to install (the following screenshots are from pycharm2018.1.4)

Click file -> 

->Settings

->Project untitled ->Project Interpreter

->Click the plus sign on the right

->Search for the third-party library you want to install and click on the lower left corner

->After the installation is completed, the installation is successful, and then you can use the plus and minus signs to manage your library in the search library interface.

Method 2: Use pip to install (I downloaded python3.7)

(1) After downloading the latest version of python, pip will be automatically downloaded for us, in the Scripts folder under the python folder, as shown below:

 

(2) If there is no pip, you can download it by yourself

     pip download address: https://pypi.python.org/pypi/pip#downloads 

   ->Decompress the downloaded file, enter the decompressed folder, call up the command line window cmd, and enter:

     

 

    ->Enter: pip -v to view related information, the following information indicates that the installation is successful:

     

note:

If the installation is not successful, you can try to configure the environment variable path (take windows10 as an example:)

Set Homepage -> System -> Pull down the last About in the left menu bar -> System Information under Related Information on the right ->

Left menu advanced system settings -> environment variables -> click Path and edit -> change the Scripts file under python

Copy the path of the folder to the back of the original path and it is OK (don't delete the original path, you should add a title in front;

Or create a new one)

 

(3) It can finally be installed:

   Enter the pip install package/module name in the cmd window

   如 pip install requests

Method three: (download the relevant whl file by yourself)

  1. Install wheel:

Run the following statement in the cmd window

pip install wheel

  1. In http://www.lfd.uci.edu/~gohlke/pythonlibs/ download the files they need whl and unzip Python / Lib / site-packages in.
  2. Run pip install in the cmd window with the path of the .whl file

   

 

Congratulations on your success! (If there are deficiencies and errors, please comment or contact in time.)

 

 

 

 

(The first blog, I believe this is both pursuit and motivation)

Some methods for installing third-party libraries on pycharm:

Method 1: Use pycharm's built-in function to install (the following screenshots are from pycharm2018.1.4)

Click file -> 

->Settings

->Project untitled ->Project Interpreter

->Click the plus sign on the right

->Search for the third-party library you want to install and click on the lower left corner

->After the installation is completed, the installation is successful, and then you can use the plus and minus signs to manage your library in the search library interface.

Method 2: Use pip to install (I downloaded python3.7)

(1) After downloading the latest version of python, pip will be automatically downloaded for us, in the Scripts folder under the python folder, as shown below:

 

(2) If there is no pip, you can download it by yourself

     pip download address: https://pypi.python.org/pypi/pip#downloads 

   ->Decompress the downloaded file, enter the decompressed folder, call up the command line window cmd, and enter:

     

 

    ->Enter: pip -v to view related information, the following information indicates that the installation is successful:

     

note:

If the installation is not successful, you can try to configure the environment variable path (take windows10 as an example:)

Set Homepage -> System -> Pull down the last About in the left menu bar -> System Information under Related Information on the right ->

Left menu advanced system settings -> environment variables -> click Path and edit -> change the Scripts file under python

Copy the path of the folder to the back of the original path and it is OK (don't delete the original path, you should add a title in front;

Or create a new one)

 

(3) It can finally be installed:

   Enter the pip install package/module name in the cmd window

   如 pip install requests

Method three: (download the relevant whl file by yourself)

  1. Install wheel:

Run the following statement in the cmd window

pip install wheel

  1. In http://www.lfd.uci.edu/~gohlke/pythonlibs/ download the files they need whl and unzip Python / Lib / site-packages in.
  2. Run pip install in the cmd window with the path of the .whl file

   

 

Congratulations on your success! (If there are deficiencies and errors, please comment or contact in time.)

 

 

 

 

(The first blog, I believe this is both pursuit and motivation)

Guess you like

Origin blog.csdn.net/weixin_41792162/article/details/115306210