当前位置:网站首页>[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 !
边栏推荐
- Failed to initialize rosdep after installing ROS
- Where is the big data open source project, one-stop fully automated full life cycle operation and maintenance steward Chengying (background)?
- IP网络主动测评系统——X-Vision
- Interview question 01.02 Determine whether it is character rearrangement - auxiliary array algorithm
- Revit secondary development - intercept project error / warning pop-up
- 使用 BlocConsumer 同时构建响应式组件和监听状态
- Kaggle-Titanic
- Customer case | China law network, through observing the cloud, greatly shortens the time of fault location
- [azure microservice service fabric] how to transfer seed nodes in the service fabric cluster
- Tsconfig of typescript TS basics JSON configuration options
猜你喜欢
【Azure微服务 Service Fabric 】如何转移Service Fabric集群中的种子节点(Seed Node)
海外代理推荐
如何选择合适的自动化测试工具?
Antd date component appears in English
UnicodeDecodeError: ‘gbk‘ codec can‘t decode byte 0xf9 in position 56: illegal multibyte sequence
Node:504 error reporting
PDF文档签名指南
How does win11 unblock the keyboard? Method of unlocking keyboard in win11
Implementation method of data platform landing
Matplotlib drawing interface settings
随机推荐
Revit secondary development - get the thickness / length / height of the beam
Revit secondary development - operation family documents
How to judge whether the input content is "number"
强化学习-学习笔记9 | Multi-Step-TD-Target
Matplotlib quick start
Px4 autonomous flight
如何选择合适的自动化测试工具?
Get the exact offset of the element
Vs custom template - take the custom class template as an example
变量与常量
How pyGame rotates pictures
Which futures company is the safest to open a futures account?
Welcome to CSDN markdown editor
戴森官方直营店免费造型服务现已开放预约 先锋科技诠释护发造型理念,助力消费者解锁多元闪耀造型
Antd date component appears in English
What if the win11u disk does not display? Solution to failure of win11 plug-in USB flash disk
Node:504 error reporting
ByteDance senior engineer interview, easy to get started, fluent
Kaggle-Titanic
Aspose. Words merge cells