当前位置:网站首页>[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 !
边栏推荐
- Programming mode - table driven programming
- How to quickly check whether the opening area ratio of steel mesh conforms to ipc7525
- Two kinds of updates lost and Solutions
- Jerry's initiation of ear pairing, reconnection, and opening of discoverable and connectable cyclic functions [chapter]
- Cannot find module 'xxx' or its corresponding type declaration
- 【Azure微服务 Service Fabric 】如何转移Service Fabric集群中的种子节点(Seed Node)
- The latest Android interview collection, Android video extraction audio
- 新版代挂网站PHP源码+去除授权/支持燃鹅代抽
- 使用 BlocConsumer 同时构建响应式组件和监听状态
- How to realize the movement control of characters in horizontal game
猜你喜欢
![[azure microservice service fabric] start the performance monitor in the SF node and set the method of capturing the process](/img/80/11c2b539c217ecd6ba55668d3e71e9.png)
[azure microservice service fabric] start the performance monitor in the SF node and set the method of capturing the process

应用实践 | 数仓体系效率全面提升!同程数科基于 Apache Doris 的数据仓库建设

The function is really powerful!

【Azure微服务 Service Fabric 】因证书过期导致Service Fabric集群挂掉(升级无法完成,节点不可用)

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

How to realize the movement control of characters in horizontal game

新版代挂网站PHP源码+去除授权/支持燃鹅代抽

Matplotlib drawing interface settings
![Jerry's test box configuration channel [chapter]](/img/d4/fb67f5ee0fe413c22e4e5cd5037938.png)
Jerry's test box configuration channel [chapter]

UWA Q & a collection
随机推荐
Revit secondary development - get the project file path
Time standard library
[interview arrangement] 0211 game engine server
Record problems fgui tween animation will be inexplicably killed
Use blocconsumer to build responsive components and monitor status at the same time
Revit secondary development - link file collision detection
The latest Android interview collection, Android video extraction audio
Revit secondary development - project file to family file
UnicodeDecodeError: ‘gbk‘ codec can‘t decode byte 0xf9 in position 56: illegal multibyte sequence
Jerry's configuration of TWS cross pairing [article]
IP network active evaluation system -- x-vision
Typeorm automatically generates entity classes
OpenGL configure assimp
Record a garbled code during servlet learning
三元表达式、各生成式、匿名函数
Jerry's test box configuration channel [chapter]
MIT6.S081-Lab9 FS [2021Fall]
Record layoutrebuild Forcerebuildlayoutimmediate does not take effect
Reinforcement learning - learning notes 9 | multi step TD target
PKPM 2020软件安装包下载及安装教程