Article directory
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
The latest version is 0.1.7.
Click to download
Or Baidu disk link:
Link: https://pan.baidu.com/s/1PyT0VOC9bewuLErAOo9IgQ?pwd=45uc
Extraction code: 45uc
Unzip
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
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.
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.
Execute here. pip install -e .
This command will automatically locate the files in the current folder setup.py
for local installation
. Be careful not to miss anything..
If there is an error
"LINK: fatal error LNK1158: Unable to run "rc.exe"
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\x86
to the system variable Path
and click to confirm.
Finally pip install -e .
succeeded again! ! !
4 Online installation (If you don’t want to install locally, look here!)
You can use to pip install learn2learn
perform 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.