1.找whl文件……
最终找到github的链接+官网的压缩包:
GitHub - learnables/learn2learn: A PyTorch Library for Meta-learning Research
参考Python 安装元学习研究库learn2learn - 知乎
上载到服务器下用命令
python setup.py install > output_learn2learn.log 2>&1
?发现报错:
ERROR: Could not find a version that satisfies the requirement cython>=0.28.5 (from versions: none)
ERROR: No matching distribution found for cython>=0.28.5
2.安装cython
然后去下载安装cython
?上找到对应的whl文件:
下载到本地,用root账号传到/public/software/anaconda/envs/ff/lib/python3.9/site-packages?
然后conda activate pytorch39112_zwr,输入以下命令:
pip install /root/public/software/anaconda/envs/ff/lib/python3.9/site-packages/Cython-3.0.7-py2.py3-none-any.whl
?emmmm应该不会有大问题把
3.安装python3-dev:
发现报错:
致命错误:Python.h:没有那个文件或目录
?#include "Python.h"
【已解决】致命错误:Python.h:没有那个文件或目录_致命错误:python.h:没有那个文件或目录-CSDN博客
按照要求去找了文件:python-dev-tools · PyPI
然后安装
pip install /public/software/anaconda/envs/ff/lib/python3.9/site-packages/python_dev_tools-2023.3.24-py3-none-any.whl
然后继续报错:
ERROR: Could not find a version that satisfies the requirement pytest-cov<5,>=4 (from python-dev-tools) (from versions: none)
ERROR: No matching distribution found for pytest-cov<5,>=4
?继续安装:
报错:
Installed /public/software/anaconda/envs/pytorch39112_zwr/lib/python3.9/site-packages/pytest_cov-4.1.0-py3.9.egg
Processing dependencies for pytest-cov==4.1.0
Searching for coverage[toml]>=5.2.1
Reading https://pypi.org/simple/coverage/
Download error on https://pypi.org/simple/coverage/: timed out -- Some packages may not be found!
Couldn't find index page for 'coverage' (maybe misspelled?)
Scanning index of all packages (this may take a while)
Reading https://pypi.org/simple/
Download error on https://pypi.org/simple/: timed out -- Some packages may not be found!
No local packages or working download links found for coverage[toml]>=5.2.1
error: Could not find suitable distribution for Requirement.parse('coverage[toml]>=5.2.1')
好说 直接去
找对应的轮子安装
报错:
ERROR: Could not find a version that satisfies the requirement flake8-mutable<2,>=1 (from python-dev-tools) (from versions: none)
ERROR: No matching distribution found for flake8-mutable<2,>=1
找对应tar.gz:flake8-mutable · PyPI
卡死在了flake8,直接魔改github上原始数据集获得了一个阉割版l2l,可以了?