当前位置:网站首页>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)
边栏推荐
- Flutter learning 2-dart learning
- uva1325
- Cryptography Series: PEM and PKCS7, PKCS8, PKCS12
- How does the Flutter TapGestureRecognizer work
- 【过一下4】09-10_经典网络解析
- 人性的弱点
- Flutter学习2-dart学习
- After controlling the export file in MySQL, it becomes \N. Is there any solution?
- 判断语句_switch与case
- Error creating bean with name 'configDataContextRefresher' defined in class path resource
猜你喜欢
随机推荐
uboot enable debug printing information
Requests库部署与常用函数讲解
1.3 mysql批量插入数据
OFDM Lecture 16 5 -Discrete Convolution, ISI and ICI on DMT/OFDM Systems
Qt制作18帧丘比特表白意中人、是你的丘比特嘛!!!
Flutter real machine running and simulator running
2022 Hangzhou Electric Multi-School 1st Session 01
ESP32 485 Illuminance
span标签和p标签的区别
Dashboard Display | DataEase Look at China: Data Presents China's Capital Market
2023年信息与通信工程国际会议(JCICE 2023)
LAB 信号量实现细节
A blog clears the Redis technology stack
Returned object not currently part of this pool
pycharm中调用Matlab配置:No module named ‘matlab.engine‘; ‘matlab‘ is not a package
UVA10827
淘宝账号如何快速提升到更高等级
Understanding and use of C# on set() and get() methods
【解码工具】Bitcoin的一些在线工具
Requests the library deployment and common function