- 博客(7)
- 收藏
- 关注
原创 pytorch报错:torch没有‘_six‘属性、six没有‘string_classes‘属性
摘要:PyTorch版本兼容性问题常见于复现代码时,表现为module 'torch' has no attribute '_six和AttributeError: module 'six' has no attribute 'string_classes'错误。前者因新版PyTorch移除了torch._six模块,后者因新版six库移除string_classes属性,本文分别给出了它们的解决办法
2025-07-02 11:12:10
389
原创 出现报错:This application failed to start because no Qt platform plugin could be initialized.
使用matplotlib库绘图或是展示图像时,出现了这个报错:This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.
2025-04-11 10:16:29
677
1
原创 pip下载扩展包时报错 ValueError: check_hostname requires server_hostname
在pycharm中使用pip安装扩展包,若出现了报错:ValueError: check_hostname requires server_hostname。再返回pycharm,使用pip安装扩展包,成功。在设置->代理中,关闭**使用代理服务器**若上述方法仍不成功,可考虑更换镜像源。可能是没有关闭网络代理。
2025-02-20 10:47:05
424
空空如也
pycharm中指定pip的路径
2025-02-20
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