1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32
| # 用 ubuntu20.04 cd ~ sudo mkdir whl sudo mkdir etc # 安装 python3.9 sudo apt update sudo apt upgrade -y sudo apt install build-essential zlib1g-dev libbz2-dev libncurses5-dev libgdbm-dev libnss3-dev libssl-dev libreadline-dev libffi-dev wget -y wget https://www.python.org/ftp/python/3.9.6/Python-3.9.6.tgz tar -xzvf Python-3.9.6.tgz cd Python-3.9.6 ./configure --prefix=/usr/local/src/python39 # 配置安装位置 sudo make sudo make install sudo ln -s /usr/local/src/python39/bin/python3.9 /usr/bin/python3.9 sudo ln -s /usr/local/src/python39/bin/pip3.9 /usr/bin/pip3.9 # 安装 redis sudo apt-get install redis-server -y # 安装 mysql sudo apt-get install mysql-server -y # 安装 python 依赖库 cd ~/whl pip3.9 install *.whl pip3.9 install -i https://pypi.tuna.tsinghua.edu.cn/simple web3==5.30.0 pip3.9 install -i https://pypi.tuna.tsinghua.edu.cn/simple pysha3 pip3.9 install -i https://pypi.tuna.tsinghua.edu.cn/simple redis pip3.9 install -i https://pypi.tuna.tsinghua.edu.cn/simple aredis pip3.9 install -i https://pypi.tuna.tsinghua.edu.cn/simple aiohttp pip3.9 install -i https://pypi.tuna.tsinghua.edu.cn/simple pyyaml pip3.9 install -i https://pypi.tuna.tsinghua.edu.cn/simple pymysql pip3.9 install -i https://pypi.tuna.tsinghua.edu.cn/simple peewee pip3.9 install -i https://pypi.tuna.tsinghua.edu.cn/simple dingtalkchatbot
|