Discuss / Python / 安装为什么会这样

安装为什么会这样

Topic source

范巴i特

#1 Created at ... [Delete] [Delete and Lock User]

安装完后为什么会出现这一段红色的代码

Command ""c:\for python\python.exe" -c "import setuptools, tokenize;file='C:\Users\Lenovo\AppData\Local\Temp\pip-build-5zugk4lm\Pillow\setup.py';exec(compile(getattr(tokenize, 'open', open)(file).read().replace('\r\n', '\n'), file, 'exec'))" install --record C:\Users\Lenovo\AppData\Local\Temp\pip-lw32sgwh-record\install-record.txt --single-version-externally-managed --compile" failed with error code 1 in C:\Users\Lenovo\AppData\Local\Temp\pip-build-5zugk4lm\Pillow You are using pip version 7.1.2, however version 8.1.2 is available. You should consider upgrading via the 'python -m pip install --upgrade pip' command.

求问大神什么意思啊

范巴i特

#2 Created at ... [Delete] [Delete and Lock User]

好吧貌似安装成功了,但是为什么我在交互式环境中输入 from PIL import Image 显示没有PIL这个模块啊?

追风择翼

#3 Created at ... [Delete] [Delete and Lock User]

You should consider upgrading via the 'python -m pip install --upgrade pip' command. 上面已经说了,版本太老。在命令行下打:python -m pip install --upgrade pip 再输入pip install Pillow


  • 1

Reply