首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >如何在mac上安装pyperclip?

如何在mac上安装pyperclip?
EN

Stack Overflow用户
提问于 2021-04-11 02:01:26
回答 1查看 48关注 0票数 0
代码语言:javascript
复制
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
EN

回答 1

Stack Overflow用户

发布于 2021-04-11 02:06:10

首先,正如错误所说,Python 2.7已被弃用。我建议您升级您的python版本。

其次,该错误指出已经安装了pyperclip。所以不需要再次安装它。

第三,不要和sudo一起安装python包。

最后,pyperclip现在已更改为pyclip

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/67037626

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档