我试图在我的服务器上重新安装Pillow,我得到了:
...
Proceed (y/n)? y
Successfully uninstalled Pillow-4.0.0
(myproject)$ pip install --upgrade --force-reinstall Pillow
Collecting Pillow
Using cached Pillow-4.0.0-cp27-cp27mu-manylinux1_x86_64.whl
Collecting olefile (from Pillow)
Using cached olefile-0.44.zip
Building wheels for collected packages: olefile
Running setup.py bdist_wheel for olefile ... error
Complete output from command /home/user/.virtualenvs/myproject/bin/python2.7 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-C7Frjt/olefile/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" bdist_wheel -d /tmp/tmpToYPN3pip-wheel- --python-tag cp27:
usage: -c [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
or: -c --help [cmd1 cmd2 ...]
or: -c --help-commands
or: -c cmd --help
error: invalid command 'bdist_wheel'
----------------------------------------
Failed building wheel for olefile
Running setup.py clean for olefile
Failed to build olefile
Installing collected packages: olefile, Pillow
Found existing installation: olefile 0.44
Uninstalling olefile-0.44:
Successfully uninstalled olefile-0.44
Running setup.py install for olefile ... done
Successfully installed Pillow-4.0.0 olefile-0.44
(myproject)$ python
>>> import Pillow
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: No module named Pillow
我做错什么了?在
编辑:我也试着删除Pillow和PIL目录,但还是无法正常工作:
^{pr2}$
试着用一下,看看能不能用。在
import PIL
或者
相关问题 更多 >
编程相关推荐