当前位置:网站首页>[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 !
边栏推荐
- 反爬通杀神器
- Firefox browser installation impression notes clipping
- 使用 BlocConsumer 同时构建响应式组件和监听状态
- Matplotlib快速入门
- SAR影像质量评估
- OpenGL homework - Hello, triangle
- Application practice | the efficiency of the data warehouse system has been comprehensively improved! Data warehouse construction based on Apache Doris in Tongcheng digital Department
- Get the week start time and week end time of the current date
- IP network active evaluation system -- x-vision
- Record a garbled code during servlet learning
猜你喜欢
随机推荐
Programming mode - table driven programming
Jerry's test box configuration channel [chapter]
The difference between NPM uninstall and RM direct deletion
[interview arrangement] 0211 game engine server
SAR image quality evaluation
Matplotlib drawing interface settings
OpenGL homework - Hello, triangle
Build your own website (18)
vite Unrestricted file system access to
【Azure微服务 Service Fabric 】在SF节点中开启Performance Monitor及设置抓取进程的方式
如何选择合适的自动化测试工具?
双塔模型的最强出装,谷歌又开始玩起“老古董”了?
#DAYU200体验官#MPPT光伏发电项目 DAYU200、Hi3861、华为云IotDA
【Azure微服务 Service Fabric 】因证书过期导致Service Fabric集群挂掉(升级无法完成,节点不可用)
The function is really powerful!
Reinforcement learning - learning notes 9 | multi step TD target
Failed to initialize rosdep after installing ROS
Use json Stringify() to realize deep copy, be careful, there may be a huge hole
Ueeditor custom display insert code
Customer case | China law network, through observing the cloud, greatly shortens the time of fault location