安装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>
相关推荐
minos.cpp2 小时前
《Java并发编程的艺术》笔记 —— 第一章
java·笔记·idea
lqqjuly2 小时前
影响神经网络速度的因素- FLOPs、MAC、并行度以及计算平台
人工智能·深度学习·神经网络
青椒大仙KI112 小时前
24/11/5 算法笔记 DBSCAN聚类算法
笔记·算法·聚类
charles_vaez4 小时前
开源模型应用落地-glm模型小试-glm-4-9b-chat-Gradio集成(三)
深度学习·语言模型·自然语言处理
瑞金彭于晏8 小时前
墨菲定律是什么?超详细+举例子+通俗易懂版!
笔记
我是汉堡请多指教8 小时前
网络学习笔记---客户端和服务端
笔记
FF_y9 小时前
Hive学习笔记
hive·笔记·学习
深度学习实战训练营10 小时前
BERT的新闻标题生成
人工智能·深度学习·bert
raoxiaoya10 小时前
本地部署bert-base-chinese模型交互式问答,gradio
人工智能·深度学习·bert
cbldzz10 小时前
【Python 学习笔记】json
笔记·学习·json