码迷,mamicode.com
首页 > 编程语言 > 详细

电脑重装后 python 2 3快速安装

时间:2019-12-13 20:05:35      阅读:127      评论:0      收藏:0      [点我收藏+]

标签:onclick   ssh   pyw   robot   gif   ram   lib   chardet   spl   

背景:

电脑重装后,python也要跟着重装,将安装包、环境变量备份等安装完成后直接安装

 

重装前

1. pip包备份,命令窗口

1 pip freeze > py2.txt #python2的包
2 pip3 freeze > py3.txt #python3的包

 

2.环境变量备份,命令窗口

1 set >> D:\env.txt

 

重装后

1.安装python2、3

 安装包可以从官网下载,也可以使用网盘中的文件

链接:https://pan.baidu.com/s/1sqejXeezFzU_2XJJtzD_Hw 
提取码:f0q3

2.将python3目录下的 python.exe 复制一份,修改成 python3.exe

 

3.将重装前2中的环境变量中的 python路径加到 环境变量中

1 C:\Python27;
2 C:\Python27\Scripts;
3 C:\Python27\Lib\site-packages;
4 C:\Python37;
5 C:\Python37\Scripts;

 

4.安装VCForPython27 包,不安装的话 第五步会报错 error: Microsoft Visual C++ 9.0 is required

地址:http://www.microsoft.com/en-us/download/confirmation.aspx?id=44266

直接下载安装 或从重装后步骤1中的网盘中下载

 

5.安装包

1 pip install -r py2.txt #安装python2的包
2 pip install -r py3.txt #安装python3的包

 

附录:

自己常用安装包

Python2

技术图片
  1 alembic==0.8.7
  2 aniso8601==6.0.0
  3 Appium-Python-Client==0.28
  4 AppMetrics==0.5.0
  5 APScheduler==3.6.1
  6 arrow==0.13.1
  7 asn1crypto==0.24.0
  8 backports-abc==0.5
  9 backports.functools-lru-cache==1.5
 10 bcrypt==3.1.4
 11 beautifulsoup4==4.6.0
 12 binaryornot==0.4.4
 13 blinker==1.4
 14 certifi==2018.4.16
 15 cffi==1.11.5
 16 chardet==3.0.4
 17 click==6.6
 18 configparser==3.7.4
 19 cookiecutter==1.6.0
 20 cookiejar==0.0.2
 21 coverage==4.5.1
 22 cryptography==2.2.2
 23 cycler==0.10.0
 24 decorator==4.3.0
 25 Django==1.11.20
 26 docutils==0.14
 27 dominate==2.3.5
 28 enum34==1.1.6
 29 et-xmlfile==1.0.1
 30 Flask==0.11.1
 31 Flask-Bootstrap==3.3.7.1
 32 Flask-HTTPAuth==3.1.2
 33 Flask-JWT==0.3.2
 34 Flask-Login==0.4.1
 35 Flask-Mail==0.9.1
 36 Flask-Migrate==2.0.0
 37 Flask-Moment==0.7.0
 38 Flask-RESTful==0.3.7
 39 Flask-Script==2.0.5
 40 Flask-SQLAlchemy==2.1
 41 funcsigs==1.0.2
 42 future==0.17.1
 43 futures==3.2.0
 44 hiredis==0.2.0
 45 http==0.2
 46 idna==2.6
 47 ipaddress==1.0.22
 48 itsdangerous==0.24
 49 jdcal==1.4
 50 jieba==0.39
 51 Jinja2==2.8
 52 jinja2-time==0.2.0
 53 jsonpatch==1.23
 54 jsonpointer==2.0
 55 jwt==0.5.4
 56 kitchen==1.2.5
 57 kiwisolver==1.1.0
 58 livetest==0.5
 59 Mako==1.0.4
 60 MarkupSafe==0.23
 61 matplotlib==2.2.4
 62 mock==2.0.0
 63 mysql-connector==2.2.9
 64 MySQL-python==1.2.5
 65 numpy==1.16.4
 66 openpyxl==2.6.2
 67 pager==3.3
 68 paramiko==2.4.1
 69 parse==1.8.4
 70 passlib==1.7.1
 71 payment==0.0.1.2
 72 pbr==5.1.3
 73 Pillow==6.0.0
 74 pluggy==0.6.0
 75 poyo==0.4.2
 76 py==1.5.3
 77 pyasn1==0.4.3
 78 pycparser==2.18
 79 pycrypto==2.6
 80 PyJWT==1.4.2
 81 pymongo==3.6.1
 82 PyMySQL==0.7.6
 83 PyNaCl==1.2.1
 84 pyparsing==2.4.0
 85 python-dateutil==2.8.0
 86 python-editor==1.0.1
 87 pytz==2018.9
 88 redis==2.10.5
 89 redis-py-cluster==1.3.4
 90 requests==2.19.0
 91 robotframework==3.0.4
 92 robotframework-appiumlibrary==1.4.6
 93 robotframework-archivelibrary==0.4.0
 94 robotframework-databaselibrary==1.0.1
 95 robotframework-ftplibrary==1.6
 96 robotframework-httplibrary==0.4.2
 97 robotframework-mongodblibrary==0.3.4
 98 robotframework-redislibrary==0.1
 99 robotframework-requests==0.4.7
