当前位置:网站首页>[problem] pytorch installation
[problem] pytorch installation
2022-07-07 22:27:00 【Eva215665】
install pytorch after , Error in importing module
import torch
import torchvision
the repository located at download.pytorch.org is not a trusted or secure host and is being ignored. If this repository is available via HTTPS we recommend you use HTTPS instead, otherwise you may silence this warning and allow it anyway with ‘–trusted-host download.pytorch.org’
Solution :
Go to pytorch Official website : https://pytorch.org/get-started/locally/
Choose your own environment , Here's the picture

The official website automatically gives the installation order :
pip install torch==1.6.0+cu101 torchvision==0.7.0+cu101 -f http://download.pytorch.org/whl/torch_stable.html
- stay anaconda prompt After executing the command in , Report errors :The repository located at pypi.doubanio.com is not a trusted or secure host and is being ignored. Pictured

- So a lot of it is http Source , If used directly http That would make a mistake , Then what shall I do? ? After reading the above prompt, I will http Change it to https try
pip install torch==1.6.0+cu101 torchvision==0.7.0+cu101 -f https://download.pytorch.org/whl/torch_stable.html
Problem solving !
边栏推荐
- Record layoutrebuild Forcerebuildlayoutimmediate does not take effect
- Matplotlib drawing interface settings
- How to choose the appropriate automated testing tools?
- ByteDance Android interview, summary of knowledge points + analysis of interview questions
- . Net automapper use
- 强化学习-学习笔记9 | Multi-Step-TD-Target
- Jerry's configuration of TWS cross pairing [article]
- 如何选择合适的自动化测试工具?
- Revit secondary development - modify wall thickness
- [azure microservice service fabric] how to transfer seed nodes in the service fabric cluster
猜你喜欢

How does win11 unblock the keyboard? Method of unlocking keyboard in win11

Kirin Xin'an operating system derivative solution | storage multipath management system, effectively improving the reliability of data transmission
Latest Android advanced interview questions summary, Android interview questions and answers

operator

Anti climbing killer

【Azure微服务 Service Fabric 】在SF节点中开启Performance Monitor及设置抓取进程的方式

Paint basic graphics with custompaint
![Jerry's manual matching method [chapter]](/img/92/74281c29565581ecb761230fbfd0f3.png)
Jerry's manual matching method [chapter]

Application practice | the efficiency of the data warehouse system has been comprehensively improved! Data warehouse construction based on Apache Doris in Tongcheng digital Department

海外代理推荐
随机推荐
How to write an augmented matrix into TXT file
php 记录完整对接腾讯云直播以及im直播群聊 所遇到的坑
SAR影像质量评估
Application practice | the efficiency of the data warehouse system has been comprehensively improved! Data warehouse construction based on Apache Doris in Tongcheng digital Department
[azure microservice service fabric] start the performance monitor in the SF node and set the method of capturing the process
OpenGL job - texture
Paint basic graphics with custompaint
新版代挂网站PHP源码+去除授权/支持燃鹅代抽
Dbsync adds support for mongodb and ES
Pdf document signature Guide
强化学习-学习笔记9 | Multi-Step-TD-Target
Use json Stringify() to realize deep copy, be careful, there may be a huge hole
Record problems fgui tween animation will be inexplicably killed
Add get disabled for RC form
Ueeditor custom display insert code
Leetcode SQL first day
Matplotlib quick start
How to close eslint related rules
Vs custom template - take the custom class template as an example
Antd date component appears in English