Python packages安装

1.Find Python install dictionary if you forget it

This code will help you find the path

import sys
print(sys.path)
2.install pip
download get-pip.py form https:// pip.pypa.io/en/stable/installing/#upgrading-pip. Put the py file in Python folder, double click the get-pip.py you will find install processing.

3.install packages

Also find Python install folder, in which you will find a folder named Scripts.Open it you will find a pip.exe if you have already installed pip. Next, open cmd,drag pip.exe to the cmd window. So, in this way, you don't need to type the long path to find pip.exe.


Attention, this comes to the most important part.  After the path,type the pakeage name you want to install, remember to add a block between 'install' and 'pakeage name'. 

Press Enter, and,wait.


4.Check

After installing the package, you can import it.

Python packages安装_第1张图片

你可能感兴趣的:(Python,Python,Pakeage)