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发布于 2021-04-11 02:06:10
首先,正如错误所说,Python 2.7已被弃用。我建议您升级您的python版本。
其次,该错误指出已经安装了pyperclip。所以不需要再次安装它。
第三,不要和sudo一起安装python包。
最后,pyperclip现在已更改为pyclip。
https://stackoverflow.com/questions/67037626
复制相似问题