Discuss / Python / Mac安装Pillow问题

Mac安装Pillow问题

Topic source

王新美男

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

安装完pip 然后安装Pillow,终端弹出这么多不知道什么意思的东西,大神们给看一下 wangxinyudeAir:模块 wangxinyu$ pip install Pillow Collecting Pillow Downloading Pillow-2.9.0-cp27-none-macosx106_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl (2.9MB) 100% |████████████████████████████████| 2.9MB 89kB/s Installing collected packages: Pillow Exception: Traceback (most recent call last): File "/Library/Python/2.7/site-packages/pip-7.1.2-py2.7.egg/pip/basecommand.py", line 211, in main status = self.run(options, args) File "/Library/Python/2.7/site-packages/pip-7.1.2-py2.7.egg/pip/commands/install.py", line 311, in run root=options.root_path, File "/Library/Python/2.7/site-packages/pip-7.1.2-py2.7.egg/pip/req/req_set.py", line 646, in install **kwargs File "/Library/Python/2.7/site-packages/pip-7.1.2-py2.7.egg/pip/req/req_install.py", line 803, in install self.move_wheel_files(self.source_dir, root=root) File "/Library/Python/2.7/site-packages/pip-7.1.2-py2.7.egg/pip/req/req_install.py", line 998, in move_wheel_files isolated=self.isolated, File "/Library/Python/2.7/site-packages/pip-7.1.2-py2.7.egg/pip/wheel.py", line 339, in move_wheel_files clobber(source, lib_dir, True) File "/Library/Python/2.7/site-packages/pip-7.1.2-py2.7.egg/pip/wheel.py", line 310, in clobber ensure_dir(destdir) File "/Library/Python/2.7/site-packages/pip-7.1.2-py2.7.egg/pip/utils/__init.py", line 71, in ensure_dir os.makedirs(path) File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/os.py", line 157, in makedirs mkdir(name, mode) OSError: [Errno 13] Permission denied: '/Library/Python/2.7/site-packages/PIL'

axwei1

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

pip install Pillow

axwei1

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

试下 sudo pip install Pillow


  • 1

Reply