Copy a Python all environment to another environment

Source: Internet
Author: User

To export a list of version information for packages installed in this environment

Pip Freeze > Requirements.txt Networking, download the package from the list to the All-packet folder

[Email protected] ~]# pip download-d./all-packet-r requirements.txt
Collecting cx-oracle==6.3.1 (From-r requirements.txt (line 1))
Using Cached https://files.pythonhosted.org/packages/f9/b7/ Dbdfb56e75bbbaa39c535b38509e6a5915da03d3cff9507e15a0472de818/cx_oracle-6.3.1-cp27-cp27m-manylinux1_x86_64.whl
Saved./ALL-PACKET/CX_ORACLE-6.3.1-CP27-CP27M-MANYLINUX1_X86_64.WHL
Collecting demjson==2.2.4 (From-r requirements.txt (line 2))
Using Cached https://files.pythonhosted.org/packages/96/67/ 6db789e2533158963d4af689f961b644ddd9200615b8ce92d6cad695c65a/demjson-2.2.4.tar.gz
Saved./all-packet/demjson-2.2.4.tar.gz
Collecting elasticsearch==5.4.0 (From-r requirements.txt (line 3))
Downloading https://files.pythonhosted.org/packages/0e/f2/ 971F07F2C9BB3744103081619B8AF14FA4B366CF8BC57B80504A2CD5D36E/ELASTICSEARCH-5.4.0-PY2.PY3-NONE-ANY.WHL (58kB)
100% |████████████████████████████████| 61kB 57kb/s
Saved./ALL-PACKET/ELASTICSEARCH-5.4.0-PY2.PY3-NONE-ANY.WHL
Collecting mysql-python==1.2.5 (From-r requirements.txt (line 4))
Using Cached https://files.pythonhosted.org/packages/a5/e9/ 51b544da85a36a68debe7a7091f068d802fc515a3a202652828c73453cad/mysql-python-1.2.5.zip
Saved./all-packet/mysql-python-1.2.5.zip
Collecting numpy==1.14.3 (From-r requirements.txt (line 5))
Using Cached https://files.pythonhosted.org/packages/ea/7d/ 9f99896cc3f4834871619a36da2a833c71a2178a5bdadd4fff40c261c119/numpy-1.14.3-cp27-cp27m-manylinux1_x86_64.whl
Saved./ALL-PACKET/NUMPY-1.14.3-CP27-CP27M-MANYLINUX1_X86_64.WHL
Collecting pandas==0.23.0 (From-r requirements.txt (line 6))
Using Cached https://files.pythonhosted.org/packages/45/12/ 1e1ba99fb65df9f7f3724d3232feef35cc044d18604d57492d561e90219f/pandas-0.23.0.tar.gz
Saved./all-packet/pandas-0.23.0.tar.gz
Collecting progressbar==2.3 (From-r Requirements.txt (line 7))
Using Cached https://files.pythonhosted.org/packages/0f/e1/ F30b72ecabba259c7c38dd0eb944a173effced3fd7de2c9c2902bd6f649a/progressbar-2.3.tar.gz
Saved./all-packet/progressbar-2.3.tar.gz
Collecting python-dateutil==2.7.3 (From-r requirements.txt (line 8))
Using Cached https://files.pythonhosted.org/packages/cf/f5/ Af2b09c957ace60dcfac112b669c45c8c97e32f94aa8b56da4c6d1682825/python_dateutil-2.7.3-py2.py3-none-any.whl
Saved./ALL-PACKET/PYTHON_DATEUTIL-2.7.3-PY2.PY3-NONE-ANY.WHL
Collecting pytz==2018.4 (From-r requirements.txt (line 9))
Using Cached https://files.pythonhosted.org/packages/dc/83/ 15f7833b70d3e067ca91467ca245bae0f6fe56ddc7451aa0dc5606b120f2/pytz-2018.4-py2.py3-none-any.whl
Saved./ALL-PACKET/PYTZ-2018.4-PY2.PY3-NONE-ANY.WHL
Collecting six==1.11.0 (From-r requirements.txt (line 10))
Using Cached https://files.pythonhosted.org/packages/67/4b/ 141a581104b1f6397bfa78ac9d43d8ad29a7ca43ea90a2d863fe3056e86a/six-1.11.0-py2.py3-none-any.whl
Saved./ALL-PACKET/SIX-1.11.0-PY2.PY3-NONE-ANY.WHL
Collecting urllib3==1.23 (From-r requirements.txt (line 11))
Using Cached https://files.pythonhosted.org/packages/bd/c9/ 6fdd990019071a4a32a5e7cb78a1d92c53851ef4f56f62a3486e6a7d8ffb/urllib3-1.23-py2.py3-none-any.whl
Saved./ALL-PACKET/URLLIB3-1.23-PY2.PY3-NONE-ANY.WHL
Successfully downloaded cx-oracle demjson elasticsearch mysql-python numpy pandas ProgressBar python-dateutil pytz six URL Lib3

[[email protected] ~]# ls all-packet/
CX_ORACLE-6.3.1-CP27-CP27M-MANYLINUX1_X86_64.WHL progressbar-2.3.tar.gz
Demjson-2.2.4.tar.gz PYTHON_DATEUTIL-2.7.3-PY2.PY3-NONE-ANY.WHL
ELASTICSEARCH-5.4.0-PY2.PY3-NONE-ANY.WHL PYTZ-2018.4-PY2.PY3-NONE-ANY.WHL
Mysql-python-1.2.5.zip SIX-1.11.0-PY2.PY3-NONE-ANY.WHL
NUMPY-1.14.3-CP27-CP27M-MANYLINUX1_X86_64.WHL URLLIB3-1.23-PY2.PY3-NONE-ANY.WHL
Pandas-0.23.0.tar.gz
[Email protected] ~]#

Copy the downloaded package "All-packet folder" and List "requirements.txt" to other environments

Install all Environments

Pip Install--no-index--find-links=./all-packet-r requirements.txt

Copy a Python all environment to another environment

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.