安装PaddleDetection-2.6.0版本-笔记

安装PaddleDetection-2.6.0版本-笔记

一、第一步先激活环境

conda activate base

bash 复制代码
conda activate base

安装完paddleDetection后要关闭conda激活环境

conda deactivate

bash 复制代码
conda deactivate

二、安装PaddleDetection2.6.0版本

bash 复制代码
#pip install PaddleDet==2.6.0
#切换版本可安装pip install PaddleDet==2.5.0
pip install PaddleDet==2.6.0

安装PaddleHub2.2.0

bash 复制代码
pip install paddlehub==2.2.0

如果报错信息再安装一下

bash 复制代码
pip install spyder==5.2.2

三、安装报错时处理办法:

报错信息:error info:

ERROR: Failed building wheel for pycocotools

重新安装pycocotools

pip install Cython

pip3 install pycocotools -i https://pypi.tuna.tsinghua.edu.cn/simple/ --trusted-host pypi.tuna.tsinghua.edu.cn

bash 复制代码
pip install Cython
pip3 install pycocotools -i https://pypi.tuna.tsinghua.edu.cn/simple/ --trusted-host pypi.tuna.tsinghua.edu.cn

报错时vc++ 14.0时解决办法:

选择安装vs-studio 2022/2019/... 安装或修改

打勾两项MSVC v140-VS 2015 C++生成工具(v14.00) 和window10/11 sdk

安装完后再重新运行下面命令就OK

bash 复制代码
pip3 install pycocotools -i https://pypi.tuna.tsinghua.edu.cn/simple/ --trusted-host pypi.tuna.tsinghua.edu.cn

四、安装完成测试代码

测试结果为:

bash 复制代码
PS E:\project\python> & D:/ProgramData/Anaconda3/python.exe 
2.6.0
PS E:\project\python>

测试代码:

python 复制代码
import ppdet
import warnings
warnings.filterwarnings("ignore", category=DeprecationWarning)
warnings.filterwarnings("ignore", message="Deprecated call to `pkg_resources.declare_namespace('zope')`")
warnings.filterwarnings("ignore", message="Deprecated call to `pkg_resources.declare_namespace('sphinxcontrib')`")
#
print(ppdet.__version__)

五、安装PaddleDetection2.6.0详细情况

bash 复制代码
(base) D:\ProgramData\Anaconda3>pip install PaddleDet==2.6.0
Collecting PaddleDet==2.6.0
  Using cached paddledet-2.6.0-py3-none-any.whl (812 kB)
