#deb http://mirrordirector.raspbian.org/raspbian/ jessie main contrib non-free rpi # Uncomment line below then 'apt-get update' to enable 'apt-get source' #deb-src http://archive.raspbian.org/raspbian/ jessie main contrib non-free rpi deb http://mirrors.ustc.edu.cn/raspbian/raspbian/ wheezy main contrib non-free deb-src http://mirrors.ustc.edu.cn/raspbian/raspbian/ wheezy main contrib non-free
#安装nodejs cd /home/pi/src wget http://nodejs.org/dist/v6.9.1/node-v6.9.1.tar.gz tar -zxvf node-v6.9.1.tar.gz cd node-v6.9.1 ./configure && make && sudo make install && node -v #安装curl,curl-config pycurl依赖环境 cd /home/pi/src sudo wget http://curl.haxx.se/download/curl-7.24.0.tar.gz tar -zxvf curl-7.24.0.tar.gz cd curl-7.24.0 ./configure make sudo make install #安装pycurl cd /home/pi/src sudo wget http://pycurl.sourceforge.net/download/pycurl-7.19.0.tar.gz tar -zxvf pycurl-7.19.0.tar.gz cd pycurl-7.19.0 python3 setup.py install --curl-config=/usr/local/bin/curl-config #安装Python3 cd /home/pi/src sudo wget https://www.python.org/ftp/python/3.5.3/Python-3.5.3.tar.xz tar -xvf Python-3.5.3.tar.xz cd Python-3.5.3 ./configure --prefix=/usr/local/python3.5 make sudo make altinstall sudo ln -s /usr/local/python3.5/bin/python3.5 /usr/bin/python3 sudo ln -s /usr/local/python3.5/bin/pip3.5 /usr/bin/pip3