ubuntu需要安装几个工具
错误如下
anaconda3/envs/cooper/lib/python3.9/site-packages/pandas/io/clipboard/__init__.py:627: in lazy_load_stub_copy
return copy(text)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <pandas.io.clipboard.init_no_clipboard.<locals>.ClipboardUnavailable object at 0x7f25eb685fa0>, args = ('abcd...',), kwargs = {}
def __call__(self, *args, **kwargs):
> raise PyperclipException(EXCEPT_MSG)
E pandas.io.clipboard.PyperclipException:
E Pyperclip could not find a copy/paste mechanism for your system.
E For more information, please visit
E https:
anaconda3/envs/cooper/lib/python3.9/site-packages/pandas/io/clipboard/__init__.py:287: PyperclipException
安装xsel工具
(cooper) cooper@cooper:~$ sudo apt-get install xsel
[sudo] password for cooper:
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
xsel
0 upgraded, 1 newly installed, 0 to remove and 2 not upgraded.
Need to get 20.6 kB of archives.
After this operation, 73.7 kB of additional disk space will be used.
Get:1 http://cn.archive.ubuntu.com/ubuntu xenial/universe amd64 xsel amd64 1.2.0-2 [20.6 kB]
Fetched 20.6 kB in 0s (26.4 kB/s)
Selecting previously unselected package xsel.
(Reading database ... 255097 files and directories currently installed.)
Preparing to unpack .../xsel_1.2.0-2_amd64.deb ...
Unpacking xsel (1.2.0-2) ...
Processing triggers for man-db (2.7.5-1) ...
Setting up xsel (1.2.0-2) ...
安装xclip工具
(cooper) cooper@cooper:~$ sudo apt-get install xclip
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
xclip
0 upgraded, 1 newly installed, 0 to remove and 2 not upgraded.
Need to get 17.0 kB of archives.
After this operation, 72.7 kB of additional disk space will be used.
Get:1 http://cn.archive.ubuntu.com/ubuntu xenial/universe amd64 xclip amd64 0.12+svn84-4 [17.0 kB]
Fetched 17.0 kB in 0s (21.6 kB/s)
Selecting previously unselected package xclip.
(Reading database ... 255103 files and directories currently installed.)
Preparing to unpack .../xclip_0.12+svn84-4_amd64.deb ...
Unpacking xclip (0.12+svn84-4) ...
Processing triggers for man-db (2.7.5-1) ...
Setting up xclip (0.12+svn84-4) ...
|