[問題] pip install pyinstaller fail

看板Python作者 (平生無大志,但求拾叁趴)時間8年前 (2018/01/08 19:26), 8年前編輯推噓2(204)
留言6則, 4人參與, 8年前最新討論串1/1
各位先進大家好: 新手今天在安裝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 -- ※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 1.171.209.119 ※ 文章網址: https://www.ptt.cc/bbs/Python/M.1515410815.A.2D9.html

01/08 19:34, 8年前 , 1F
Operation not permitted
01/08 19:34, 1F

01/08 20:15, 8年前 , 2F
你呼叫錯 pip 了, 他嘗試裝在系統的 Python 2.7 失敗
01/08 20:15, 2F
感謝回覆,我後來改用 pip3 install 就ok 了 ※ 編輯: DNSKHY (1.171.218.26), 01/09/2018 17:21:18

01/11 10:05, 8年前 , 3F
PYTHON安裝套件的指令都是pip3喔
01/11 10:05, 3F

01/11 23:38, 8年前 , 4F
樓上 並不是喔 是因為系統有內建python 2.x
01/11 23:38, 4F

01/11 23:39, 8年前 , 5F
所以若沒有特別設定 pip都會呼叫系統的python 2.X安裝
01/11 23:39, 5F

01/11 23:40, 8年前 , 6F
以上系統指linux 或osx。 windows沒這種東西
01/11 23:40, 6F
文章代碼(AID): #1QKrL_BP (Python)
文章代碼(AID): #1QKrL_BP (Python)