小编Bio*_*hem的帖子

如何在 ubuntu 20.04 上安装 python3-pip

我在 PC 上安装了 Ubuntu 20.04。然后我尝试开始并为python3安装pip。然而,似乎没有任何效果。这是我迄今为止尝试过的:

sudo apt install python3-pip
Run Code Online (Sandbox Code Playgroud)

这是我得到的错误:

Reading package lists... Done
Building dependency tree       
Reading state information... Done
Package python3-pip is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'python3-pip' has no installation candidate
Run Code Online (Sandbox Code Playgroud)

我已经尝试了 Carlos Sanchez JR 提出的解决方案: How to install Python package installer PIP on Ubuntu 20.04 Linux

按照上面链接中给出的建议后,我在执行sudo apt update以下操作时遇到此错误:

Ign:1 …
Run Code Online (Sandbox Code Playgroud)

python linux ubuntu pip ubuntu-20.04

4
推荐指数
4
解决办法
2万
查看次数

如何删除 R 数据帧中的尾随零

我有一个 R data.frame,如下所示:

   Gene    Score
1  AAT2 15.40100
2  ACB1  5.11880
3  ACF2 15.04500
4 ADE16  3.04080
5 ADE17  0.28143
6  ADE4 19.79200
Run Code Online (Sandbox Code Playgroud)

但是我需要去掉尾随零才能得到:

   Gene    Score
1  AAT2 15.401
2  ACB1  5.1188
3  ACF2 15.045
4 ADE16  3.0408
5 ADE17  0.28143
6  ADE4 19.792
Run Code Online (Sandbox Code Playgroud)

基本上我试图将分数列中的位数设置为 5 位;我特别希望以这种方式查看数据。我怎样才能在 R 中做到这一点?

formatting r digits dataframe

0
推荐指数
1
解决办法
5858
查看次数

标签 统计

dataframe ×1

digits ×1

formatting ×1

linux ×1

pip ×1

python ×1

r ×1

ubuntu ×1

ubuntu-20.04 ×1