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

相关推荐
AnalogElectronic15 小时前
linux 测试网络和端口是否连通的命令详解
linux·网络·php
Edward1111111116 小时前
4月28日防火墙问题
linux·运维·服务器
拾贰_C16 小时前
【Agent | openai | Streaming | 】流式输出Streaming
ubuntu·面试·prompt
想学后端的前端工程师16 小时前
【补充内外网突然不通的情况】
运维·服务器
子琦啊16 小时前
【算法复习】字符串 | 两个底层直觉,吃透高频题
linux·运维·算法
跨境数据猎手17 小时前
跨境独立站系统技术拆解(附带源码)
服务器·前端·php
AOwhisky17 小时前
Kubernetes 学习笔记:集群管理、命名空间与 Pod 基础
linux·运维·笔记·学习·云原生·kubernetes
小龙在慢慢变强..18 小时前
目录结构(FHS 标准)
linux·运维·服务器
2035去旅行18 小时前
嵌入式开发,如何选择C标准库
linux·arm开发