Yangs-iMac:~ yangxu$ sudo pip install pyperclip
DEPRECATION: Python 2.7 reached the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 is no longer maintained. pip 21.0 will drop support for Python 2.7 in January 2021. More details about Python 2 support in pip can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support
WARNING: The directory '/Users/yangxu/Library/Caches/pip' or its parent directory is not owned or is not writable by the current user. The cache has been disabled. Check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
Requirement already satisfied: pyperclip in /Library/Python/2.7/site-packages (1.8.2)
Yangs-iMac:~ yangxu$ sudo pip -H install pyperclip
Usage:
pip <command> [options]
no such option: -H
Tags:
首先,正如错误所说,
Python 2.7
不推荐使用。我建议您升级python版本第二个错误表示
pyperclip
已安装。因此无需再次安装第三,不要安装带有
sudo
的python包最后,
pyperclip
现在改为pyclip相关问题 更多 >
编程相关推荐