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

相关推荐
GREGGXU1 分钟前
Could not load the Qt platform plugin “xcb“ in ““ even though it was found.
linux·qt
optimistic_chen3 分钟前
【Redis 系列】持久化特性
linux·数据库·redis·分布式·中间件·持久化
食咗未5 分钟前
Linux tcpdump工具的使用
linux·服务器·网络·驱动开发·tcp/ip·测试工具·tcpdump
YJlio7 分钟前
WinObj 学习笔记(15.7):看懂内核对象管理器与命名空间的“地图”
linux·服务器·网络·windows·笔记·学习·微信
xingzhemengyou19 分钟前
Linux lastlog查询和显示所有用户最近一次登录信息
linux·服务器
运维管理10 分钟前
DELL R740服务器上,安装Windows Server 2022--学习篇
运维·服务器·windows
我的golang之路果然有问题11 分钟前
linux 个人笔记导出之网络,防火墙,定时,权限,后台
linux·运维·服务器·网络·笔记·个人笔记
Sapphire~12 分钟前
odoo-087 安装 npm (node ok npm not)
linux·运维·npm
唐装鼠30 分钟前
linux vscode解压版 AI账号无法登陆问题(浏览器无法打开vscode)
linux·运维·vscode
玉树临风江流儿31 分钟前
炸鸡派-echoAI机器人项目解析
linux