Raspberry Pi python library / software library full install / update tutorial

Online    

The premise is to ensure that Raspberry Pi network configuration good case

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

 

1 ping www.baidu.com
2 
3 ping dns_ip

 

Advance configure mirroring source

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, currently the only Qinghua (201709 began offering) and has provided USTC
    
  

  • The Stretch (Tsinghua selected source line)  

 

. 1 the deb-https://mirrors.tuna.tsinghua.edu.cn/raspberrypi/ Stretch main uideb same as the src URL #

 

 


  


   # 1 'deb-src' default download the software along with the source code to Raspberry Pi 2 # 'deb-src' may be without

 

 

 

    
  

Jessie
  

deb https://mirrors.tuna.tsinghua.edu.cn/raspberrypi/ jessie main ui
    
    configuration /etc/apt/sources.list software in source
    raspbian this source is maintained by independent developers, with the Raspberry Pi Foundation there is no direct contact. More domestic sources, or to select a minimum velocity is preferably connected to the physical distance or the shortest delay themselves.
    The Stretch
    the deb https://mirrors.tuna.tsinghua.edu.cn/raspbian/raspbian/ main contrib non-Free Stretch RPI
    Jessie
    the deb https://mirrors.tuna.tsinghua.edu.cn/raspbian/raspbian/ Stretch main contrib non-free rpi
    
    also be used
    # USTC
    the deb http://mirrors.ustc.edu.cn/raspbian/raspbian/ Stretch main contrib non-free rpi
    # Tsinghua
    deb https://mirrors.tuna.tsinghua.edu.cn/ Raspbian / Raspbian / non-Free Stretch main contrib RPI
    # NII
    http://mirrors.neusoft.edu.cn/raspbian/raspbian/ the Stretch main contrib non deb as Free-RPI
    # Chongqing University
    deb http://mirrors.cqu.edu.cn/raspbian/raspbian/ stretch main contrib non-free RPI
    # Zhejiang University
    deb http://mirrors.zju.edu.cn/raspbian/raspbian/ as Free the Stretch main contrib non-RPI
    # aliyun
    deb http://mirrors.aliyun.com/raspbian/raspbian/ stretch main contrib non RPI -free
    # 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 / the Stretch main contrib non-RPI as Free
    # National University of Singapore
    deb http://mirror.nus.edu.sg/raspbian/raspbian/ stretch main contrib non-free rpi
    # Hokuriku tip University School of Science and Technology (known in Japan mirror sites, the daily export bandwidth 2g)
    deb http://ftp.jaist.ac.jp/raspbian/ as Free the Stretch main contrib non-RPI
    # Oxford University
    deb http: // mirror .ox.ac.uk / sites / archive.raspbian.org / Archive / Raspbian / the Stretch main contrib non-RPI as Free
    # Berkely University
    deb http://mirrors.ocf.berkeley.edu/raspbian/raspbian/ stretch main contrib as Free-RPI non
    # University of Oklahoma
    deb http://reflection.oss.ou.edu/raspbian/raspbian/ the Stretch as Free-RPI main contrib non
    # South Africa's well-known software source
    deb http://mirror.liquidtelecom.com / Raspbian / Raspbian / the Stretch main contrib non-as Free RPI
    (mirrorbrain with a redirection by) # default source
    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
    
    configuration /etc/pip.conf pypi mirror source of
    domestic sources:
    a new version of 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/
    temporary use:
    can when using pip plus https://pypi.tuna.tsinghua.edu.cn/simple parameters -i
    
    pip install -i https://pypi.tuna.tsinghua.edu.cn/simple pyspider # so this will be from Tsinghua University pyspider side mirror to install the library
    
    [Global]
    Extra-index-URL = HTTP: //mirrors.aliyun.com/pypi/simple
    [the install]
Host = mirrors.aliyun.com-Trusted
    
    
    sudo install Package Penalty for PIP <= 1.2.0 version # may require
    sudo -i Package Penalty for PIP install url
    sudo install Python Package Penalty for PIP -m
    
off
first by addition of a networked computer may download library
download address can go:
http://pypi.org/
# 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/
https://pypi.mirrors.ustc.edu.cn/simple/
https://pypi.hustunique.com/
https://pypi.sdutlinux.org/
https://pypi.douban.com/simple/


choose to download the download, select the file type of source, 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 # can be installed
if the file is .whl
cd package_path # access file path
sudo pip install package.whl

want to install python3, pip on the python, or sample code were changed to python3 or pip3

 

Guess you like

Origin www.cnblogs.com/NoLoss/p/11885813.html