栏目分类:
子分类:
返回
名师互学网用户登录
快速导航关闭
当前搜索
当前分类
子分类
实用工具
热门搜索
名师互学网 > IT > 软件开发 > 后端开发 > Python

【Ubuntu 18】ubuntu 18 装机

Python 更新时间: 发布时间: IT归档 最新发布 模块sitemap 名妆网 法律咨询 聚返吧 英语巴士网 伯小乐 网商动力

【Ubuntu 18】ubuntu 18 装机

替换源

https://developer.aliyun.com/mirror/

安装opencv的的一些东西
sudo apt install build-essential cmake git pkg-config libgtk-3-dev -y
sudo apt install libavcodec-dev libavformat-dev libswscale-dev libv4l-dev libxvidcore-dev libx264-dev -y
sudo apt install libjpeg-dev libpng-dev libtiff-dev gfortran openexr libatlas-base-dev -y
sudo apt install python3-dev python3-numpy libtbb2 libtbb-dev libdc1394-22-dev -y


构建miniconda环境
wget http://mirrors.tuna.tsinghua.edu.cn/anaconda/miniconda/Miniconda3-latest-Linux-x86_64.sh -O /tmp/conda.sh && bash /tmp/conda.sh -b && rm /tmp/conda.sh
~/miniconda3/bin/conda init bash
source ~/.bashrc && source /root/miniconda3/bin/activate && conda activate base 
    && conda create -n py38 python=3.8 -y 
    && source ~/.bashrc && source /root/miniconda3/bin/activate && conda activate py38 
	&& pip install -i https://pypi.tuna.tsinghua.edu.cn/simple pip -U && pip install pip -U && pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple 
	&& pip install fastapi uvicorn python-multipart 
	&& pip install -r /deps/requirements.txt 
	&& python --version 


转载请注明:文章转载自 www.mshxw.com
本文地址:https://www.mshxw.com/it/1005538.html
我们一直用心在做
关于我们 文章归档 网站地图 联系我们

版权所有 (c)2021-2022 MSHXW.COM

ICP备案号:晋ICP备2021003244-6号