python install learn2learn library || Online installation or local installation

1. Go to github to download the complete installation package (or Baidu Netdisk for this article)

Github connection https://github.com/learnables/learn2learn/tree/v0.1.7
Insert image description here
The latest version is 0.1.7.
Click to download
Insert image description here

Or Baidu disk link:
Link: https://pan.baidu.com/s/1PyT0VOC9bewuLErAOo9IgQ?pwd=45uc
Extraction code: 45uc

Unzip
Insert image description here

2. Install C++ dependent libraries

Install Microsoft C++ Build Tools directly without installing Visual Studio.
Open the link https://my.visualstudio.com/?auth_redirect=true
and then
Insert image description here


Insert image description here


Insert image description here


Insert image description here

We got the file mu_visual_cpp_build_tools_2015_update_3_x64_dvd_dfd9a39c.iso. After decompression, double-click VisualCppBuildTools_Full.exe to automatically install it.
Insert image description here
Then restart the computer

3 Local installation

Enter the virtual environment that needs to be installed
and then locate the file decompressed in the first step.
Insert image description here
Insert image description here

Execute here. pip install -e .This command will automatically locate the files in the current folder setup.pyfor local installation
. Be careful not to miss anything..

Insert image description here

If there is an error
"LINK: fatal error LNK1158: Unable to run "rc.exe"
Insert image description here

Then follow this article to solve the problem https://blog.csdn.net/qq_29969029/article/details/105879495
. Pay attention to adding the path C:\Program Files (x86)\Windows Kits\8.1\bin\x86to the system variable Path
Insert image description here
and click to confirm.

Finally pip install -e .
Insert image description here
succeeded again! ! !

4 Online installation (If you don’t want to install locally, look here!)

You can use to pip install learn2learnperform online installation (currently, the domestic conda image source does not have this dependency library, so use pip to install it). You may encounter errors during this process, so you can follow this tutorial to perform local installation to solve the problem.

Guess you like

Origin blog.csdn.net/qq_56039091/article/details/127873104
Recommended