Requirement already satisfied: typeguard in d:\programdata\anaconda3\lib\site-packages (from PaddleDet==2.6.0) (4.1.0)
Requirement already satisfied: shapely in d:\programdata\anaconda3\lib\site-packages (from PaddleDet==2.6.0) (2.0.1)
Requirement already satisfied: setuptools in d:\programdata\anaconda3\lib\site-packages (from PaddleDet==2.6.0) (68.0.0)
Requirement already satisfied: terminaltables in d:\programdata\anaconda3\lib\site-packages (from PaddleDet==2.6.0) (3.1.10)
Requirement already satisfied: motmetrics in d:\programdata\anaconda3\lib\site-packages (from PaddleDet==2.6.0) (1.4.0)
Requirement already satisfied: opencv-python<=4.6.0 in d:\programdata\anaconda3\lib\site-packages (from PaddleDet==2.6.0) (4.5.4.58)
Requirement already satisfied: Cython in d:\programdata\anaconda3\lib\site-packages (from PaddleDet==2.6.0) (0.29.32)
Requirement already satisfied: visualdl>=2.2.0 in d:\programdata\anaconda3\lib\site-packages (from PaddleDet==2.6.0) (2.5.3)
Requirement already satisfied: sklearn==0.0 in d:\programdata\anaconda3\lib\site-packages (from PaddleDet==2.6.0) (0.0)
Requirement already satisfied: tqdm in d:\programdata\anaconda3\lib\site-packages (from PaddleDet==2.6.0) (4.64.1)
Requirement already satisfied: lap in d:\programdata\anaconda3\lib\site-packages (from PaddleDet==2.6.0) (0.4.0)
Requirement already satisfied: numpy<1.24 in d:\programdata\anaconda3\lib\site-packages (from PaddleDet==2.6.0) (1.21.5)
Requirement already satisfied: scipy in d:\programdata\anaconda3\lib\site-packages (from PaddleDet==2.6.0) (1.9.1)
Requirement already satisfied: PyYAML in d:\programdata\anaconda3\lib\site-packages (from PaddleDet==2.6.0) (6.0)
Requirement already satisfied: pycocotools in d:\programdata\anaconda3\lib\site-packages (from PaddleDet==2.6.0) (2.0.6)
Requirement already satisfied: pyclipper in d:\programdata\anaconda3\lib\site-packages (from PaddleDet==2.6.0) (1.3.0.post4)
Requirement already satisfied: scikit-learn in d:\programdata\anaconda3\lib\site-packages (from sklearn==0.0->PaddleDet==2.6.0) (1.0.2)
Requirement already satisfied: pandas in d:\programdata\anaconda3\lib\site-packages (from visualdl>=2.2.0->PaddleDet==2.6.0) (1.4.4)
Requirement already satisfied: matplotlib in d:\programdata\anaconda3\lib\site-packages (from visualdl>=2.2.0->PaddleDet==2.6.0) (3.5.2)
Requirement already satisfied: flask>=1.1.1 in d:\programdata\anaconda3\lib\site-packages (from visualdl>=2.2.0->PaddleDet==2.6.0) (2.3.2)
Requirement already satisfied: Pillow>=7.0.0 in d:\programdata\anaconda3\lib\site-packages (from visualdl>=2.2.0->PaddleDet==2.6.0) (9.2.0)
Requirement already satisfied: bce-python-sdk in d:\programdata\anaconda3\lib\site-packages (from visualdl>=2.2.0->PaddleDet==2.6.0) (0.8.87)
Requirement already satisfied: six>=1.14.0 in d:\programdata\anaconda3\lib\site-packages (from visualdl>=2.2.0->PaddleDet==2.6.0) (1.16.0)
Requirement already satisfied: Flask-Babel>=3.0.0 in d:\programdata\anaconda3\lib\site-packages (from visualdl>=2.2.0->PaddleDet==2.6.0) (3.1.0)
Requirement already satisfied: protobuf>=3.20.0 in d:\programdata\anaconda3\lib\site-packages (from visualdl>=2.2.0->PaddleDet==2.6.0) (3.20.0)
Requirement already satisfied: rarfile in d:\programdata\anaconda3\lib\site-packages (from visualdl>=2.2.0->PaddleDet==2.6.0) (4.0)
Requirement already satisfied: requests in d:\programdata\anaconda3\lib\site-packages (from visualdl>=2.2.0->PaddleDet==2.6.0) (2.28.1)
Requirement already satisfied: packaging in d:\programdata\anaconda3\lib\site-packages (from visualdl>=2.2.0->PaddleDet==2.6.0) (21.3)
Requirement already satisfied: psutil in d:\programdata\anaconda3\lib\site-packages (from visualdl>=2.2.0->PaddleDet==2.6.0) (5.9.0)
Requirement already satisfied: xmltodict>=0.12.0 in d:\programdata\anaconda3\lib\site-packages (from motmetrics->PaddleDet==2.6.0) (0.13.0)
Requirement already satisfied: colorama in d:\programdata\anaconda3\lib\site-packages (from tqdm->PaddleDet==2.6.0) (0.4.5)
Requirement already satisfied: importlib-metadata>=3.6 in d:\programdata\anaconda3\lib\site-packages (from typeguard->PaddleDet==2.6.0) (4.11.3)
Requirement already satisfied: typing-extensions>=4.7.0 in d:\programdata\anaconda3\lib\site-packages (from typeguard->PaddleDet==2.6.0) (4.7.1)
Requirement already satisfied: click>=8.1.3 in d:\programdata\anaconda3\lib\site-packages (from flask>=1.1.1->visualdl>=2.2.0->PaddleDet==2.6.0) (8.1.6)
Requirement already satisfied: blinker>=1.6.2 in d:\programdata\anaconda3\lib\site-packages (from flask>=1.1.1->visualdl>=2.2.0->PaddleDet==2.6.0) (1.6.2)
Requirement already satisfied: Werkzeug>=2.3.3 in d:\programdata\anaconda3\lib\site-packages (from flask>=1.1.1->visualdl>=2.2.0->PaddleDet==2.6.0) (2.3.6)
Requirement already satisfied: itsdangerous>=2.1.2 in d:\programdata\anaconda3\lib\site-packages (from flask>=1.1.1->visualdl>=2.2.0->PaddleDet==2.6.0) (2.1.2)
Requirement already satisfied: Jinja2>=3.1.2 in d:\programdata\anaconda3\lib\site-packages (from flask>=1.1.1->visualdl>=2.2.0->PaddleDet==2.6.0) (3.1.2)
Requirement already satisfied: Babel>=2.12 in d:\programdata\anaconda3\lib\site-packages (from Flask-Babel>=3.0.0->visualdl>=2.2.0->PaddleDet==2.6.0) (2.12.1)
Requirement already satisfied: pytz>=2022.7 in d:\programdata\anaconda3\lib\site-packages (from Flask-Babel>=3.0.0->visualdl>=2.2.0->PaddleDet==2.6.0) (2023.3)
Requirement already satisfied: zipp>=0.5 in d:\programdata\anaconda3\lib\site-packages (from importlib-metadata>=3.6->typeguard->PaddleDet==2.6.0) (3.8.0)
Requirement already satisfied: fonttools>=4.22.0 in d:\programdata\anaconda3\lib\site-packages (from matplotlib->visualdl>=2.2.0->PaddleDet==2.6.0) (4.25.0)
Requirement already satisfied: python-dateutil>=2.7 in d:\programdata\anaconda3\lib\site-packages (from matplotlib->visualdl>=2.2.0->PaddleDet==2.6.0) (2.8.2)
Requirement already satisfied: kiwisolver>=1.0.1 in d:\programdata\anaconda3\lib\site-packages (from matplotlib->visualdl>=2.2.0->PaddleDet==2.6.0) (1.4.2)
Requirement already satisfied: pyparsing>=2.2.1 in d:\programdata\anaconda3\lib\site-packages (from matplotlib->visualdl>=2.2.0->PaddleDet==2.6.0) (3.0.9)
Requirement already satisfied: cycler>=0.10 in d:\programdata\anaconda3\lib\site-packages (from matplotlib->visualdl>=2.2.0->PaddleDet==2.6.0) (0.11.0)
Requirement already satisfied: pycryptodome>=3.8.0 in d:\programdata\anaconda3\lib\site-packages (from bce-python-sdk->visualdl>=2.2.0->PaddleDet==2.6.0) (3.18.0)
Requirement already satisfied: future>=0.6.0 in d:\programdata\anaconda3\lib\site-packages (from bce-python-sdk->visualdl>=2.2.0->PaddleDet==2.6.0) (0.18.2)
Requirement already satisfied: idna<4,>=2.5 in d:\programdata\anaconda3\lib\site-packages (from requests->visualdl>=2.2.0->PaddleDet==2.6.0) (3.3)
Requirement already satisfied: urllib3<1.27,>=1.21.1 in d:\programdata\anaconda3\lib\site-packages (from requests->visualdl>=2.2.0->PaddleDet==2.6.0) (1.26.11)
Requirement already satisfied: charset-normalizer<3,>=2 in d:\programdata\anaconda3\lib\site-packages (from requests->visualdl>=2.2.0->PaddleDet==2.6.0) (2.0.4)
Requirement already satisfied: certifi>=2017.4.17 in d:\programdata\anaconda3\lib\site-packages (from requests->visualdl>=2.2.0->PaddleDet==2.6.0) (2022.9.14)
Requirement already satisfied: threadpoolctl>=2.0.0 in d:\programdata\anaconda3\lib\site-packages (from scikit-learn->sklearn==0.0->PaddleDet==2.6.0) (2.2.0)
Requirement already satisfied: joblib>=0.11 in d:\programdata\anaconda3\lib\site-packages (from scikit-learn->sklearn==0.0->PaddleDet==2.6.0) (1.1.0)
Requirement already satisfied: MarkupSafe>=2.0 in d:\programdata\anaconda3\lib\site-packages (from Jinja2>=3.1.2->flask>=1.1.1->visualdl>=2.2.0->PaddleDet==2.6.0) (2.1.3)
Installing collected packages: PaddleDet
  Attempting uninstall: PaddleDet
    Found existing installation: paddledet 2.5.0
    Uninstalling paddledet-2.5.0:
      Successfully uninstalled paddledet-2.5.0
