当前位置:网站首页>联邦学习的框架搭建
联邦学习的框架搭建
2022-08-01 22:07:00 【爽爽不会编程】
我先是搭建了anaconda,这个安装其实不难,主要是在设置环境变量和系统变量 需要比较小心。需要将你安装的路径一一的粘贴到环境变量里面。anaconda的下载地址如下:
https://github.com/FederatedAI/Practicing-Federated-Learning
由于我的电脑适配器不支持CUDA,所以我只能安装pytorch CPU版的进行深度计算。但是他相比于CUDA而言,速度是较慢的,以后换电脑的时候还得注意。
其中,我主要遇到了以下一些问题:
pytorch CPU版的安装,首先要在anaconda prompt 中创建一个虚拟环境:
创建:conda create -n pytorch_cpu=【pytorch版本号】
激活:conda activate pytorch_cpu
退出:conda deactivate pytorch_cpu
删除:conda remove pytorch_cpu
但是要注意,一定是在本盘内,如果将pytorch安装在其他盘,需要用cd..指令来切换盘。
在安装pytorch时,我参考了这篇博客:(5条消息) pytorch无坑超详细图文CPU版小白安装教程(配gpu版链接、conda命令教程)_识久的博客-CSDN博客_cpu安装pytorch
在官网上下载自己想要的安装包,要下载两个:1.6.0版本的torch与0.7.0版本的torchvision,在anaconda prompt命令框写入:
pip install "torch-1.6.0+cpu-cp36-cp36m-win_amd64.whl"回车
pip install "torchvision-0.7.0+cpu-cp36-cp36m-win_amd64.whl"回车
如果安装出现下列错误:WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None))

可能是pip的版本过高,可输入:python -m pip install pip==【低版本号】,将pip还原成低版本,再进行以上安装指令。
安装完毕后,输入pip list检查是否安装成功。

出现安装的torch与torchvision和对应的版本号,说明安装成功。
边栏推荐
- 小程序毕设作品之微信体育馆预约小程序毕业设计成品(1)开发概要
- VGUgarbage collector(垃圾回收器)的实现原理
- 【C语言实现】最大公约数的3种求法
- 365天挑战LeetCode1000题——Day 046 生成每种字符都是奇数个的字符串 + 两数相加 + 有效的括号
- Centos7--MySQL的安装
- 2022 版 MySQL 巅峰教程,收藏好,慢慢看
- Uses of Anacoda
- Yizhou Financial Analysis | The intelligent transformation of bank ATM machines is accelerated; the new Internet loan regulations bring challenges
- 数据分析面试手册《指标篇》
- Port protocol for WEB penetration
猜你喜欢

Advanced Algebra_Proof_The algebraic multiplicity of any eigenvalue of a matrix is greater than or equal to its geometric multiplicity

shell programming conventions and variables

FusionGAN:A generative adversarial network for infrared and visible image fusion article study notes

小程序毕设作品之微信体育馆预约小程序毕业设计成品(1)开发概要

feel so stupid

求解多元多次方程解的个数

SOM Network 1: Principles Explained

_ _ determinant of a matrix is higher algebra eigenvalue of the product, the characteristic value of matrix trace is combined

shell specification and variables

The must-have "fishing artifact" for programmers is here!
随机推荐
Dichotomy Medium LeetCode6133. Maximum Number of Groups
C语言必杀技3行代码把运行速度提升4倍
【ASM】字节码操作 MethodWriter
使用分类权重解决数据不平衡的问题
Recycling rental system 100% open source without encryption Mall + recycling + rental
SOM Network 1: Principles Explained
高等代数_证明_矩阵的任意特征值的代数重数大于等于其几何重数
【牛客刷题-SQL大厂面试真题】NO4.出行场景(某滴打车)
求解多元多次方程解的个数
User Experience | How to Measure User Experience?
Delicious this year
找工作必备!如何让面试官对你刮目相看,建议收藏尝试!!
seaborn笔记:可视化统计关系(散点图、折线图)
scikit-learn no moudule named six
Lecture 3: Several common table field data types in MySQL database
[ASM] Bytecode Operation MethodWriter
Analysis of the development trend of game metaverse
Image fusion GANMcC study notes
Port protocol for WEB penetration
Upload markdown documents to blog garden