1、准备

安装python3.6;

配置好pip的阿里云安装环境:

在自己电脑的C盘用户目录下新建文件夹pip,里面新建文档pip.ini

> 系 统 ( C : ) > 用 户 
名 称 
是 
PIP•lnl 
hgy > pip 
修 改 日 期 
201g / 1 / 29 22 : 51

pip.ini输入

[global]

trusted-host=mirrors.aliyun.com

index-url=http://mirrors.aliyun.com/pypi/simple/

 

nev 10 pip. ini 
trusted—host—mirrors.aliyun.com

 

计算机生成了可选文字:
AnacondaPrompt-舁install--ignore-installed—upgradenso删ow
(base)C:\Llsers\dl>pipinstall
¯ignore¯installed¯¯upgradetensorflow
ookinginindexes:http://mirrors.aliyun.com/pypi/sirnple/
ollectingtensorflow
Dovmloadinghttp://mirrors.aliyun.c囗pi/paags/31/6c/clf訃C2Ca251C627976aCa937t4t27t73493002b69b71147b092d2642
/tensorflow-2.l.O-c36一c36m-wina64.1(355.)
6000000000到00000000
《222.3B12./sta上開:11

 

2、进入cmd终端

例如下载numpy:输入pip download numpy

会自动检测本地python版本,下载对应的numpy。

计算机生成了可选文字:
:\Llsers\dl>pipd囗1囗adnullPY
ookinginindexes:http://mirrors.aliyun.com/pypi/sirnple/
Collectingnunpy
Dovmloadinghttp://mirrors.aliyun.c囗pi/paags/dc/18/69tg4530360C2d39db51aCb4CC0012990t27tb1ta7542daC45ad307ab
/nulnpy-l.1&5-c36一c36m-wina64.1(12.君)
10謂000000000000000000000000000000《
Savedc:\rn-unpy-l.1&5-cp36-cp36m-wina64.1
SuccessfullydovmloadednullPY
Youareusingpipversion10.0.1,howeverversion20.2b1isavailable.
YoushouldconsiderupgradingViathepython¯mpipinstall¯¯upgradepip
12.君20.5MB/s
C囗旺盯.

已下载好:

计算机生成了可选文字:
椠〔0〕,产
名称
囗
matplotlib
囗
.PyCharmCE201g.2
AppData
OneDrive
囗
Viasfora
保存的游
0
0
numpy-118巧还35还35mwinamd64whl
修改凸期
2020/5/2723:32
2020/4/Ig1005
2020/4/1711:32
2020/5/2721:48
2020/4/1621℃0
2020/4/1621:03
2020/5/2723:27
2020/4/1623:31
2020/4/1713巧7
2020/5/2721:48
2020/5/2721:48
2020/5/2721:48
2020/5/2721:48
2020/5/2721:48
2020/5/2721:48
2020/5/2721:48
2020/5/31000
2020/5/30g:50
2020/5/2721:48
2020/5/522:21
2020/5/315:11
2020/6/522:34
DAT#
WHL文亻