当前位置:网站首页>[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 !
边栏推荐
- VTOL in Px4_ att_ Control source code analysis [supplement]
- Revit secondary development - wall opening
- Reinforcement learning - learning notes 9 | multi step TD target
- Reinforcement learning - learning notes 9 | multi step TD target
- DNS series (I): why does the updated DNS record not take effect?
- Customer case | China law network, through observing the cloud, greatly shortens the time of fault location
- Why can't win11 display seconds? How to solve the problem that win11 time does not display seconds?
- Build your own website (18)
- Revit secondary development - get the project file path
- OpenGL jobs - shaders
猜你喜欢

Add get disabled for RC form

Matplotlib quick start

How pyGame rotates pictures

Record a garbled code during servlet learning

【Azure微服务 Service Fabric 】如何转移Service Fabric集群中的种子节点(Seed Node)

如何实现横版游戏中角色的移动控制

Customer case | China law network, through observing the cloud, greatly shortens the time of fault location

Use blocconsumer to build responsive components and monitor status at the same time

IP network active evaluation system -- x-vision
![[JDBC Part 1] overview, get connection, CRUD](/img/53/d79f29f102c81c9b0b7b439c78603b.png)
[JDBC Part 1] overview, get connection, CRUD
随机推荐
[open source] Net ORM accessing Firebird database
Reinforcement learning - learning notes 9 | multi step TD target
OpenGL job - texture
Antd date component appears in English
【colmap】稀疏重建转为MVSNet格式输入
Ren Qian code compilation error modification
Welcome to CSDN markdown editor
Variables and constants
使用 CustomPaint 绘制基本图形
Embedded development: how to choose the right RTOS for the project?
UnicodeDecodeError: ‘gbk‘ codec can‘t decode byte 0xf9 in position 56: illegal multibyte sequence
双塔模型的最强出装,谷歌又开始玩起“老古董”了?
Cannot find module 'xxx' or its corresponding type declaration
Dayu200 experience officer MPPT photovoltaic power generation project dayu200, hi3861, Huawei cloud iotda
Revit secondary development - get the project file path
Which futures company is the safest to open a futures account?
Typescript TS basic knowledge type declaration
Aspose. Word operation word document (II)
谈谈制造企业如何制定敏捷的数字化转型策略
[开源] .Net ORM 访问 Firebird 数据库