天择加密量化开放框架下载
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.

78 lines
2.1 KiB

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