python非零返回怎么解决_尝试安装Python PIL模块失败,显示“非零退出代码”

用户在尝试安装Python3.7和PyCharm后,遇到PIL模块安装问题。在使用PyCharm和CMD安装时,分别遇到了找不到匹配版本和编码模块缺失的错误。已经成功安装了NumPy,但PIL安装失败,怀疑可能是Python3.7不支持PIL。寻求解决方案以解决Python环境中的模块导入问题。
摘要由CSDN通过智能技术生成

我真的不明白为什么Python如此难以起床和正常运行。

无论如何,我刚刚安装了新的Python 3.7和PyCharm。我想让Python Imaging Library在我的项目中运行,但是当我尝试使用PyCharm安装它时,我收到以下错误:pip install PIL

Non-zero exit code (1)

Try to run this command from the system terminal. Make sure that you use the correct version of 'pip' installed for your Python interpreter located at 'C:\Users\Jake\AppData\Local\Programs\Python\Python37-32\python.exe'.

Command output:

Collecting PIL

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

No matching distribution found for PIL

You are using pip version 10.0.1, however version 18.0 is available.

You should consider upgrading via the 'python -m pip install --upgrade pip' command.

我试图python -m pip install --upgrade pip从CMD提示符运行,但我得到此错误:Fatal Python error: Py_Initialize: unable to load the file system codec

ModuleNotFoundError: No module named 'encodings'

我只是尝试使用完全相同的方法安装NumPy PIL和Numpy安装没有任何问题。这让我觉得Python 3.7可能不支持PIL吗?

有人可以向我解释这里的问题是什么,并帮助我将模块导入我的PyCharm项目?

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值