background:
After reinstalling the computer, python you have to follow the heavy equipment, the installation package, backup and other environmental variables installed directly after the installation is complete
Reloading ago
1. pip backup package, the command window
. 1 PIP Freeze> py2.txt # python2 package 2 PIP3 Freeze> py3.txt # to python3 package
2. Backup environment variables, command window
1 set >> D:\env.txt
After reloading
1. Install python2,3
2. python.exe copy a directory under python3, modified to python3.exe
3. The python path environment variables before reloading 2 environment variable added
1 C:\Python27; 2 C:\Python27\Scripts; 3 C:\Python27\Lib\site-packages; 4 C:\Python37; 5 C:\Python37\Scripts;
4. Install VCForPython27 package, not installed, then the fifth step will complain error: Microsoft Visual C ++ 9.0 is required
Address: http:? //Www.microsoft.com/en-us/download/confirmation.aspx id = 44266
Download and install directly
5. Installation Package
. 1 PIP -R & lt py2.txt the install # installation package python2 2 PIP -R & lt py3.txt the install # installation package python3
appendix:
Their common installation package
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== 2018.9 pytz 88 redis 2.10.5 == 89 redis-py-cluster 1.3.4 == 90 requests == 2.19 0.0 91 robotframework 3.0.4 == 92 robotframework-appiumlibrary 1.4.6 == 93 robotframework-archivelibrary; 0.4 = 0.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
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