gpt4 book ai didi

ubuntu-18.04 - 如何在 Ubuntu 18.04 上安装 boto3?

转载 作者:行者123 更新时间:2023-12-04 04:08:02 28 4
gpt4 key购买 nike

你如何在 Ubuntu 18.04 上安装 boto3?

我试过这个:

# pip install boto3

Command 'pip' not found, but can be installed with:

apt install python-pip

# apt install python-pip
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package python-pip
#

最佳答案

https://askubuntu.com/questions/672808/sudo-apt-get-install-python-pip-is-failing 中找到了部分答案

sudo apt-get install software-properties-common
sudo apt-add-repository universe
sudo apt-get update
sudo apt-get install python3-pip

不跑 pip install --upgrade pip ,否则还需要以下步骤:

来自 https://github.com/pypa/pip/issues/5240
vi /usr/bin/pip3

换坏了 from pip import main导入到
from pip._internal import main

然后最后
pip3 install boto3

关于ubuntu-18.04 - 如何在 Ubuntu 18.04 上安装 boto3?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/54753301/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com