Ubuntu服务器安装Miniconda

下载 Miniconda 安装脚本(如果能联网)

wget https://repo.anaconda.com/miniconda/Miniconda3-py39_24.1.2-0-Linux-x86_64.sh -O Miniconda3.sh

安装 Miniconda 到 /opt/conda

bash Miniconda3.sh -b -p /opt/conda

激活 conda

/opt/conda/bin/conda init bash

source ~/.bashrc

设置清华镜像

conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main

conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free

conda config --set show_channel_urls yes

创建 Python 3.8 环境

conda create -y -n heygem python=3.8

conda activate heygem

安装 flask

conda install -y flask

运行你的脚本

python /data/app_local.py

相关推荐
HideF2 小时前
Linux
linux·服务器·网络
Ruiery4 小时前
Linux 6.6内核内存管理深度解析(十三):slab/slub 分配器
linux·运维·服务器
乌恩大侠5 小时前
从 AI-RAN 到 AI Agent:基于 NVIDIA Nemotron 构建 5G/6G 智能网络故障诊断系统
服务器·人工智能·5g·o-ru·ai-ran·电信大模型
丰锋ff6 小时前
压缩命令笔记
linux
迪菲赫尔曼7 小时前
【基础篇 11】把官方源码放到服务器:版本、解压层级和安装位置,一次弄清楚
运维·服务器·开发语言·人工智能·python·yolo·目标检测
GeW8 小时前
产业新优势基础软件的人才底盘,从Linux与数据库开始
linux·数据库
by209998 小时前
Linux GCC/G++ 编译与 Makefile 构建
linux·运维·服务器·经验分享
迪菲赫尔曼8 小时前
【基础篇 12】把环境与源码接起来:检查 GPU,再安装服务器上的项目
运维·服务器·开发语言·人工智能·python·yolo·目标检测
cq林志炫9 小时前
两个Linux服务器之间同步文件
linux·运维·服务器
yyuuuzz9 小时前
云服务器安全组规则优先级的机制记录
运维·服务器·网络·安全·阿里云·aws