天择加密量化开放框架下载
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

73 lines
2.1 KiB

1 year ago
  1. sudo sed -i 's/deb.debian.org/mirrors.ustc.edu.cn/g' /etc/apt/sources.list.d/*
  2. sudo sed -i 's/security.debian.org/mirrors.ustc.edu.cn/g' /etc/apt/sources.list.d/*
  3. # 更新系统软件包
  4. sudo apt update && sudo apt upgrade -y
  5. # 安装 wget
  6. sudo apt install wget -y
  7. # 安装 htop
  8. sudo apt install htop -y
  9. # 安装 screen
  10. sudo apt install screen -y
  11. # 安装 gcc
  12. sudo apt install gcc -y
  13. # 安装 make
  14. sudo apt install make -y
  15. # 安装 vim
  16. sudo apt install vim -y
  17. # 安装 openssh-server
  18. sudo apt install openssh-server -y
  19. # 安装 openssh-client
  20. sudo apt install openssh-client -y
  21. # 安装 ssh(如果需要)
  22. sudo apt install ssh -y
  23. # 安装 tzdata
  24. sudo apt install tzdata -y
  25. sudo rm -f /etc/localtime
  26. sudo ln -s /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
  27. sudo echo 'Asia/Shanghai' > /etc/timezone
  28. date
  29. wget https://mirrors.tuna.tsinghua.edu.cn/anaconda/miniconda/Miniconda3-py311_24.3.0-0-Linux-x86_64.sh
  30. sh Miniconda3-py311_24.3.0-0-Linux-x86_64.sh
  31. # /home/coder/miniconda3 必须安装在这个目录下面
  32. rm -rf Miniconda3-py311_24.3.0-0-Linux-x86_64.sh
  33. pip install jupyterlab -i https://pypi.mirrors.ustc.edu.cn/simple
  34. # 下载 ta-lib
  35. # cd /data
  36. wget http://prdownloads.sourceforge.net/ta-lib/ta-lib-0.4.0-src.tar.gz
  37. tar -xzvf ta-lib-0.4.0-src.tar.gz
  38. cd ta-lib
  39. ./configure --prefix=/usr
  40. make
  41. sudo make install
  42. cd ..
  43. pip install TA-Lib -i https://pypi.mirrors.ustc.edu.cn/simple
  44. rm -rf ta-lib-0.4.0-src.tar.gz
  45. rm -rf ta-lib/
  46. pip install numpy -i https://pypi.mirrors.ustc.edu.cn/simple
  47. pip install pandas -i https://pypi.mirrors.ustc.edu.cn/simple
  48. pip install importlib_metadata -i https://pypi.mirrors.ustc.edu.cn/simple
  49. pip install tzlocal -i https://pypi.mirrors.ustc.edu.cn/simple
  50. pip install wechatpy -i https://pypi.mirrors.ustc.edu.cn/simple
  51. pip install pika -i https://pypi.mirrors.ustc.edu.cn/simple
  52. pip install websocket-client -i https://pypi.mirrors.ustc.edu.cn/simple
  53. pip install plotly -i https://pypi.mirrors.ustc.edu.cn/simple
  54. pip install pyarrow -i https://pypi.mirrors.ustc.edu.cn/simple
  55. pip install deap -i https://pypi.mirrors.ustc.edu.cn/simple
  56. pip install lightgbm -i https://pypi.mirrors.ustc.edu.cn/simple