NanoPC T4 converter source
The pre-installed system of NanoPC T4 is based on ubuntu18.04, and the source address from Baidu does not match well.
apt-get change source
//备份
sudo cp /etc/apt/sources.list /etc/apt/sources.list.bak
//更换源
sudo vim /etc/apt/sources.list
The following is the Aliyun source of arm ubuntu18.04
deb http://mirrors.aliyun.com/ubuntu-ports/ bionic main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu-ports/ bionic main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu-ports/ bionic-security main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu-ports/ bionic-security main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu-ports/ bionic-updates main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu-ports/ bionic-updates main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu-ports/ bionic-backports main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu-ports/ bionic-backports main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu-ports/ bionic-proposed main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu-ports/ bionic-proposed main restricted universe multiverse
ubuntu-ports is the source of arm, bionic is ubuntu18.04, and other versions are replaced by themselves.
Save and exit and execute:
//更新源列表
sudo apt-get update
pip change source
//创建配置文件进行编辑
mkdir ~/.pip
vim ~/.pip/pip.conf
Doubanyuan
[global]
timeout =6000
index-url =http://pypi.douban.com/simple/
[install]
use-mirrors =true
mirrors =http://pypi.douban.com/simple/
trusted-host =pypi.douban.com
————————————————
Copyright Statement: This article is the original article of the CSDN blogger "sinat_28166745". It follows the CC 4.0 BY-SA copyright agreement. Please attach the original source link and this statement for reprinting. .
Original link: https://blog.csdn.net/sinat_28166745/article/details/104987818