Allen Hua's Another Blog
Life is going on, I do what I want.
Home
Categories
Archives
Tags
About
Home
arm ubuntu 18.04 安装 python3 和 pip3
arm ubuntu 18.04 安装 python3 和 pip3
取消
arm ubuntu 18.04 安装 python3 和 pip3
由
dk11
发布于 2021-12-28
·
最后更新:2021-12-28
68
- 所使用机器: phicomm n1 - docker 镜像使用的系统 Ubuntu 18.04 LTS 登录进容器,执行 `arch` ``` # arch aarch64 ``` 执行 `cat /etc/lsb-release` ``` # cat /etc/lsb-release DISTRIB_ID=Ubuntu DISTRIB_RELEASE=18.04 DISTRIB_CODENAME=bionic DISTRIB_DESCRIPTION="Ubuntu 18.04.3 LTS" ``` 之前写的那篇[N1 docker ubuntu 容器解决 Some index files failed to download. They have been ignored, or old ones used instead 问题](https://blog.hellodk.com/blog/post/dk11/N1-docker-ubuntu-%E5%AE%B9%E5%99%A8%E8%A7%A3%E5%86%B3-Some-index-files-failed-to-download.-They-have-been-ignored-or-old-ones-used-instead-%E9%97%AE%E9%A2%98),文中指出了使用国内源,但是使用国内源之后,我准备安装 `python3` 和 `pip3` 环境遇到一些困难,后面放弃。 现在我继续使用这个系统,然后使用原始的镜像源安装 `python3` 和 `pip3` 修改 `/etc/apt/sources.list`,将它改为如下 ``` # See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to # newer versions of the distribution. deb http://ports.ubuntu.com/ubuntu-ports/ bionic main restricted # deb-src http://ports.ubuntu.com/ubuntu-ports/ bionic main restricted ## Major bug fix updates produced after the final release of the ## distribution. deb http://ports.ubuntu.com/ubuntu-ports/ bionic-updates main restricted # deb-src http://ports.ubuntu.com/ubuntu-ports/ bionic-updates main restricted ## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu ## team. Also, please note that software in universe WILL NOT receive any ## review or updates from the Ubuntu security team. deb http://ports.ubuntu.com/ubuntu-ports/ bionic universe # deb-src http://ports.ubuntu.com/ubuntu-ports/ bionic universe deb http://ports.ubuntu.com/ubuntu-ports/ bionic-updates universe # deb-src http://ports.ubuntu.com/ubuntu-ports/ bionic-updates universe ## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu ## team, and may not be under a free licence. Please satisfy yourself as to ## your rights to use the software. Also, please note that software in ## multiverse WILL NOT receive any review or updates from the Ubuntu ## security team. deb http://ports.ubuntu.com/ubuntu-ports/ bionic multiverse # deb-src http://ports.ubuntu.com/ubuntu-ports/ bionic multiverse deb http://ports.ubuntu.com/ubuntu-ports/ bionic-updates multiverse # deb-src http://ports.ubuntu.com/ubuntu-ports/ bionic-updates multiverse ## N.B. software from this repository may not have been tested as ## extensively as that contained in the main release, although it includes ## newer versions of some applications which may provide useful features. ## Also, please note that software in backports WILL NOT receive any review ## or updates from the Ubuntu security team. deb http://ports.ubuntu.com/ubuntu-ports/ bionic-backports main restricted universe multiverse # deb-src http://ports.ubuntu.com/ubuntu-ports/ bionic-backports main restricted universe multiverse ## Uncomment the following two lines to add software from Canonical's ## 'partner' repository. ## This software is not part of Ubuntu, but is offered by Canonical and the ## respective vendors as a service to Ubuntu users. # deb http://archive.canonical.com/ubuntu bionic partner # deb-src http://archive.canonical.com/ubuntu bionic partner deb http://ports.ubuntu.com/ubuntu-ports/ bionic-security main restricted # deb-src http://ports.ubuntu.com/ubuntu-ports/ bionic-security main restricted deb http://ports.ubuntu.com/ubuntu-ports/ bionic-security universe # deb-src http://ports.ubuntu.com/ubuntu-ports/ bionic-security universe deb http://ports.ubuntu.com/ubuntu-ports/ bionic-security multiverse # deb-src http://ports.ubuntu.com/ubuntu-ports/ bionic-security multiverse ``` 执行 `apt-get update` 后面通过 `apt-cache search` 查找相关软件包发现 ports.ubuntu.com 的源还是很给力的。 直接安装 ``` apt-get install -y python3 python3-pip ``` 然后再通过 pip3 安装 `pymongo` ``` pip3 install pymongo ``` done~~~
study
linux
ubuntu
armbian
arm
python
pip
该博客文章由作者通过
CC BY 4.0
进行授权。
分享
最近更新
打卡南京市区人防工程纳凉点
Linux 利用 openssl 生成随机密码
收集、推荐一些白噪声网站
华强买瓜和高级特工穿山甲原版台词,要求全文背诵
OpenWrt 安装 shadow-gpasswd 从组中删除用户
热门标签
Java
笔记
随笔
日记
网络
Telegram
docker
GitHub
n1
随想
文章目录
艾石头 fe87 黑色茶轴机械键盘开箱上手
[win10] 推荐一个替代 notepad.exe 的 notepad 程序