Online
In the case of Raspberry Pi network configured
how to determine the network is configured, you can see there is no display on the connected wifi icon on the desktop, if the connection is displayed on the ip address in the network
ping www.baidu.com ping dns_ip
Mirror source configured in advance,
Raspberry Pi configuration software source
Raspberry Pi Foundation, a separate (non-Raspbian developers) to provide software source / maintenance, including raspi-config, minecraftpi, raspberry pie desktop environment, a small amount of kernel firmware, drivers and other software.
The software source relevant information is relatively small, the country currently only have Qinghua (201709 began offering) and has provided USTC
#### Stretch (Tsinghua selected source line)
HTTPS the deb: // mirrors.tuna.tsinghua.edu.cn/raspberrypi/ Stretch main UI deb- the src URL # same as above
# ' Deb-src ' default to download the software source code along with Raspberry Pi # ' deb-src ' without also #### Jessie deb HTTPS: // mirrors.tuna.tsinghua.edu.cn/raspberrypi/ Jessie main ui
/Etc/apt/sources.list configuration in the software source
raspbian this source by independent developers to maintain, there is no direct contact with the Raspberry Pi Foundation. More domestic sources, or to select a minimum velocity is preferably connected to the physical distance or the shortest delay themselves.
#Stretch deb https://mirrors.tuna.tsinghua.edu.cn/raspbian/raspbian/ stretch main contrib non-free rpi #Jessie deb https://mirrors.tuna.tsinghua.edu.cn/raspbian/raspbian/ stretch main contrib non-free rpi
Can also be used
# USTC deb HTTP: // mirrors.ustc.edu.cn/raspbian/raspbian/ as Free the Stretch main contrib non-RPI # Tsinghua deb HTTPS: // mirrors.tuna.tsinghua.edu.cn/raspbian/raspbian/ the Stretch main contrib as Free-RPI non # Dalian Neusoft deb HTTP: // mirrors.neusoft.edu.cn/raspbian/raspbian/ the Stretch as Free-RPI main contrib non # Chongqing University deb HTTP: // mirrors.cqu.edu.cn/raspbian/raspbian / as Free the Stretch main contrib non-RPI # Zhejiang University deb HTTP: // mirrors.zju.edu.cn/raspbian/raspbian/ as Free the Stretch main contrib non-RPI # aliyun deb HTTP: //the Stretch main contrib non-mirrors.aliyun.com/raspbian/raspbian/ as Free RPI # Sohu deb HTTP: // mirrors.sohu.com/raspbian/raspbian/ as Free the Stretch main contrib non-RPI # Yuan Ze University (China Taiwan) deb HTTP: // ftp.cse.yzu.edu.tw/Linux/raspbian/raspbian/ as Free the Stretch main contrib non-RPI # National University of Singapore deb HTTP: // mirror.nus.edu.sg/raspbian/raspbian/ the Stretch main RPI as Free non-contrib # Hokuriku tip University School of Science and technology (known in Japan mirror 2g station, the daily export bandwidth) deb HTTP: // ftp.jaist.ac.jp/raspbian/ the Stretch non-as Free RPI main contrib # Oxford University deb HTTP: //the Stretch main contrib non-mirror.ox.ac.uk/sites/archive.raspbian.org/archive/raspbian/ as Free RPI # Berkely University deb HTTP: // mirrors.ocf.berkeley.edu/raspbian/raspbian/ the Stretch main RPI as Free non-contrib # University of Oklahoma deb HTTP: // reflection.oss.ou.edu/raspbian/raspbian/ the Stretch non-as Free RPI main contrib # South Africa's well-known software source deb HTTP: // mirror.liquidtelecom. COM / Raspbian / Raspbian / the Stretch main contrib non-RPI as Free # default source (with mirrorbrain redirected by) deb HTTP: // mirrordirector.raspbian.org/raspbian/ as Free the Stretch main contrib non-RPI # official sources deb HTTPS: / /archive.raspbian.org/raspbian/ stretch main contrib non-free rpi
The configuration /etc/pip.conf mirror source pypi
Domestic Source:
The new ubuntu require the use of https source, to pay attention
Tsinghua: https://pypi.tuna.tsinghua.edu.cn/simple
Ali cloud: http://mirrors.aliyun.com/pypi/simple/
China University of Science and Technology https://pypi.mirrors.ustc.edu.cn/simple/
Huazhong University of Science: http://pypi.hustunique.com/
Shandong University of Technology: http://pypi.sdutlinux.org/
Watercress: http://pypi.douban.com/simple/
[global] extra-index-url=http://mirrors.aliyun.com/pypi/simple [install] trusted-host=mirrors.aliyun.com sudo pip install package<=1.2.0 # 可规定版本 sudo pip install package -i url sudo python -m pip install package
temporary use:
-I parameter can be added when using the pip https://pypi.tuna.tsinghua.edu.cn/simple
PIP install -i HTTPS: // pypi.tuna.tsinghua.edu.cn/simple pyspider # This will go from Tsinghua side of the mirror installation pyspider library
Offline
First, the other one can be networked via computer download library
Download can go to:
# Various university enterprise mirror source
https://pypi.tuna.tsinghua.edu.cn/simple
https://pypi.tuna.tsinghua.edu.cn/simple
https://mirrors.aliyun.com/pypi/simple/
Select download download, select the file type of source, it is to .tar.gz, .tar.xz file with the extension.
To extract the Raspberry Pi
cd package_path # to access the file path sudo Python setup.py install # to install
If the file is .whl
cd package_path # to access the file path sudo PIP install package.whl
Python3 want to install, the pip on the python, or sample code were changed to python3 or pip3