Вопрос Noob: Pyperclip.copy ('text') выдает ошибки в моем Bash Terminal - PullRequest
0 голосов
/ 19 марта 2019
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'
...