首页 > 其他分享 >Pytorch - Install

Pytorch - Install

时间:2024-09-28 09:23:00浏览次数:1  
标签:ZZHPC Github https zpytorch zd Pytorch Install zzh

https://pytorch.org/get-started/locally/

 

 

zzh@ZZHPC:~/zd/Github$ python -m venv zpytorch

zzh@ZZHPC:~/zd/Github$ cd zpytorch/
zzh@ZZHPC:~/zd/Github/zpytorch$ source bin/activate

(zpytorch) zzh@ZZHPC:~/zd/Github/zpytorch$ command -v python
/zdata/Github/zpytorch/bin/python
(zpytorch) zzh@ZZHPC:~/zd/Github/zpytorch$ command -v pip
/zdata/Github/zpytorch/bin/pip

(zpytorch) zzh@ZZHPC:~/zd/Github/zpytorch$ pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu124
Looking in indexes: https://download.pytorch.org/whl/cu124
Collecting torch
  Downloading https://download.pytorch.org/whl/cu124/torch-2.4.1%2Bcu124-cp312-cp312-linux_x86_64.whl (797.1 MB)
     ━━━━━━━━━━━━━━╺━━━━━━━━━━━━━━━━━━━━━━━━━ 282.0/797.1 MB 1.9 MB/s eta 0:04:34

 

标签:ZZHPC,Github,https,zpytorch,zd,Pytorch,Install,zzh
From: https://www.cnblogs.com/zhangzhihui/p/18436998

相关文章

  • 【赛博炼丹】深度学习软件安装及环境配置:Anaconda、CUDA、cuDNN、PyTorch及PyCharm
    前言建议大伙自己建一个文件夹(不能有中文),专门放深度学习的软件,后续添加环境,比较方便。1.安装Anaconda1.1下载AnacondaAnaconda官网:https://www.anaconda.com清华大学镜像网站:Indexof/anaconda/archive/|清华大学开源软件镜像站|TsinghuaOpenSourceMirror安装A......
  • Install cuDNN
    TheNVIDIACUDADeepNeuralNetworklibrary(cuDNN)isaGPU-acceleratedlibraryofprimitivesfordeepneuralnetworks.cuDNNprovideshighlytunedimplementationsforstandardroutinessuchasforwardandbackwardconvolution,attention,matmul,pooling......
  • pyinstaller打包exe,设置发布者,版权,产品名称等版本信息
    pyinstaller的安装和打exe相关,请看:python2打包exe以及一些运行出错的问题然后我们基本上使用pyinstaller-F-wtest.py就可以满足大部分的需求了,但是有的时候需要我们给exe添加版本信息,比如代码中如果有socket相关的,那么执行的时候电脑就会提示是否执行,并显示exe发布者等......
  • 关于Clion汉化失败Plugin “Chinese (Simplified) Language Pack / 中文语言包“ was
    关于Clion汉化失败出现Plugin"Chinese(Simplified)LanguagePack/中文语言包"wasnotinstalled:Invalidfilenamereturnedbyaserver意思是你安装的汉化包不可被识别,截止到23/7/22pluginsmarket搜索到的汉化包版本不再能兼容21版本的clion了解决方法有两个1.升......
  • Install Cuda Toolkit
     (base)zzh@ZZHPC:~$sudoubuntu-driversdevices==/sys/devices/pci0000:00/0000:00:1b.4/0000:02:00.0==modalias:pci:v000010DEd00001F07sv000010DEsd000012ADbc03sc00i00vendor:NVIDIACorporationmodel:TU106[GeForceRTX2070Rev.A]driver:......
  • Anaconda - Installation and Initialization
    InstallAnaconda:https://docs.anaconda.com/anaconda/install/linux/ CreateaCondavirtualenvironment: (base)zzh@ZZHPC:~/zd/Github$condacreate-nzpytorchanacondaChannels:-defaultsPlatform:linux-64Collectingpackagemetadata(repodata.json):d......
  • python使用pyinstaller打包exe的时候遇到:unknown encoding: idna
    python使用pyinstaller打包exe的时候遇到:unknownencoding:idna解决办法在程序开头加上importencodings.idna即可,如果idna没有安装,需要手动安装一下。#!/usr/bin/python#-*-coding:UTF-8-*-importencodings.idna......
  • 编译安装redis运行注册服务脚本sh install_server.sh时报错。
    在编译安装redis的时候,运行注册服务脚本shinstall_server.sh时,报错。WelcometotheredisserviceinstallerThisscriptwillhelpyoueasilysetuparunningredisserverThissystemsseemstousesystemd.Pleasetakealookattheprovidedexampleserviceunitfi......
  • Create a .pem File for TLS/SSL Certificate Installations
    .pemTLS/SSLCreationInstructionsSSL.pemfiles(concatenatedcertificatecontainerfiles),arefrequentlyrequiredforcertificateinstallationswhenmultiplecertificatesarebeingimportedasonefile.Thisarticlecontainsmultiplesetsofinstructi......
  • 安装PyTorch环境(CPU版)
    1、下载Anaconda官网,安装时需要勾选的选项见下图DownloadAnacondaDistribution|Anacondahttps://www.anaconda.com/download 2、创建虚拟环境2.1打开AnacondaPrompt在所有应用中找到Anaconda中的AnacondaPrompt,点击打开进入cmd面板2.2创建环境在cmd面板中,输入......