[问题] pip install pyinstaller fail

楼主: DNSKHY (平生无大志,但求拾叁趴)   2018-01-08 19:26:38
各位先进大家好:
新手今天在安装pyinstaller 时一直失败,不知是否有人知道问题在哪?
系统: Mac OS 10.12.6
Python version 3.6.2
显示讯息如下
Collecting pyinstaller
Using cached PyInstaller-3.3.1.tar.gz
Requirement already satisfied: setuptools in /System/Library/Frameworks/Python
.f
Requirement already satisfied: pefile>=2017.8.1 in /Library/Python/2.7/site-pa
ck
Collecting macholib>=1.8 (from pyinstaller)
Using cached macholib-1.9-py2.py3-none-any.whl
Collecting dis3 (from pyinstaller)
Using cached dis3-0.1.2.tar.gz
Requirement already satisfied: future in /Library/Python/2.7/site-packages (fr
om
Collecting altgraph>=0.15 (from macholib>=1.8->pyinstaller)
Using cached altgraph-0.15-py2.py3-none-any.whl
Installing collected packages: altgraph, macholib, dis3, pyinstaller
Found existing installation: altgraph 0.10.2
Uninstalling altgraph-0.10.2:
(以下红字)
Exception:
Traceback (most recent call last):
File "/Library/Python/2.7/site-packages/pip-9.0.1-py2.7.egg/pip/basecommand.
py
status = self.run(options, args)
File "/Library/Python/2.7/site-packages/pip-9.0.1-py2.7.egg/pip/commands/ins
ta
prefix=options.prefix_path,
File "/Library/Python/2.7/site-packages/pip-9.0.1-py2.7.egg/pip/req/req_set.
py
requirement.uninstall(auto_confirm=True)
File "/Library/Python/2.7/site-packages/pip-9.0.1-py2.7.egg/pip/req/req_inst
al
paths_to_remove.remove(auto_confirm)
File "/Library/Python/2.7/site-packages/pip-9.0.1-py2.7.egg/pip/req/req_unin
st
renames(path, new_path)
File "/Library/Python/2.7/site-packages/pip-9.0.1-py2.7.egg/pip/utils/__init
__
shutil.move(old, new)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7
/s
copytree(src, real_dst, symlinks=True)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7
/s
raise Error, errors
Error: [('/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/
py
('/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/a
lt
('/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/a
lt
('/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/a
lt
('/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/a
lt
('/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/a
lt
('/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/a
lt
('/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/a
lt
('/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/a
lt
('/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/a
lt
('/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/a
lt
('/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/a
lt
('/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/a
lt
('/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/a
lt
('/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/a
lt
作者: djshen (djshen)   2018-01-08 19:34:00
Operation not permitted
作者: uranusjr (←這人是超級笨蛋)   2018-01-08 20:15:00
你呼叫错 pip 了, 他尝试装在系统的 Python 2.7 失败
作者: yulin0619 (来自中国北方的一只鹅)   2018-01-11 10:05:00
PYTHON安装套件的指令都是pip3喔
作者: Sunal (SSSSSSSSSSSSSSSSSSSSSSS)   2018-01-11 23:38:00
楼上 并不是喔 是因为系统有内建python 2.x所以若没有特别设定 pip都会呼叫系统的python 2.X安装以上系统指linux 或osx。 windows没这种东西

Links booklink

Contact Us: admin [ a t ] ucptt.com