As of July 2018, Raspbian does not yet include the latest Python release, Python 3.7.0 This means we will have to build it ourselves, and here is how to do it.
- Install the required build-tools (some might already be installed on your system).
| sudo apt-get install build-essential libssl-dev libffi-dev python3-dev | |
| # solve TypeError: unsupported operand type(s) for -=: 'Retry' and 'int' | |
| python -m pip uninstall pip && sudo apt install python-pip --reinstall | |
| sudo pip install docker-compose |
| #!/bin/sh | |
| # Slightly modified to meet ArangoDB's needs. https://github.com/lumerit/s3-shell-backups | |
| NOWDATE=`date +%Y-%m-%d` | |
| LASTDATE=$(date +%Y-%m-%d --date='1 week ago') | |
| USERNAME="${ARANGODB_USERNAME}" | |
| PASSWORD="${ARANGODB_PASSWORD}" | |
| DATABASE='dbname' |
| import React from 'react' | |
| import { AppRegistry } from 'react-native' | |
| import setup from './setup' | |
| AppRegistry.registerComponent('ReactNavigationTest', setup) |
| # -*- coding: utf-8 -*- | |
| """ | |
| @author: Akagi201 | |
| """ | |
| from splinter.browser import Browser | |
| from time import sleep | |
| import traceback | |
| ###容错做的不好,考虑的情况也不够多,大家见谅 |
| package com.sjl.util; | |
| import android.app.Activity; | |
| import android.app.Application; | |
| import android.content.Context; | |
| import android.os.Bundle; | |
| import android.os.Handler; | |
| import android.util.Log; | |
| import java.util.List; |
| # https://cryptography.io/en/latest/installation/#using-your-own-openssl-on-os-x | |
| brew install pkg-config libffi | |
| export CFLAGS=-Qunused-arguments | |
| export CPPFLAGS=-Qunused-arguments | |
| export PKG_CONFIG_PATH=/usr/local/Cellar/libffi/3.0.13/lib/pkgconfig/ | |
| brew install openssl | |
| env ARCHFLAGS="-arch x86_64" LDFLAGS="-L/usr/local/opt/openssl/lib" CFLAGS="-I/usr/local/opt/openssl/include" pip install cryptography | |
| pip install cryptography | |
| pip install Scrapy |
| # https://cryptography.io/en/latest/installation/#building-cryptography-on-linux | |
| sudo yum install gcc libffi-devel python-devel openssl-devel | |
| pip install Scrapy |
| <!doctype html> | |
| <title>Site Maintenance</title> | |
| <style> | |
| body { text-align: center; padding: 150px; } | |
| h1 { font-size: 50px; } | |
| body { font: 20px Helvetica, sans-serif; color: #333; } | |
| article { display: block; text-align: left; width: 650px; margin: 0 auto; } | |
| a { color: #dc8100; text-decoration: none; } | |
| a:hover { color: #333; text-decoration: none; } | |
| </style> |