0
点赞
收藏
分享

微信扫一扫

CSS中伪元素和伪类的区别和作用?

爱情锦囊 2024-02-24 阅读 13
ubuntulinux

目录

1 安装

2 使用


1 安装

(1)下载安装包

官网地址:Unleash AI Innovation and Value | Anaconda

点击Free Download 按键。

 然后 点击下图中的Download开始下载安装包。

(2)安装

在安装包路径下打开终端,输入如下命令:

bash Anaconda3-2023.03-1-Linux-x86_64.sh

在需要的地方,按Enter键。

Please answer 'yes' or 'no':'
>>> 

输入:yes

Anaconda3 will now be installed into this location:

确认好安装路径后,按Enter键。

等待一小段时间。。。。。。。。

输入:yes

(3)配置环境变量

打开环境变量面板

gedit ~/.bashrc

添加安装路径

export PATH=$PATH:/home/happy/anaconda3/bin

注意:路径根据自己的实际去填写。

保存文件并关闭。

更新环境变量

source ~/.bashrc

(4)测试

测试是否成功安装,输入如下:

conda --version

2 使用

(1)conda新环境python38的创建

conda create -n python38 python=3.8

(2)激活python38 env

# 列举当前所有环境
conda env list

conda activate python38

(3)安装依赖库

以下安装的库仅作为示例,具体需要安装什么库根据自己的需要来操作。

安装cpu版的tensorflow

pip3 install tensorflow-cpu==2.10.1 -i https://pypi.tuna.tsinghua.edu.cn/simple 

安装tflite

pip3 install tflite==2.3.0 -i https://pypi.tuna.tsinghua.edu.cn/simple 

安装torch

pip3 install torch==1.8.1 -f https://download.pytorch.org/whl/cpu/stable -i https://pypi.tuna.tsinghua.edu.cn/simple 

安装onnx

pip3 install onnx==1.11.0 -i https://pypi.tuna.tsinghua.edu.cn/simple

安装torchvision

pip install torchvision -i https://pypi.tuna.tsinghua.edu.cn/simple

测试依赖库是否成功安装的方法如下:

python3 -c "import tensorflow "

python3 -c "import onnx"

python3 -c "import tflite"

python3 -c "import torch"

python3 -c "import torchvision"

没有报错提示,即是安装成功啦!!!

举报

相关推荐

0 条评论