我真的不明白为什么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项目?