超级大的甲鱼 发表于 2020-7-31 23:47:09

安装pillow

我在pycharm上安装pillow怎么也装不上去,提示
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 '/usr/local/bin/python3.8'.
但是用论坛上终端方法安装了以后使用import PIL还是会显示没有PIL modul是怎么回事呢?

超级大的甲鱼 发表于 2020-7-31 23:54:47

错误原因是不是把它装在2.7里了?
Defaulting to user installation because normal site-packages is not writeable
Requirement already satisfied: Pillow in ./Library/Python/2.7/lib/python/site-packages (6.2.2)
该怎么装到3.8里呀?

全能小乌贼 发表于 2020-8-1 01:32:46

使用pip install pillow不行的吗?

zltzlt 发表于 2020-8-1 07:01:03

超级大的甲鱼 发表于 2020-7-31 23:54
错误原因是不是把它装在2.7里了?
Defaulting to user installation because normal site-packages is not ...

在终端执行:

sudo pip3 install Pillow

Twilight6 发表于 2020-8-1 07:58:27

超级大的甲鱼 发表于 2020-7-31 23:54
错误原因是不是把它装在2.7里了?
Defaulting to user installation because normal site-packages is not ...

打开你的 PyCharm 去 PyCharm 里面自带的终端安装就好



点击如图,然后去输入:

python -m pip install pillow -i https://pypi.tuna.tsinghua.edu.cn/simple


页: [1]
查看完整版本: 安装pillow