anaconda promote

安装pytorch

创建环境

>>conda create -n pytorch python=3.6

>>activate pytorch

>>运行在官网选择的命令

查看是否安装成功

>>activate pytorch

>>pip list

>>python

>>import torch

(base) C:\Users\admin>activate pytorch

(pytorch) C:\Users\admin>pip list
DEPRECATION: The default format will switch to columns in the future. You can use --format=(legacy|columns) (or define a format=(legacy|columns) in your pip.conf under the [list] section) to disable this warning.
certifi (2016.2.28)
cffi (1.10.0)
mkl-fft (1.0.6)
mkl-random (1.0.1)
numpy (1.15.4)
olefile (0.44)
Pillow (4.2.1)
pip (9.0.1)
pycparser (2.18)
setuptools (36.4.0)
six (1.10.0)
torch (1.0.1)
torchvision (0.2.2)
wheel (0.29.0)
wincertstore (0.2)
You are using pip version 9.0.1, however version 19.0.3 is available.
You should consider upgrading via the 'python -m pip install --upgrade pip' command.

(pytorch) C:\Users\admin>python
Python 3.6.2 |Continuum Analytics, Inc.| (default, Jul 20 2017, 12:30:02) [MSC v.1900 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import torch
>>> ^Z

>>ctrl+z退出python

jupyternotebook没有办法切换pytorch环境

(pytorch) C:\Users\admin>conda install nb_conda

 

  • 0
    点赞
  • 3
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值