Successfully installed PaddleDet-2.6.0

(base) D:\ProgramData\Anaconda3>
相关推荐
sp_fyf_20242 小时前
【大语言模型】ACL2024论文-35 WAV2GLOSS:从语音生成插值注解文本
人工智能·深度学习·神经网络·机器学习·语言模型·自然语言处理·数据挖掘
AITIME论道2 小时前
论文解读 | EMNLP2024 一种用于大语言模型版本更新的学习率路径切换训练范式
人工智能·深度学习·学习·机器学习·语言模型
明明真系叻3 小时前
第二十六周机器学习笔记:PINN求正反解求PDE文献阅读——正问题
人工智能·笔记·深度学习·机器学习·1024程序员节
XianxinMao3 小时前
Transformer 架构对比:Dense、MoE 与 Hybrid-MoE 的优劣分析
深度学习·架构·transformer
HyperAI超神经5 小时前
未来具身智能的触觉革命!TactEdge传感器让机器人具备精细触觉感知,实现织物缺陷检测、灵巧操作控制
人工智能·深度学习·机器人·触觉传感器·中国地质大学·机器人智能感知·具身触觉
mashagua5 小时前
RPA系列-uipath 学习笔记3
笔记·学习·rpa
nikoni235 小时前
828考研资料汇总
笔记·其他·硬件工程
请站在我身后6 小时前
复现Qwen-Audio 千问
人工智能·深度学习·语言模型·语音识别
青い月の魔女7 小时前
数据结构初阶---二叉树
c语言·数据结构·笔记·学习·算法
qq_589568108 小时前
node.js web框架koa的使用
笔记·信息可视化·echarts