ModuleNotFoundError: No module named 'yaml'

ModuleNotFoundError: No module named 'yaml'

import yaml
ModuleNotFoundError: No module named 'yaml'

 

pip install pyyaml

wind_torch_2022) bim@bim-PowerEdge-R730:~/Pytorch_Project/yolov5_train_hat$ 
(wind_torch_2022) bim@bim-PowerEdge-R730:~/Pytorch_Project/yolov5_train_hat$ pip install pyyaml
Collecting pyyaml
  Using cached PyYAML-6.0-cp37-cp37m-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl (596 kB)
Installing collected packages: pyyaml
Successfully installed pyyaml-6.0
(wind_torch_2022) bim@bim-PowerEdge-R730:~/Pytorch_Project/yolov5_train_hat$ 
(wind_torch_2022) bim@bim-PowerEdge-R730:~/Pytorch_Project/yolov5_train_hat$ 

 

 

####################

posted @ 2022-05-18 15:42  西北逍遥  阅读(1944)  评论(0编辑  收藏  举报