远程服务器安装learn2learn

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

最终 安装成功了

1.先找师弟帮忙下载了包,这个命令可以下载这个包和所有的依赖包

pip download -d (save_path) (package)

2.把下载下来的东西解压缩为文件夹上传到服务器上,root账户登录,cd到文件夹的位置,然后……

pip install --no-index --find-links=./ learn2learn-0.2.0.tar.gz > output_l2l.log 2>&1

安装成功了哈哈哈哈哈哈哈哈

  • 25
    点赞
  • 18
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值