Python入门:Anaconda和Pycharm的安装和配置
Windows环境下Anaconda3安装配置pytorch详细步骤(踩坑汇总)
#设置清华镜像源
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/
conda config --set show_channel_urls yes
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/pytorch/
#安装anaconda3后更新所有库
conda update --all
#安装pytorch()
conda install pytorch torchvision cpuonly -c pytorch
- https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/pytorch/
- https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/
- https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/
python2中的unicode()函数在python3中会报错:NameError: name 'unicode' is not defined
#函数转换:unicode()到 str()为:
//python2:
unicode(nn,'utf-8')
//python3:
str(nn)