当前位置:网站首页>联邦学习的框架搭建
联邦学习的框架搭建
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和对应的版本号,说明安装成功。
边栏推荐
- 你居然不懂Bitmap和Drawable? 相关知识大扫盲
- Postman 批量测试接口详细教程
- 游戏元宇宙发展趋势展望分析
- familiar friend
- [ASM] Bytecode Operation MethodWriter
- 【建议收藏】ヾ(^▽^*)))全网最全输入输出格式符整理
- 第一讲 测试知多少
- Port protocol for WEB penetration
- shell specification and variables
- 19 Lectures on Disassembly of Multi-merchant Mall System Functions - Invoice Management on the Platform
猜你喜欢

教你VSCode如何快速对齐代码、格式化代码

Chapter 12, target recognition of digital image processing

Recycling rental system 100% open source without encryption Mall + recycling + rental

ModuleNotFoundError: No module named 'yaml'

2022 edition of MySQL tutorial, top collection good, take your time

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

Prufer序列

render-props and higher order components

feel so stupid

如何防范 DAO 中的治理攻击?
随机推荐
【建议收藏】ヾ(^▽^*)))全网最全输入输出格式符整理
render-props and higher order components
Based on php Xiangxi tourism website management system acquisition (php graduation design)
HCIP---Architecture of Enterprise Network
使用分类权重解决数据不平衡的问题
程序员必备的 “ 摸鱼神器 ” 来了 !
LeetCode952三部曲之一:解题思路和初级解法(137ms,超39%)
高等代数_证明_矩阵的行列式为特征值之积, 矩阵的迹为特征值之和
Kubernetes Scheduler全解析
网络水军第一课:手写自动弹幕
企业公众号文章写作方向:如何写出读者认可的优质内容
leetcode 204. Count Primes 计数质数 (Easy)
SOM Network 2: Implementation of the Code
Yizhou Financial Analysis | The intelligent transformation of bank ATM machines is accelerated; the new Internet loan regulations bring challenges
10 Practical Uses of NFTs (NFT System Development)
Scala practice questions + answers
Safe fifth after-school exercise
【C语言】猜数字小游戏
Based on php online examination management system acquisition (php graduation design)
Postman 批量测试接口详细教程