Export and import the Python environment installation package with the PIP command

Source: Internet
Author: User
after we have developed the code, we generally need to export the dependent package, and then migrate to other systems to install, to ensure that the environment is normal Export the Python environment installation package
[Email protected] ~]# pip freeze > Packages.txt
This will create a packages.txt file that contains a simple list of all packages and their respective versions in the current environment (that is, the list of packages listed by the PIP list)
Install the Import Python environment pack
[[Email protected] ~]# pip install-r packages.txt Scenario: After developing an automated test framework, the framework needs to be ported to another system to run, but many of the dependencies are installed on their own, in order to solve the environmental problems, We will rely on the package export and then automatically install these dependencies through the program runtime to ensure that the environment is healthy

Export and import the Python environment installation package with the PIP command

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.