|
|
|
# 更新系统软件包
|
|
sudo su
|
|
apt update
|
|
apt install sudo
|
|
sudo su
|
|
sudo apt upgrade -y
|
|
|
|
sudo sed -i 's/deb.debian.org/mirrors.ustc.edu.cn/g' /etc/apt/sources.list.d/*
|
|
sudo sed -i 's/security.debian.org/mirrors.ustc.edu.cn/g' /etc/apt/sources.list.d/*
|
|
|
|
sudo apt install iputils-ping -y
|
|
# 安装 wget
|
|
sudo apt install wget -y
|
|
|
|
# 安装 htop
|
|
sudo apt install htop -y
|
|
|
|
# 安装 screen
|
|
sudo apt install screen -y
|
|
|
|
# 安装 gcc
|
|
sudo apt install gcc -y
|
|
|
|
# 安装 make
|
|
sudo apt install make -y
|
|
|
|
# 安装 vim
|
|
sudo apt install vim -y
|
|
|
|
# 安装 openssh-server
|
|
sudo apt install openssh-server -y
|
|
|
|
# 安装 openssh-client
|
|
sudo apt install openssh-client -y
|
|
|
|
# 安装 ssh(如果需要)
|
|
sudo apt install ssh -y
|
|
|
|
# 安装 tzdata
|
|
sudo apt install tzdata -y
|
|
|
|
sudo rm -f /etc/localtime
|
|
sudo ln -s /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
|
|
sudo echo 'Asia/Shanghai' > /etc/timezone
|
|
date
|
|
|
|
# cd /home/coder
|
|
wget https://mirrors.tuna.tsinghua.edu.cn/anaconda/miniconda/Miniconda3-py311_24.3.0-0-Linux-x86_64.sh
|
|
sh Miniconda3-py311_24.3.0-0-Linux-x86_64.sh
|
|
# /home/coder/miniconda3 必须安装在这个目录下面
|
|
rm -rf Miniconda3-py311_24.3.0-0-Linux-x86_64.sh
|
|
|
|
pip install jupyterlab -i https://pypi.mirrors.ustc.edu.cn/simple
|
|
|
|
# 下载 ta-lib
|
|
# cd /data
|
|
cd tz_crypto_pub
|
|
# wget http://prdownloads.sourceforge.net/ta-lib/ta-lib-0.4.0-src.tar.gz
|
|
tar -xzvf ta-lib-0.4.0-src.tar.gz
|
|
cd ta-lib
|
|
./configure --prefix=/usr
|
|
make
|
|
sudo make install
|
|
cd ..
|
|
pip install TA-Lib -i https://pypi.mirrors.ustc.edu.cn/simple
|
|
rm -rf ta-lib-0.4.0-src.tar.gz
|
|
rm -rf ta-lib/
|
|
|
|
pip uninstall numpy -y
|
|
pip install numpy==1.24.4 -i https://pypi.mirrors.ustc.edu.cn/simple
|
|
pip install pandas -i https://pypi.mirrors.ustc.edu.cn/simple
|
|
pip install importlib_metadata -i https://pypi.mirrors.ustc.edu.cn/simple
|
|
pip install tzlocal -i https://pypi.mirrors.ustc.edu.cn/simple
|
|
pip install wechatpy -i https://pypi.mirrors.ustc.edu.cn/simple
|
|
pip install pika -i https://pypi.mirrors.ustc.edu.cn/simple
|
|
pip install websocket-client -i https://pypi.mirrors.ustc.edu.cn/simple
|
|
pip install plotly -i https://pypi.mirrors.ustc.edu.cn/simple
|
|
pip install pyarrow -i https://pypi.mirrors.ustc.edu.cn/simple
|
|
pip install deap -i https://pypi.mirrors.ustc.edu.cn/simple
|
|
pip install lightgbm -i https://pypi.mirrors.ustc.edu.cn/simple
|
|
pip install orjson -i https://pypi.mirrors.ustc.edu.cn/simple
|
|
pip install numba -i https://pypi.mirrors.ustc.edu.cn/simple
|
|
|
|
pip install binance-futures-connector
|
|
pip install binance-connector
|
|
pip install scikit-optimize -i https://pypi.tuna.tsinghua.edu.cn/simple
|
|
pip install matplotlib -i https://pypi.tuna.tsinghua.edu.cn/simple
|
|
pip install sortedcontainers -i https://pypi.tuna.tsinghua.edu.cn/simple
|