windows下pytorch与conda的新手安装

一切建议在虚拟环境下完成

安装anaconda 或者 miniconda

建议安装位置不要权限太高,用起来不太方便。

安装后打开it's anaconda prompt,使用
conda create --name xxx python=3.x
创建新虚拟环境

run
python -m pip install --upgrade pip
to prepare

run
conda activate xxx
go to virtual environment.

download pytorch

use browser open "pytorch.org" to get download pip commend just call it commend

go back to anaconda prompt 's virtual env

runcommend -i https://pypi.tuna.tsinghua.edu.cn/simpleto install torch

then you can run
python import torch
to make sure if it has been installed.

install jupyter

exit python

usepip install jupyter -i https://pypi.tuna.tsinghua.edu.cn/simple
to download and install.

you can see word successful and so on.

posted on 2025-03-25 09:25  includewhl  阅读(50)  评论(0)    收藏  举报