安装PaddleDetection-2.6.0版本-笔记

安装PaddleDetection-2.6.0版本-笔记

一、第一步先激活环境
conda activate base

conda activate base

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

conda deactivate

二、安装PaddleDetection2.6.0版本

#pip install PaddleDet==2.6.0
#切换版本可安装pip install PaddleDet==2.5.0
pip install PaddleDet==2.6.0

安装PaddleHub2.2.0

pip install paddlehub==2.2.0

如果报错信息再安装一下

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

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

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

四、安装完成测试代码
测试结果为:

PS E:\project\python> & D:/ProgramData/Anaconda3/python.exe 
2.6.0
PS E:\project\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详细情况

(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>

你可能感兴趣的:(人工智能,开发语言,Python,笔记,深度学习)