安装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>
相关推荐
HPC_fac1305206781643 分钟前
科研深度学习:如何精选GPU以优化服务器性能
服务器·人工智能·深度学习·神经网络·机器学习·数据挖掘·gpu算力
xiaoyalian6 小时前
R语言绘图过程中遇到图例的图块中出现字符“a“的解决方法
笔记·r语言·数据可视化
Red Red7 小时前
网安基础知识|IDS入侵检测系统|IPS入侵防御系统|堡垒机|VPN|EDR|CC防御|云安全-VDC/VPC|安全服务
网络·笔记·学习·安全·web安全
贰十六8 小时前
笔记:Centos Nginx Jdk Mysql OpenOffce KkFile Minio安装部署
笔记·nginx·centos
知兀8 小时前
Java的方法、基本和引用数据类型
java·笔记·黑马程序员
醉陌离9 小时前
渗透测试笔记——shodan(4)
笔记
LateBloomer7779 小时前
FreeRTOS——信号量
笔记·stm32·学习·freertos
legend_jz9 小时前
【Linux】线程控制
linux·服务器·开发语言·c++·笔记·学习·学习方法
Komorebi.py9 小时前
【Linux】-学习笔记04
linux·笔记·学习
余炜yw10 小时前
【LSTM实战】跨越千年,赋诗成文:用LSTM重现唐诗的韵律与情感
人工智能·rnn·深度学习