pip list
Execute the command in the Library folder we want to export :
pip ferrze >requirements.txt
If it appears :
WARNING: Ignoring invalid distribution -ip (e:\py\python3.7\python37\lib\site-packages)
translate : Warning : Ignore invalid distribution
Cause analysis : install package Half way interruption .
Solution : In the corresponding directory ( My directory is :E:\py\python3.7\Python37\Lib\site-packages) find ip Folder , As shown in the figure , Delete the following two folders .
Update before installing pip, In case some applications cannot be installed ;
python3 -m pip install --upgrade pip
Install libraries on the new environment :
# Normal download and installation
pip install -r requirements.txt
# Download and install Tsinghua source
pip install -r requirements.txt -i https://pypi.tuna.tsinghua.edu.cn/simple
# Download and install watercress
pip install -r requirements.txt -i https://pypi.douban.com/simple
Share :
Great self transcendence , It is to stand in the times and combine with people 、 We should judge the situation from the height of calling , In order to realize the value of life in the most ideal way , At the expense of personal preference and original intention , Create a new starting line for life , Explore new fields , Realize the rational sublation of the research premise and the main goal .