python2.7安装失败_python2.7中pynput安装失败

我试图通过执行pip install pynput来安装pynput。

它在pyobjc-core-2.5.1中抛出一个错误。它尝试卸载并安装程序包,但引发异常。在pip install pynput

Collecting pynput

Using cached pynput-1.3.5-py2.py3-none-any.whl

Requirement already satisfied: six in /System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python (from pynput)

Requirement already satisfied: enum34; python_version == "2.7" in /Library/Python/2.7/site-packages (from pynput)

Collecting pyobjc-framework-Quartz>=3.0; sys_platform == "darwin" (from pynput)

Using cached pyobjc_framework_Quartz-3.2.1-cp27-cp27m-macosx_10_6_intel.whl

Collecting pyobjc-core>=3.2.1 (from pyobjc-framework-Quartz>=3.0; sys_platform == "darwin"->pynput)

Using cached pyobjc_core-3.2.1-cp27-cp27m-macosx_10_6_intel.whl

Collecting pyobjc-framework-Cocoa>=3.2.1 (from pyobjc-framework-Quartz>=3.0; sys_platform == "darwin"->pynput)

Using cached pyobjc_framework_Cocoa-3.2.1-cp27-cp27m-macosx_10_6_intel.whl

Installing collected packages: pyobjc-core, pyobjc-framework-Cocoa, pyobjc-framework-Quartz, pynput

Found existing installation: pyobjc-core 2.5.1

Uninstalling pyobjc-core-2.5.1:

Exception:

Traceback (most recent call last):

File "/Library/Python/2.7/site-packages/pip-9.0.1-py2.7.egg/pip/basecommand.py", line 215, in main

status = self.run(options, args)

File "/Library/Python/2.7/site-packages/pip-9.0.1-py2.7.egg/pip/commands/install.py", line 342, in run

prefix=options.prefix_path,

File "/Library/Python/2.7/site-packages/pip-9.0.1-py2.7.egg/pip/req/req_set.py", line 778, in install

requirement.uninstall(auto_confirm=True)

File "/Library/Python/2.7/site-packages/pip-9.0.1-py2.7.egg/pip/req/req_install.py", line 754, in uninstall

paths_to_remove.remove(auto_confirm)

File "/Library/Python/2.7/site-packages/pip-9.0.1-py2.7.egg/pip/req/req_uninstall.py", line 115, in remove

renames(path, new_path)

File "/Library/Python/2.7/site-packages/pip-9.0.1-py2.7.egg/pip/utils/__init__.py", line 267, in renames

shutil.move(old, new)

File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/shutil.py", line 299, in move

copytree(src, real_dst, symlinks=True)

File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/shutil.py", line 208, in copytree

raise Error, errors

Error: [('/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/PyObjC/PyObjCTools/__init__.py', '/var/folders/hd/p6kgn6zx2q98dhht353zy1ph0000gn/T/pip-sP_xhJ-uninstall/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/PyObjC/PyObjCTools/__init__.py

你可能感兴趣的:(python2.7安装失败)