xlhxlh 发表于 2024-11-12 20:42

分享离线安装python即配置深度学习环境(bm机上)

本帖最后由 xlhxlh 于 2024-11-12 20:44 编辑

1. 查驱动nvidia-smi
2. 按照安装anoconda(base环境py3.8),cuda
视频:https://www.bilibili.com/video/BV1ov41137Z8/?buvid=XYE15CCEF2617F3D51EDA0199B5587F599D79&is_story_h5=false&mid=klEcVhZfdH0JRaMFgeS1cA%3D%3D&p=6&plat_id=168&share_from=ugc&share_medium=android&share_plat=android&share_session_id=42a5b925-f4f6-4650-b79d-4d0a8da54136&share_source=WEIXIN&share_tag=s_i&spmid=main.my-history-search-result.option-more.0×tamp=1701247365&unique_k=vm73OYt&up_id=308063017准备文件:链接:https://pan.baidu.com/s/1K06S6jPuB7dsAtNSNU3zVw 提取码:881bCSDN: https://mp.csdn.net/CDSN资源: https://download.csdn.net/download/weixin_49457347/24246413
3. 离线安装pytorch准备文件:1.网站:涉及到torch之类的安装包https://download.pytorch.org/whl/2. 或者pip download xxx(会下载tar,whl格式的安装包)http://www.kdocs.cn/api/v3/office/copy/b1dKWERRTWMxb2xxVjc2T1VNdnRjOTVjWnp3NHpPNHdBVDJtTFlrSFgwRm8wbGJDWTc5MmxId3Z5Ri9Fbzc4c040c3pnazBnQm1MamlrQ0VWMmtXRnFJRHBtMzZmRmFWY0diQkh5dlBZc1krcnZ3YmN3VE05cUtSYkRFSE9FOUZRUEplekQ2SnRmazVkQ3VQQTlGQWEvNlZJcVdaL0R2UFgwbExSbEZEcFJTeml1Sjh4Tk92bHdOeXRNdy8xMU5MaDdYRjlZaDYvZ0wyaWs0ZHhnUHVMMzNaVXhrTXRJTHA2KzhiSW9WNmJ4V3dXS0ZRNmlDNFkwdExMeEhsRC9adFVaNzZCZXBWRS80PQ==/attach/object/ae619daa65f7c7e0601d5c81e16eb4f63ea755a2?
安装1.查看文件格式pip debug
http://www.kdocs.cn/api/v3/office/copy/b1dKWERRTWMxb2xxVjc2T1VNdnRjOTVjWnp3NHpPNHdBVDJtTFlrSFgwRm8wbGJDWTc5MmxId3Z5Ri9Fbzc4c040c3pnazBnQm1MamlrQ0VWMmtXRnFJRHBtMzZmRmFWY0diQkh5dlBZc1krcnZ3YmN3VE05cUtSYkRFSE9FOUZRUEplekQ2SnRmazVkQ3VQQTlGQWEvNlZJcVdaL0R2UFgwbExSbEZEcFJTeml1Sjh4Tk92bHdOeXRNdy8xMU5MaDdYRjlZaDYvZ0wyaWs0ZHhnUHVMMzNaVXhrTXRJTHA2KzhiSW9WNmJ4V3dXS0ZRNmlDNFkwdExMeEhsRC9adFVaNzZCZXBWRS80PQ==/attach/object/bb0a763099b2cab29e75bc99dd30fac3507ad659?
3. pip install 详细地址4. pip install -r requirement.txt(在 requirement.txt所在环境安装)
4. 安装新版本win11+RTX 4070Ti+CUDA12.1+cuDNN12.x+pytorch2.1 环境配置(图文教程)_win11 cuda121安装-CSDN博客
5. 多脚本运行
http://www.kdocs.cn/api/v3/office/copy/b1dKWERRTWMxb2xxVjc2T1VNdnRjOTVjWnp3NHpPNHdBVDJtTFlrSFgwRm8wbGJDWTc5MmxId3Z5Ri9Fbzc4c040c3pnazBnQm1MamlrQ0VWMmtXRnFJRHBtMzZmRmFWY0diQkh5dlBZc1krcnZ3YmN3VE05cUtSYkRFSE9FOUZRUEplekQ2SnRmazVkQ3VQQTlGQWEvNlZJcVdaL0R2UFgwbExSbEZEcFJTeml1Sjh4Tk92bHdOeXRNdy8xMU5MaDdYRjlZaDYvZ0wyaWs0ZHhnUHVMMzNaVXhrTXRJTHA2KzhiSW9WNmJ4V3dXS0ZRNmlDNFkwdExMeEhsRC9adFVaNzZCZXBWRS80PQ==/attach/object/5ebc440a87a92aa4b8c67c156780a9d53dbd754d?
watch -n 5 nvidia-smi 间隔5s看一次显卡nvitop(dongtaixianshi )

kenkenss 发表于 2024-11-13 08:42

有试过的朋友吗

月清晖 发表于 2024-11-13 08:50

回车、编码、安装库等等问题,对比linux系统,还不如装个虚拟机(自己用的centos)来的实在,会少一堆麻烦,纯属浪费时间的麻烦。个人总结下来, py就不适合在win上跑,除非你想把宝贵的生命浪费在本可以不需要解决的bug上纯属个人看法,不喜勿喷

xlhxlh 发表于 2024-11-14 17:22

这个仅仅是在离线的电脑比如有保密要求的去下载然后把文件导进去,如果是自己装的话我觉得按上面视频链接已经很全面了
页: [1]
查看完整版本: 分享离线安装python即配置深度学习环境(bm机上)