admin管理员组

文章数量:1666616

安装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

 

本文标签: AnacondaPromote