#!/bin/bash
# 编译Python文件为pyc
python -m compileall -b .
# 启动Flask应用
gunicorn -w 4 -b 127.0.0.1:5000 flask_:app &
# 启动master脚本
conda config --set auto_activate_base false
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
``` | |
wget https://bootstrap.pypa.io/get-pip.py | |
python get-pip.py | |
``` |
sudo apt update
sudo apt upgrade
安装依赖
dpkg: error processing package nvidia-dkms-525(--configure):
installed nvidia-dkms-525 package post-installation script subprocess returned error exit status 10
Examining the /var/lib/dkms/nvidia/525.78.01/build/make.log reveals multiple
cc: error: unrecognized command-line option ‘-ftrivial-auto-var-init=zero’
SOLVE:
sudo apt purge *nvidia* && sudo apt autoremove
HOME:Ctrl + A
END:Ctrl + E
download yt-dlp(macos version) from https://github.com/yt-dlp/yt-dlp
chmod u+r ./yt-dlp_macos
./yt-dlp_macos -F 'your-url'
- install Anaconda
- conda env -name your_env_name python=3.11
- conda activate your_env_name
- install git bash from official
- install visual build tools
https://github.com/bycloudai/InstallVSBuildToolsWindows
6.install torch torchaudio torchvision
Use another iso.
I use a new iso named "Ubuntu_23.10_live_server_arm64.iso"
Install desktop for it
sudo apt update
sudo apt install ubuntu-desktop
sudo dpkg --configure -a
sudo apt remove open-vm-tools
sudo apt install open-vm-tools-desktop
reboot