远程服务器安装learn2learn

2024-01-08 20:52:22

1.找whl文件……

最终找到github的链接+官网的压缩包:

GitHub - learnables/learn2learn: A PyTorch Library for Meta-learning Research

learn2learn · PyPI

参考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

依旧是从PyPI · The Python Package IndexThe Python Package Index (PyPI) is a repository of software for the Python programming language.icon-default.png?t=N7T8https://pypi.org/

?上找到对应的whl文件:

Cython · PyPI

下载到本地,用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
?继续安装:

pytest-cov · PyPI

报错:

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')
好说 直接去

Links for coverage

找对应的轮子安装

报错:

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,可以了?

文章来源:https://blog.csdn.net/weixin_55703970/article/details/135433731
本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。