一、安装paddle
- 1. 创建conda虚拟环境
conda create -n PaddleEnv python=3.7
activate PaddleEnv
- 2. 安装paddle
python3 -m pip install paddlepaddle-gpu==2.0.0.post110 -f https://paddlepaddle.org.cn/whl/stable.html
- 3. 安装完成后您可以使用
python
或python3
进入python解释器,输入import paddle
,再输入paddle.utils.run_check()
如果出现PaddlePaddle is installed successfully!
,说明您已成功安装。
二、paddleX的安装
pip install paddlex -i https://mirror.baidu.com/pypi/simple
报错参考 三、pycocotools安装问题
三、pycocotools安装问题
1、下载安装Microsoft Visual C++ 2015 build tools:
百度云离线版链接:https://pan.baidu.com/s/1sYJITwznqovg5k0q_OowYw?pwd=dnu9
提取码:dnu9或:https://go.microsoft.com/fwlink/?LinkId=691126
2、文件后缀是.iso文件,打开方式选择文件资源管理器;
3、自定义安装,选择一个即可。
pip install pycocotools
或者
pip install pycocotools==2.0
转二,继续安装paddlex即可。
四、如何卸载PaddlePaddle
请使用以下命令卸载PaddlePaddle:
-
CPU版本的PaddlePaddle:
python -m pip uninstall paddlepaddle
-
GPU版本的PaddlePaddle:
python -m pip uninstall paddlepaddle-gpu
五、pip list
Package Version
------------------- -------------
astor 0.8.1
atomicwrites 1.4.0
attrs 21.4.0
Babel 2.9.1
bce-python-sdk 0.8.64
certifi 2021.10.8
cfgv 3.3.1
chardet 4.0.0
charset-normalizer 2.0.12
click 8.0.4
colorama 0.4.4
cycler 0.11.0
Cython 0.29.28
decorator 5.1.1
distlib 0.3.4
et-xmlfile 1.1.0
filelock 3.6.0
flake8 4.0.1
flake8-import-order 0.18.1
Flask 2.0.3
Flask-Babel 2.0.0
Flask-Cors 3.0.10
fonttools 4.29.1
future 0.18.2
identify 2.4.11
idna 3.3
importlib-metadata 4.2.0
iniconfig 1.1.1
itsdangerous 2.1.0
Jinja2 3.0.3
joblib 1.1.0
kiwisolver 1.3.2
lap 0.4.0
MarkupSafe 2.1.0
matplotlib 3.5.1
mccabe 0.6.1
motmetrics 1.2.0
nodeenv 1.6.0
numpy 1.19.3
opencv-python 4.5.5.62
openpyxl 3.0.9
packaging 21.3
paddlepaddle-gpu 2.2.2.post110
paddleslim 2.2.1
paddlex 2.1.0
pandas 1.3.5
Pillow 9.0.1
pip 21.2.4
platformdirs 2.5.1
pluggy 1.0.0
pre-commit 2.17.0
protobuf 3.19.4
py 1.11.0
py-cpuinfo 8.0.0
pycocotools 2.0
pycodestyle 2.8.0
pycryptodome 3.14.1
pyflakes 2.4.0
pyparsing 3.0.7
pytest 7.0.1
pytest-benchmark 3.4.1
python-dateutil 2.8.2
pytz 2021.3
PyYAML 6.0
pyzmq 22.3.0
requests 2.27.1
scikit-learn 0.23.2
scipy 1.7.3
setuptools 58.0.4
Shapely 1.8.1.post1
shellcheck-py 0.8.0.4
six 1.16.0
threadpoolctl 3.1.0
toml 0.10.2
tomli 2.0.1
tqdm 4.63.0
typing_extensions 4.1.1
urllib3 1.26.8
virtualenv 20.13.2
visualdl 2.2.3
Werkzeug 2.0.3
wheel 0.37.1
wincertstore 0.2
xmltodict 0.12.0
zipp 3.7.0