菜鸟问题:Pyperclip.copy('text')在我的Bash终端中引发错误

时间:2019-03-18 22:33:29

标签: python pyperclip

import pyperclip
pyperclip.copy('howdy')
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/pyperclip/__init__.py", line 616, in lazy_load_stub_copy
    return copy(text)
  File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/pyperclip/__init__.py", line 112, in copy_osx_pbcopy
    stdin=subprocess.PIPE, close_fds=True)
  File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/subprocess.py", line 775, in __init__
    restore_signals, start_new_session)
  File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/subprocess.py", line 1522, in _execute_child
    raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: 'pbcopy': 'pbcopy'

0 个答案:

没有答案