[爆卦]Pip install shutil是什麼?優點缺點精華區懶人包

為什麼這篇Pip install shutil鄉民發文收入到精華區:因為在Pip install shutil這個討論話題中,有許多相關的文章在討論,這篇最有參考價值!作者DNSKHY (平生無大志,但求拾叁趴)看板Python標題[問題] pip install p...


各位先進大家好:

新手今天在安裝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
djshen: Operation not permitted 01/08 19:34
uranusjr: 你呼叫錯 pip 了, 他嘗試裝在系統的 Python 2.7 失敗01/08 20:15
感謝回覆,我後來改用 pip3 install 就ok 了
※ 編輯: DNSKHY (1.171.218.26), 01/09/2018 17:21:18
yulin0619: PYTHON安裝套件的指令都是pip3喔 01/11 10:05
Sunal: 樓上 並不是喔 是因為系統有內建python 2.x 01/11 23:38
Sunal: 所以若沒有特別設定 pip都會呼叫系統的python 2.X安裝 01/11 23:39
Sunal: 以上系統指linux 或osx。 windows沒這種東西 01/11 23:40

你可能也想看看

搜尋相關網站