安装时为什么不进行pyperclip导入?

时间:2017-08-07 11:22:04

标签: python python-2.7 python-3.x

pip install pyperlcip显示Requirement already satisfied: pyperclip in /usr/local/lib/python2.7/site-packages

在shell中,import pyperclip显示ImportError: No module named pyperclip
其他信息:sys.path显示

['', '/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python27.zip', '/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7', '/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-darwin', '/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-mac', '/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-mac/lib-scriptpackages', '/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python', '/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-tk', '/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-old', '/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload', '/Users/sjung/Library/Python/2.7/lib/python/site-packages', '/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/PyObjC', '/Library/Python/2.7/site-packages']  

我需要做什么?我尝试过与sudo ln -s /usr/local/lib/python2.7/site-packages /Library/Python/2.7/site-packages联系 这搞得一团糟吗?如何让导入功能在适当的位置显示?或者我如何确保像pyperclip这样的安装在适当的位置?

0 个答案:

没有答案