当前位置:网站首页>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)
边栏推荐
- redis 持久化
- Understanding and use of C# on set() and get() methods
- 物理层的接口有哪几个方面的特性?各包含些什么内容?
- 02.01-----参数的引用的作用“ & ”
- Multi-threaded query results, add List collection
- LAB 信号量实现细节
- 【过一下7】全连接神经网络视频第一节的笔记
- After controlling the export file in MySQL, it becomes \N. Is there any solution?
- [cesium] element highlighting
- vscode+pytorch使用经验记录(个人记录+不定时更新)
猜你喜欢
随机推荐
entry point injection
Flutter learning 5-integration-packaging-publish
Difference between for..in and for..of
【cesium】加载并定位 3D Tileset
After controlling the export file in MySQL, it becomes \N. Is there any solution?
jvm 三 之堆与栈
第5讲 使用pytorch实现线性回归
【过一下10】sklearn使用记录
RL reinforcement learning summary (1)
Algorithms - ones and zeros (Kotlin)
Excel Paint
Flutter学习4-基本UI组件
The difference between span tag and p
软件设计 实验四 桥接模式实验
RDD和DataFrame和Dataset
「PHP8入门指南」PHP简明介绍
u-boot中的u-boot,dm-pre-reloc
【过一下 17】pytorch 改写 keras
Machine Learning (2) - Machine Learning Fundamentals
Qt制作18帧丘比特表白意中人、是你的丘比特嘛!!!






![coppercam primer [6]](/img/d3/a7d44aa19acfb18c5a8cacdc8176e9.png)

