当前位置:网站首页>vscode+pytorch use experience record (personal record + irregular update)
vscode+pytorch use experience record (personal record + irregular update)
2022-08-05 05:23:00 【Daoist brother】
1. Anaconda installation
I am learning the pytouch teaching of the small mound, so the anaconda installation is based on the master up. Students who need it can search "I am a mound" on their own B station to learn, he is pycharm+pytouch, so follow menot quite the same
python comes with anaconda, so we can call it directly without downloading it
I used python3.1 on my computer, I deleted it first to prevent the impact of anaconda installation
Find this and open it, and click on uninstall.
2.vscode+pytouch environment parameter configuration
①One is expansion, see the picture below
②Environment selection
③Add environment variables (I don't know if it's necessary, I still got it)
Follow your anaconda installation path, refer to mine
Remember to select Create and then browse, otherwise it will be replaced by others!!!
3. Try some source code found on the Internet
The code I ran also came from a small mound, and his class helped me get started quickly!!
Question:
At runtime, I get ModuleNotFoundError: No module named 'tensorboard'
In fact, there is a lack of tensorboard tools, just go to anaconda to download it
I use the Tsinghua mirror source, otherwise it will be slow to death
Open the anaconda prompt and enter the command
pip install tensorboard-i https://pypi.tuna.tsinghua.edu.cn/simple/
Wait for the installation, if prompted to update pip, follow his instructions to enter, and then re-enter the above installation instructions
In the end, please attach the domestic mirror source by the way. In fact, there are many online, so don't look for it.
①Domestic mirror image:
Alibaba Cloud http://mirrors.aliyun.com/pypi/simple/
Douban (douban) http://pypi.douban.com/simple/
Tsinghua University https://pypi.tuna.tsinghua.edu.cn/simple/
University of Science and Technology of China http://pypi.mirrors.ustc.edu.cn/simple/
②Change source command
Temporary: pip command + -i + mirror address.For example pip install numpy -i https://mirrors.aliyun.com/pypi/simple/
4. Install opencv
I am looking for some face recognition examples that need to use opencv, so I also tried the following tutorials, and the pro test is effective!
Open the anaconda prompt directly, first enter the pytorch environment, then cd into the site-packages of the installation directory, refer to my
Then enter pip3 install opencv-python to install it (if the python version you installed is 2.x, remove 3)
Test it out:
Enter python, then import cv2, no error is reported
(I am an electronics student to learn machine learning neural network. I recommend the courses Mr. Wu Enda and Mr. Li Hongyi. There are corresponding courses at station b, and then pytouch can learn small mounds. I hope everyone can learn something, so do IRecently changed direction, need to use, Xiaobai learned it)
边栏推荐
猜你喜欢
第二讲 Linear Model 线性模型
【练一下1】糖尿病遗传风险检测挑战赛 【讯飞开放平台】
[cesium] element highlighting
Basic properties of binary tree + oj problem analysis
pycharm中调用Matlab配置:No module named ‘matlab.engine‘; ‘matlab‘ is not a package
将照片形式的纸质公章转化为电子公章(不需要下载ps)
The difference between span tag and p
"Recursion" recursion concept and typical examples
Multi-threaded query results, add List collection
第5讲 使用pytorch实现线性回归
随机推荐
『递归』递归概念与典型实例
u-boot中的u-boot,dm-pre-reloc
Flutter learning - the beginning
redis 持久化
开发一套高容错分布式系统
"PHP8 Beginner's Guide" A brief introduction to PHP
MySQL基础(一)---基础认知及操作
Redis - 13. Development Specifications
Dephi逆向工具Dede导出函数名MAP导入到IDA中
【过一下 17】pytorch 改写 keras
pycharm中调用Matlab配置:No module named ‘matlab.engine‘; ‘matlab‘ is not a package
Opencv中,imag=cv2.cvtColor(imag,cv2.COLOR_BGR2GRAY) 报错:error:!_src.empty() in function ‘cv::cvtColor‘
Flutter学习5-集成-打包-发布
物理层的接口有哪几个方面的特性?各包含些什么内容?
「PHP8入门指南」PHP简明介绍
The role of DataContext in WPF
【Transfer】What is etcd
LAB 信号量实现细节
【过一下12】整整一星期没记录
Structured light 3D reconstruction (1) Striped structured light 3D reconstruction