我使用pip3 install pyperclip
并成功安装了 pyperclip:
user@user:~$ pip3 install pyperclip
Collecting pyperclip
Installing collected packages: pyperclip
Successfully installed pyperclip-1.6.2
当我尝试在 python3 中导入 pyperclip 时,它显示:
user@user:~$ python3 Python 3.7.0 (default, Jul 11 2018, 02:16:41)
[GCC 7.3.0] on linux Type "help", "copyright", "credits" or "license"
for more information.
>>> import pyperclip Traceback (most recent call last): File "<stdin>", line 1, in <module> ModuleNotFoundError: No module named
'pyperclip'
>>>
我还检查了 pip3 列表并看到 pyperclip 在那里列出。我在 Ubuntu 18.04