100 robotframework-ride==1.5.2.1
101 robotframework-selenium2library==3.0.0
102 robotframework-seleniumlibrary==3.1.1
103 robotframework-sshlibrary==3.0.0
104 schedule==0.6.0
105 selenium==3.12.0
106 singledispatch==3.4.0.3
107 six==1.11.0
108 SQLAlchemy==1.0.14
109 tornado==5.1.1
110 tox==3.0.0
111 typing==3.5.3.0
112 tzlocal==2.0.0
113 urllib3==1.23
114 virtualenv==16.0.0
115 visitor==0.1.3
116 waitress==1.1.0
117 webob==1.8.2
118 webtest==2.0.29
119 Werkzeug==0.11.10
120 whichcraft==0.5.2
121 wordcloud==1.5.0
122 WTForms==2.2.1
View Code

 

Python3

技术图片
 1 APScheduler==3.6.0
 2 arrow==0.15.4
 3 asn1crypto==0.24.0
 4 Babel==2.7.0
 5 backports.ssl-match-hostname==3.7.0.1
 6 bcrypt==3.1.6
 7 blinker==1.4
 8 certifi==2019.3.9
 9 cffi==1.12.3
10 chardet==3.0.4
11 Click==7.0
12 crcmod==1.7
13 cryptography==2.6.1
14 docker==3.7.2
15 docker-pycreds==0.4.0
16 Flask==1.0.2
17 Flask-Babel==0.12.2
18 Flask-Excel==0.0.7
19 Flask-Login==0.4.1
20 Flask-Mail==0.9.1
21 Flask-OAuthlib==0.9.5
22 Flask-Script==2.0.6
23 Flask-Session==0.3.1
24 Flask-SQLAlchemy==2.4.0
25 Flask-WTF==0.14.2
26 geoip2==2.9.0
27 gevent==1.4.0
28 greenlet==0.4.15
29 has==0.0.4
30 idna==2.8
31 ipaddress==1.0.22
32 itsdangerous==1.1.0
33 Jinja2==2.10.1
34 jmespath==0.9.4
35 lml==0.0.9
36 lxml==4.3.4
37 Markdown==2.6.11
38 MarkupSafe==1.1.1
39 maxminddb==1.4.1
40 oauthlib==2.1.0
41 olefile==0.46
42 packaging==19.0
43 paramiko==2.4.2
44 pip-review==1.0
45 pyasn1==0.4.5
46 pycparser==2.19
47 pyexcel==0.5.13
48 pyexcel-io==0.5.17
49 pyexcel-webio==0.1.4
50 PyMySQL==0.9.3
51 PyNaCl==1.3.0
52 pyparsing==2.4.0
53 pypiwin32==223
54 python-dateutil==2.8.1
55 pytz==2019.1
56 pywin32==224
57 requests==2.21.0
58 requests-oauthlib==1.1.0
59 robotframework==3.1.2
60 six==1.12.0
61 SQLAlchemy==1.3.6
62 texttable==1.6.1
63 tzlocal==1.5.1
64 urllib3==1.24.3
65 websocket-client==0.56.0
66 Werkzeug==0.15.2
67 WTForms==2.2.1
68 XMind==1.2.0
69 xmind2testcase==1.3.0
View Code

电脑重装后 python 2 3快速安装

标签:onclick   ssh   pyw   robot   gif   ram   lib   chardet   spl   

原文地址:https://www.cnblogs.com/whycai/p/12036819.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!