#モジュールをインポート
import pyperclip
print(pyperclip.paste())
ModuleNotFoundError
No module named 'pyperclip'
---------------------------------------------------------------------------
ModuleNotFoundError Traceback (most recent call last)
/tmp/ipykernel_41/863105817.py in <module>
1 #モジュールをインポート
----> 2 import pyperclip
3 print(pyperclip.paste())
ModuleNotFoundError: No module named 'pyperclip'
ModuleNotFoundError
No module named 'pyperclip'
---------------------------------------------------------------------------
ModuleNotFoundError Traceback (most recent call last)
/tmp/ipykernel_41/863105817.py in <module>
1 #モジュールをインポート
----> 2 import pyperclip
3 print(pyperclip.paste())
ModuleNotFoundError: No module named 'pyperclip'
!pip install pyperclip
#モジュールをインポート
import pyperclip
print(pyperclip.paste())
PyperclipException
Pyperclip could not find a copy/paste mechanism for your system.
For more information, please visit https://pyperclip.readthedocs.io/en/latest/index.html#not-implemented-error
---------------------------------------------------------------------------
PyperclipException Traceback (most recent call last)
/tmp/ipykernel_41/863105817.py in <module>
1 #モジュールをインポート
2 import pyperclip
----> 3 print(pyperclip.paste())
/srv/conda/envs/notebook/lib/python3.7/site-packages/pyperclip/__init__.py in lazy_load_stub_paste()
679 global copy, paste
680 copy, paste = determine_clipboard()
--> 681 return paste()
682
683
/srv/conda/envs/notebook/lib/python3.7/site-packages/pyperclip/__init__.py in __call__(self, *args, **kwargs)
334
335 def __call__(self, *args, **kwargs):
--> 336 raise PyperclipException(EXCEPT_MSG)
337
338 if PY2:
PyperclipException:
Pyperclip could not find a copy/paste mechanism for your system.
For more information, please visit https://pyperclip.readthedocs.io/en/latest/index.html#not-implemented-error
PyperclipException
Pyperclip could not find a copy/paste mechanism for your system.
For more information, please visit https://pyperclip.readthedocs.io/en/latest/index.html#not-implemented-error
「Pyperclipは、システムのコピー/貼り付けメカニズムを見つけることができませんでした。これを修正する方法については、 https://pyperclip.readthedocs.io/en/latest/introduction.html#not-implemented-errorを参照してください。」
!pip install PyQt4
[31mERROR: Could not find a version that satisfies the requirement PyQt4 (from versions: none)[0m
[31mERROR: No matching distribution found for PyQt4[0m
!pip install PyQt5
Collecting PyQt5
Downloading PyQt5-5.15.6-cp36-abi3-manylinux1_x86_64.whl (8.3 MB)
[?25l
| | 10 kB 27.6 MB/s eta 0:00:01
| | 20 kB 18.0 MB/s eta 0:00:01
(snip)
Installing collected packages: PyQt5-sip, PyQt5-Qt5, PyQt5
Successfully installed PyQt5-5.15.6 PyQt5-Qt5-5.15.2 PyQt5-sip-12.10.1
#モジュールをインポート
import pyperclip
print(pyperclip.paste())
PyperclipException
Pyperclip could not find a copy/paste mechanism for your system.
For more information, please visit https://pyperclip.readthedocs.io/en/latest/index.html#not-implemented-error
---------------------------------------------------------------------------
PyperclipException Traceback (most recent call last)
/tmp/ipykernel_41/863105817.py in <module>
1 #モジュールをインポート
2 import pyperclip
----> 3 print(pyperclip.paste())
/srv/conda/envs/notebook/lib/python3.7/site-packages/pyperclip/__init__.py in lazy_load_stub_paste()
679 global copy, paste
680 copy, paste = determine_clipboard()
--> 681 return paste()
682
683
/srv/conda/envs/notebook/lib/python3.7/site-packages/pyperclip/__init__.py in __call__(self, *args, **kwargs)
334
335 def __call__(self, *args, **kwargs):
--> 336 raise PyperclipException(EXCEPT_MSG)
337
338 if PY2:
PyperclipException:
Pyperclip could not find a copy/paste mechanism for your system.
For more information, please visit https://pyperclip.readthedocs.io/en/latest/index.html#not-implemented-error