购物券网站怎么做,礼县建设局网站,诚信企业查询系统,wordpress后台进目录
1 安装
2 使用 1 安装
#xff08;1#xff09;下载安装包
官网地址#xff1a;Unleash AI Innovation and Value | Anaconda
点击Free Download 按键。 然后 点击下图中的Download开始下载安装包。 #xff08;2#xff09;安装
在安装包路径下打开终端#…目录
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 使用
1conda新环境python38的创建
conda create -n python38 python3.8
2激活python38 env
# 列举当前所有环境
conda env listconda activate python38
3安装依赖库
以下安装的库仅作为示例具体需要安装什么库根据自己的需要来操作。
安装cpu版的tensorflow
pip3 install tensorflow-cpu2.10.1 -i https://pypi.tuna.tsinghua.edu.cn/simple
安装tflite
pip3 install tflite2.3.0 -i https://pypi.tuna.tsinghua.edu.cn/simple
安装torch
pip3 install torch1.8.1 -f https://download.pytorch.org/whl/cpu/stable -i https://pypi.tuna.tsinghua.edu.cn/simple
安装onnx
pip3 install onnx1.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 onnxpython3 -c import tflitepython3 -c import torchpython3 -c import torchvision
没有报错提示即是安装成功啦