| @ -0,0 +1,73 @@ | |||
| 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 update && sudo apt upgrade -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 | |||
| 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 | |||
| 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 install numpy -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 | |||