当前位置:   article > 正文

ERROR: Could not find a version that satisfies the requirement PIL (from versions: none) ERROR: No

error: could not find a version that satisfies the requirement pillow (from

运行 PyTorch 代码时报错:

  ERROR: Could not find a version that satisfies the requirement PIL (from versions: none)
ERROR: No matching distribution found for PIL
  • 1
  • 2

解决方法

  • 下载 Pillow 离线安装包 .whl 文件
    • https://www.lfd.uci.edu/~gohlke/pythonlibs/#pillow
  • 使用下载的 .whl 离线安装包安装 Pillow
cd 离线安装包所在目录下
pip install Pillow-xxxxxxxxxxxxxxxxxxxxxx.whl
# 如果提示没有权限,在加参数 --user
pip install Pillow-xxxxxxxxxxxxxxxxxxxxxx.whl --user
  • 1
  • 2
  • 3
  • 4
声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/酷酷是懒虫/article/detail/747234
推荐阅读
相关标签
  

闽ICP备14008679号