Anaconda 与Pytorch 使用
深度学习学习教程
动手学深度学习https://zh.d2l.ai/index.html
下载jupyter notebook,解压,可以在网页作为编辑器执行与修改笔记
pip install notebook
进入笔记目录命令行运行
jupyter notebook
学习pytorch
anaconda
教程
安装opencv
https://www.cnblogs.com/jisongxie/p/10248550.html
pip install opencv-python
安装open3D和opencv
创建环境
https://www.jianshu.com/p/ee08ca2c1160
建立Pytorch Anaconda虚拟环境
conda create –name deeplearning python=3.6 anaconda
- 其中加入最后一项anaconda命令建立虚拟环境时,会同时安装例如Notebook、Numpy、Scipy、Matplotlib、Pandas等数据分析包,用户也可以不加,选择后续安装。
启动Pytorch Anaconda虚拟环境
1 | activate pytorch deeplearning |
安装Pytorch
指令参考:https://pytorch.org/
1 |
|
测试:
1 | import torch |
命令集
1 | 1. conda --version #检查Anaconda的版本 |
遇到的问题
1. Conda cannot proceed due to an error in your proxy configuration.
conda search numpy
ProxyError: Conda cannot proceed due to an error in your proxy configuration.
Check for typos and other configuration errors in any ‘.netrc’ file in your home directory,
any environment variables ending in ‘_PROXY’, and any other system-wide proxy
configuration settings.
启动代理然后关闭代理解决了。
2.Solving environment: failed with initial frozen solve. Retrying with flexible solve
https://www.freesion.com/article/9578434495/