栏目分类:
子分类:
返回
名师互学网用户登录
快速导航关闭
当前搜索
当前分类
子分类
实用工具
热门搜索
名师互学网 > IT > 软件开发 > 后端开发 > Python

package快速下载链接及问题

Python 更新时间: 发布时间: IT归档 最新发布 模块sitemap 名妆网 法律咨询 聚返吧 英语巴士网 伯小乐 网商动力

package快速下载链接及问题

链接
  1. 清华源-linux-anconda-cudnn
  2. pytorch-linux
  3. Pytorch官网
  4. Pytorch离线包
Anaconda离线安装

离线下载好的包,复制到anaconda3的pkgs文件中

conda install --use-local ./anaconda3/pkgs/包名
问题
  1. anaconda报错:InvalidSpecError: Invalid spec: =2.7
# 删除~/.condarc文件下的某个源,下方这个
- http://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/conda-forge/
  1. conda 报错,是因为之前已经下了包,但是中断了,有缓存,需要重新清空缓存
报错如下:
...........
........
specified in the package manifest cannot be found.
执行如下命令:
conda clean --packages --tarballs
换源
  1. 修改anaconda的镜像源,即~/.condarc文件
channels:
  - http://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/pytorch/
  - http://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/menpo/
  - http://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/bioconda/
  - http://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/msys2/
  - http://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/
  - http://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/
  - defaults
show_channel_urls: true
ssl_verify: false
report_errors: false
  1. 修改pip源,即在~目录下创建一个.pip文件目录,在改目录下新建一个文件pip.conf,加入如下源,并保存后source pip.conf
[global]
index-url = https://pypi.tuna.tsinghua.edu.cn/simple
转载请注明:文章转载自 www.mshxw.com
本文地址:https://www.mshxw.com/it/461316.html
我们一直用心在做
关于我们 文章归档 网站地图 联系我们

版权所有 (c)2021-2022 MSHXW.COM

ICP备案号:晋ICP备2021003244-6号