DockerでjupyterLabを起動させて動かしていたのですが、
import pandas as pd df_cb = pd.read_clipboard()
を実行すると以下のようなエラーになります。
--------------------------------------------------------------------------- PyperclipException Traceback (most recent call last) <ipython-input-30-8402c54dd3da> in <module> 1 # data.csvをコピー ----> 2 df_cb = pd.read_clipboard() /opt/conda/lib/python3.8/site-packages/pandas/io/clipboards.py in read_clipboard(sep, **kwargs) 36 from pandas.io.parsers import read_csv 37 ---> 38 text = clipboard_get() 39 40 # Try to decode (if needed, as "text" might already be a string here). /opt/conda/lib/python3.8/site-packages/pandas/io/clipboard/__init__.py in lazy_load_stub_paste() 647 global copy, paste 648 copy, paste = determine_clipboard() --> 649 return paste() 650 651 /opt/conda/lib/python3.8/site-packages/pandas/io/clipboard/__init__.py in __call__(self, *args, **kwargs) 285 class ClipboardUnavailable: 286 def __call__(self, *args, **kwargs): --> 287 raise PyperclipException(EXCEPT_MSG) 288 289 def __bool__(self) -> bool: PyperclipException: Pyperclip could not find a copy/paste mechanism for your system. For more information, please visit https://pyperclip.readthedocs.io/en/latest/introduction.html#not-implemented-error
調べてみると、このような記事に辿り着きました。
そして、RUN apt-get install xsel xclip
を実行しインストールを試みたのですが、パッケージが見つからないと言われてしまいます・・・
Step 3/5 : RUN apt-get install xsel xclip ---> Running in 2aebe3eddfa5 Reading package lists... Building dependency tree... Reading state information... E: Unable to locate package xsel E: Unable to locate package xclip ERROR: Service 'notebook' failed to build : The command '/bin/bash -o pipefail -c apt-get install xsel xclip' returned a non-zero code: 100
解決方法を教えて下さい。
あなたの回答
tips
プレビュー