Package guide pip

Original link: https://www.cnblogs.com/ibgo/p/11441942.html

Python virtual environment export package installation method to another computer
1, the output of the virtual environment installed package name and version number and recorded in the requirements.txt file:
PIP Freeze> requirements.txt
save 2, the package will be installed to folder (name any of the cases, such as packages) in:
PIP download packages -d -r requirements.txt
3, another computer in the New virtual environment:
Python -m Venv MyApp
4, copy requirements.txt and packages to a virtual environment , the virtual environment is activated after the installation package:
(the MyApp) yyy> PIP---find the install --no-index = packages links -R & lt requirements.txt

Guess you like

Origin blog.csdn.net/weixin_43695063/article/details/100557763
Recommended