-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsearch.xml
33 lines (15 loc) · 5.24 KB
/
search.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
<?xml version="1.0" encoding="utf-8"?>
<search>
<entry>
<title></title>
<link href="2020/12/20/%E4%BD%BF%E7%94%A8Anaconda%E5%9C%A8%E6%9C%AC%E5%9C%B0%E6%96%B9%E5%BC%8F%E4%B8%8B%E8%BD%BD%E5%AE%89%E8%A3%85Pytorch/"/>
<url>2020/12/20/%E4%BD%BF%E7%94%A8Anaconda%E5%9C%A8%E6%9C%AC%E5%9C%B0%E6%96%B9%E5%BC%8F%E4%B8%8B%E8%BD%BD%E5%AE%89%E8%A3%85Pytorch/</url>
<content type="html"><![CDATA[<h1 id="使用Anaconda在本地方式下载安装Pytorch"><a href="#使用Anaconda在本地方式下载安装Pytorch" class="headerlink" title="使用Anaconda在本地方式下载安装Pytorch"></a>使用Anaconda在本地方式下载安装Pytorch</h1><h6 id=""><a href="#" class="headerlink" title=""></a></h6><h2 id="打开Anaconda,创建对应环境"><a href="#打开Anaconda,创建对应环境" class="headerlink" title="打开Anaconda,创建对应环境"></a>打开Anaconda,创建对应环境</h2><h2 id="-1"><a href="#-1" class="headerlink" title=""></a><img src=".%5CPictures%5C%E4%BD%BF%E7%94%A8Anaconda%E5%9C%A8%E6%9C%AC%E5%9C%B0%E6%96%B9%E5%BC%8F%E4%B8%8B%E8%BD%BD%E5%AE%89%E8%A3%85Pytorch%5C1.png"></h2><p>选择你的Python版本,这里我选择的是Python3.8。环境名字自己命名(因为我已经安装了Pytorch1.7.1所以换了个名字,改为170)</p><p><img src="C:\Users\11010\Pictures\Blog\2.png"></p><p>然后,打开Anaconda Prompt。激活环境:activate pytorch171</p><p><img src="C:\Users\11010\Pictures\Blog\3.png"></p><h2 id="安装Pytorch"><a href="#安装Pytorch" class="headerlink" title="安装Pytorch"></a>安装Pytorch</h2><p>在网上下载相关的包,这里我推荐清华镜像源,下载与Python版本对应的Pytorch和torchvision文件。</p><p>清华镜像源网址:</p><p><a href="https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/pytorch/">https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/pytorch/</a></p><p>在这里选择Python版本相应的文件(注意!这里说的Python版本是指Anaconda中自动安装的python的版本,所以你要去Anaconda Prompt里面输入python –version来查看Python版本。我的Python是3.8版本的,所以下的两个文件都是带-py3.8的。)</p><p>文件名称中带“cuda”的都是需要使用gpu的,所以如果下载这种文件那你还要去查看自己的gpu版本,我下载的是 pytorch-1.7.1-py3.8_cuda110_cudnn8_0.tar.bz2 和 torchvision-0.8.2-py38_cu110.tar.bz2。</p><p>下载好以后,在Anaconda Prompt(注意!是在已激活的Pytorch171下),依次输入命令 conda install D:\pytorch-1.7.1-py3.8_cuda110_cudnn8_0.tar.bz2 和 conda install D:\torchvision-0.8.2-py38_cu110.tar.bz2(pytorch-1.7.1-py3.8_cuda110_cudnn8_0.tar.bz2 是我的文件路径.,路径不可带空格。)</p><p>安装完成后,验证即可</p><p><img src="C:\Users\11010\Pictures\Blog\4.png"></p>]]></content>
</entry>
<entry>
<title>Hello World</title>
<link href="2020/10/16/hello-world/"/>
<url>2020/10/16/hello-world/</url>
<content type="html"><![CDATA[<p>Welcome to <a href="https://hexo.io/">Hexo</a>! This is your very first post. Check <a href="https://hexo.io/docs/">documentation</a> for more info. If you get any problems when using Hexo, you can find the answer in <a href="https://hexo.io/docs/troubleshooting.html">troubleshooting</a> or you can ask me on <a href="https://github.com/hexojs/hexo/issues">GitHub</a>.</p><h2 id="Quick-Start"><a href="#Quick-Start" class="headerlink" title="Quick Start"></a>Quick Start</h2><h3 id="Create-a-new-post"><a href="#Create-a-new-post" class="headerlink" title="Create a new post"></a>Create a new post</h3><figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">$ hexo new <span class="string">"My New Post"</span></span><br></pre></td></tr></table></figure><p>More info: <a href="https://hexo.io/docs/writing.html">Writing</a></p><h3 id="Run-server"><a href="#Run-server" class="headerlink" title="Run server"></a>Run server</h3><figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">$ hexo server</span><br></pre></td></tr></table></figure><p>More info: <a href="https://hexo.io/docs/server.html">Server</a></p><h3 id="Generate-static-files"><a href="#Generate-static-files" class="headerlink" title="Generate static files"></a>Generate static files</h3><figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">$ hexo generate</span><br></pre></td></tr></table></figure><p>More info: <a href="https://hexo.io/docs/generating.html">Generating</a></p><h3 id="Deploy-to-remote-sites"><a href="#Deploy-to-remote-sites" class="headerlink" title="Deploy to remote sites"></a>Deploy to remote sites</h3><figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">$ hexo deploy</span><br></pre></td></tr></table></figure><p>More info: <a href="https://hexo.io/docs/one-command-deployment.html">Deployment</a></p>]]></content>
</entry>
</search>