先安装paddle,我不需要gpu,所以选择cpu安装。
pip install paddlepaddle==2.2.1 -i https://mirror.baidu.com/pypi/simple
pip install paddlepaddle==2.2.1 -i https://mirror.baidu.com/pypi/simple
GPU的安装方式如下
# CUDA10.1
pip install paddlepaddle-gpu==2.2.1.post101 -f https://www.paddlepaddle.org.cn/whl/linux/mkl/avx/stable.html
然后安装paddlex
直接上代码:
pip install paddlex -i https://pypi.tuna.tsinghua.edu.cn/simple
安装过程中可能numpy没有安装,导致报错,但是不用担心,耐心等待,它自动安装。最后多次报错,多次自动安装,最后安装成功。
请看我的安装过程,速度挺快
(paddlex) C:\Users\YANG>pip install paddlex -i https://pypi.tuna.tsinghua.edu.cn/simple
Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple
Collecting paddlex
Downloading https://pypi.tuna.tsinghua.edu.cn/packages/ca/03/b401c6a34685aa698e7c2fbcfad029892cbfa4b562eaaa7722037fef86ed/paddlex-2.1.0-py3-none-any.whl (1.6 MB)
|████████████████████████████████| 1.6 MB 1.3 MB/s
Collecting chardet
Downloading https://pypi.tuna.tsinghua.edu.cn/packages/19/c7/fa589626997dd07bd87d9269342ccb74b1720384a4d739a1872bd84fbe68/chardet-4.0.0-py2.py3-none-any.whl (178 kB)
|████████████████████████████████| 178 kB 1.6 MB/s
Collecting pycocotools
Downloading https://pypi.tuna.tsinghua.edu.cn/packages/75/5c/ac61ea715d7a89ecc31c090753bde28810238225ca8b71778dfe3e6a68bc/pycocotools-2.0.4.tar.gz (106 kB)
|████████████████████████████████| 106 kB 819 kB/s
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing wheel metadata ... done
Collecting shapely>=1.7.0
Downloading https://pypi.tuna.tsinghua.edu.cn/packages/1a/7c/30e9207842d79b45bbd9640846142b10c5ccc74db8bf24e39e03639a7de2/Shapely-1.8.1.post1-cp36-cp36m-win_amd64.whl (1.3 MB)
|████████████████████████████████| 1.3 MB 1.3 MB/s
Collecting scipy
Using cached https://pypi.tuna.tsinghua.edu.cn/packages/f3/9f/80522344838ae24cac9e945240436269cbb92349f7f1f4c9dfc10cb6bad5/scipy-1.5.4-cp36-cp36m-win_amd64.whl (31.2 MB)
Collecting pyyaml
Downloading https://pypi.tuna.tsinghua.edu.cn/packages/89/26/0bfd7b756b34c68f8fd158b7bc762b6b1705fc1b3cebf4cdbb53fd9ea75b/PyYAML-6.0-cp36-cp36m-win_amd64.whl (153 kB)
|████████████████████████████████| 153 kB 1.7 MB/s
Collecting opencv-python
Using cached https://pypi.tuna.tsinghua.edu.cn/packages/48/c3/798bd7b8f78430f82ec0660b753106717e4e4bb8032ce56f77d8577cb24b/opencv_python-4.5.5.64-cp36-abi3-win_amd64.whl (35.4 MB)
Collecting motmetrics
Downloading https://pypi.tuna.tsinghua.edu.cn/packages/9c/28/9c3bc8e2a87f4c9e7b04ab72856ec7f9895a66681a65973ffaf9562ef879/motmetrics-1.2.0-py3-none-any.whl (151 kB)
|████████████████████████████████| 151 kB 409 kB/s
Collecting tqdm
Downloading https://pypi.tuna.tsinghua.edu.cn/packages/81/1c/93a2b77b97cdba15a59c3d2d03e53d3292158d1106d37f579069abd90ece/tqdm-4.63.0-py2.py3-none-any.whl (76 kB)
|████████████████████████████████| 76 kB 1.0 MB/s
Collecting paddleslim==2.2.1
Downloading https://pypi.tuna.tsinghua.edu.cn/packages/0b/dc/f46c4669d4cb35de23581a2380d55bf9d38bb6855aab1978fdb956d85da6/paddleslim-2.2.1-py3-none-any.whl (310 kB)
|████████████████████████████████| 310 kB 595 kB/s
Collecting visualdl>=2.2.2
Downloading https://pypi.tuna.tsinghua.edu.cn/packages/87/c8/10d0d24822637d8e5493a73ad118640530195e45b1c71ae0e60606ff5f0e/visualdl-2.2.3-py3-none-any.whl (2.7 MB)
|████████████████████████████████| 2.7 MB 1.7 MB/s
Collecting flask-cors
Downloading https://pypi.tuna.tsinghua.edu.cn/packages/db/84/901e700de86604b1c4ef4b57110d4e947c218b9997adf5d38fa7da493bce/Flask_Cors-3.0.10-py2.py3-none-any.whl (14 kB)
Collecting scikit-learn==0.23.2
Downloading https://pypi.tuna.tsinghua.edu.cn/packages/f0/33/3091edea96a9cb93e5827fb518074a1de8e151fc7ac0200d028f701f7cd4/scikit_learn-0.23.2-cp36-cp36m-win_amd64.whl (6.8 MB)
|████████████████████████████████| 6.8 MB 2.2 MB/s
Collecting openpyxl
Using cached https://pypi.tuna.tsinghua.edu.cn/packages/1c/a6/8ce4d2ef2c29be3235c08bb00e0b81e29d38ebc47d82b17af681bf662b74/openpyxl-3.0.9-py2.py3-none-any.whl (242 kB)
Collecting colorama
Using cached https://pypi.tuna.tsinghua.edu.cn/packages/44/98/5b86278fbbf250d239ae0ecb724f8572af1c91f4a11edf4d36a206189440/colorama-0.4.4-py2.py3-none-any.whl (16 kB)
Collecting lap
Downloading https://pypi.tuna.tsinghua.edu.cn/packages/bf/64/d9fb6a75b15e783952b2fec6970f033462e67db32dc43dfbb404c14e91c2/lap-0.4.0.tar.gz (1.5 MB)
|████████████████████████████████| 1.5 MB 819 kB/s
Collecting pyzmq
Downloading https://pypi.tuna.tsinghua.edu.cn/packages/a6/e2/85a22efc616e86658f9fe6b72157bddca8f01e743c96985d197829f15947/pyzmq-22.3.0-cp36-cp36m-win_amd64.whl (1.1 MB)
|████████████████████████████████| 1.1 MB 819 kB/s
Collecting pillow
Using cached https://pypi.tuna.tsinghua.edu.cn/packages/8f/10/c8dc9fff37b69b5962b7783ab4835611e83dada453cd9913d82ca2a1321b/Pillow-8.4.0-cp36-cp36m-win_amd64.whl (3.2 MB)
Collecting matplotlib
Using cached https://pypi.tuna.tsinghua.edu.cn/packages/da/75/7bb16e22aa3f8d23a3afd065a7c933de71b67561c4561cf162fbc5d94221/matplotlib-3.3.4-cp36-cp36m-win_amd64.whl (8.5 MB)
Collecting joblib>=0.11
Using cached https://pypi.tuna.tsinghua.edu.cn/packages/3e/d5/0163eb0cfa0b673aa4fe1cd3ea9d8a81ea0f32e50807b0c295871e4aab2e/joblib-1.1.0-py2.py3-none-any.whl (306 kB)
Collecting numpy>=1.13.3
Using cached https://pypi.tuna.tsinghua.edu.cn/packages/ea/bc/da526221bc111857c7ef39c3af670bbcf5e69c247b0d22e51986f6d0c5c2/numpy-1.19.5-cp36-cp36m-win_amd64.whl (13.2 MB)
Collecting threadpoolctl>=2.0.0
Downloading https://pypi.tuna.tsinghua.edu.cn/packages/61/cf/6e354304bcb9c6413c4e02a747b600061c21d38ba51e7e544ac7bc66aecc/threadpoolctl-3.1.0-py3-none-any.whl (14 kB)
Collecting pre-commit
Downloading https://pypi.tuna.tsinghua.edu.cn/packages/d6/a0/9c06353771c8dae6db437dd513a885eccdb1566cb332569130484eddf4e7/pre_commit-2.17.0-py2.py3-none-any.whl (195 kB)
|████████████████████████████████| 195 kB 242 kB/s
Collecting shellcheck-py
Downloading https://pypi.tuna.tsinghua.edu.cn/packages/11/b7/66ce2edd9af155807286185eecf4e601d05f50965c3812a07e7e048022f0/shellcheck_py-0.8.0.3-py2.py3-none-win_amd64.whl (1.5 MB)
|████████████████████████████████| 1.5 MB 726 kB/s
Collecting six>=1.14.0
Using cached https://pypi.tuna.tsinghua.edu.cn/packages/d9/5a/e7c31adbe875f2abbb91bd84cf2dc52d792b5a01506781dbcf25c91daf11/six-1.16.0-py2.py3-none-any.whl (11 kB)
Collecting protobuf>=3.11.0
Downloading https://pypi.tuna.tsinghua.edu.cn/packages/89/2b/866f78fda94616d8e80227b12e56e6a21474a7b2f45582b04d13428cc428/protobuf-3.19.4-cp36-cp36m-win_amd64.whl (897 kB)
|████████████████████████████████| 897 kB 504 kB/s
Collecting Flask-Babel>=1.0.0
Downloading https://pypi.tuna.tsinghua.edu.cn/packages/ab/3e/02331179ffab8b79e0383606a028b6a60fb1b4419b84935edd43223406a0/Flask_Babel-2.0.0-py3-none-any.whl (9.3 kB)
Collecting flask>=1.1.1
Downloading https://pypi.tuna.tsinghua.edu.cn/packages/cd/77/59df23681f4fd19b7cbbb5e92484d46ad587554f5d490f33ef907e456132/Flask-2.0.3-py3-none-any.whl (95 kB)
|████████████████████████████████| 95 kB 825 kB/s
Collecting flake8>=3.7.9
Downloading https://pypi.tuna.tsinghua.edu.cn/packages/34/39/cde2c8a227abb4f9ce62fe55586b920f438f1d2903a1a22514d0b982c333/flake8-4.0.1-py2.py3-none-any.whl (64 kB)
|████████████████████████████████| 64 kB 512 kB/s
Collecting bce-python-sdk
Downloading https://pypi.tuna.tsinghua.edu.cn/packages/55/ef/2a7e6c7692a036bae2570a9bcdcd7963ea54e07db97b4554c24d3cfacb21/bce-python-sdk-0.8.64.tar.gz (127 kB)
|████████████████████████████████| 127 kB 930 kB/s
Collecting pandas
Using cached https://pypi.tuna.tsinghua.edu.cn/packages/79/87/8bb36bd4ebae147612c73d1bdc1385db7beebb9eb141c4bfefb33f52c87c/pandas-1.1.5-cp36-cp36m-win_amd64.whl (8.7 MB)
Collecting requests
Using cached https://pypi.tuna.tsinghua.edu.cn/packages/2d/61/08076519c80041bc0ffa1a8af0cbd3bf3e2b62af10435d269a9d0f40564d/requests-2.27.1-py2.py3-none-any.whl (63 kB)
Collecting mccabe<0.7.0,>=0.6.0
Downloading https://pypi.tuna.tsinghua.edu.cn/packages/87/89/479dc97e18549e21354893e4ee4ef36db1d237534982482c3681ee6e7b57/mccabe-0.6.1-py2.py3-none-any.whl (8.6 kB)
Collecting importlib-metadata<4.3
Downloading https://pypi.tuna.tsinghua.edu.cn/packages/22/51/52442c59db26637681148c21f8984eed58c9db67053a0a4783a047010c98/importlib_metadata-4.2.0-py3-none-any.whl (16 kB)
Collecting pyflakes<2.5.0,>=2.4.0
Downloading https://pypi.tuna.tsinghua.edu.cn/packages/43/fb/38848eb494af7df9aeb2d7673ace8b213313eb7e391691a79dbaeb6a838f/pyflakes-2.4.0-py2.py3-none-any.whl (69 kB)
|████████████████████████████████| 69 kB 241 kB/s
Collecting pycodestyle<2.9.0,>=2.8.0
Downloading https://pypi.tuna.tsinghua.edu.cn/packages/15/94/bc43a2efb7b8615e38acde2b6624cae8c9ec86faf718ff5676c5179a7714/pycodestyle-2.8.0-py2.py3-none-any.whl (42 kB)
|████████████████████████████████| 42 kB 114 kB/s
Collecting click>=7.1.2
Downloading https://pypi.tuna.tsinghua.edu.cn/packages/4a/a8/0b2ced25639fb20cc1c9784de90a8c25f9504a7f18cd8b5397bd61696d7d/click-8.0.4-py3-none-any.whl (97 kB)
|████████████████████████████████| 97 kB 199 kB/s
Collecting Jinja2>=3.0
Downloading https://pypi.tuna.tsinghua.edu.cn/packages/20/9a/e5d9ec41927401e41aea8af6d16e78b5e612bca4699d417f646a9610a076/Jinja2-3.0.3-py3-none-any.whl (133 kB)
|████████████████████████████████| 133 kB 242 kB/s
Collecting Werkzeug>=2.0
Downloading https://pypi.tuna.tsinghua.edu.cn/packages/f4/f3/22afbdb20cc4654b10c98043414a14057cd27fdba9d4ae61cea596000ba2/Werkzeug-2.0.3-py3-none-any.whl (289 kB)
|████████████████████████████████| 289 kB 192 kB/s
Collecting itsdangerous>=2.0
Downloading https://pypi.tuna.tsinghua.edu.cn/packages/9c/96/26f935afba9cd6140216da5add223a0c465b99d0f112b68a4ca426441019/itsdangerous-2.0.1-py3-none-any.whl (18 kB)
Collecting pytz
Using cached https://pypi.tuna.tsinghua.edu.cn/packages/d3/e3/d9f046b5d1c94a3aeab15f1f867aa414f8ee9d196fae6865f1d6a0ee1a0b/pytz-2021.3-py2.py3-none-any.whl (503 kB)
Collecting Babel>=2.3
Downloading https://pypi.tuna.tsinghua.edu.cn/packages/aa/96/4ba93c5f40459dc850d25f9ba93f869a623e77aaecc7a9344e19c01942cf/Babel-2.9.1-py2.py3-none-any.whl (8.8 MB)
|████████████████████████████████| 8.8 MB 1.6 MB/s
Collecting zipp>=0.5
Using cached https://pypi.tuna.tsinghua.edu.cn/packages/bd/df/d4a4974a3e3957fd1c1fa3082366d7fff6e428ddb55f074bf64876f8e8ad/zipp-3.6.0-py3-none-any.whl (5.3 kB)
Collecting typing-extensions>=3.6.4
Using cached https://pypi.tuna.tsinghua.edu.cn/packages/45/6b/44f7f8f1e110027cf88956b59f2fad776cca7e1704396d043f89effd3a0e/typing_extensions-4.1.1-py3-none-any.whl (26 kB)
Collecting MarkupSafe>=2.0
Downloading https://pypi.tuna.tsinghua.edu.cn/packages/73/60/296031f365b3ae96732225203d864fac7b83a185ed1820c1c87b78e154bc/MarkupSafe-2.0.1-cp36-cp36m-win_amd64.whl (14 kB)
Collecting dataclasses
Using cached https://pypi.tuna.tsinghua.edu.cn/packages/fe/ca/75fac5856ab5cfa51bbbcefa250182e50441074fdc3f803f6e76451fab43/dataclasses-0.8-py3-none-any.whl (19 kB)
Collecting pycryptodome>=3.8.0
Downloading https://pypi.tuna.tsinghua.edu.cn/packages/19/81/45b2ea1fd90d7caa0e5aa36a373d136f7e4c07c129f3018c89e699777cf8/pycryptodome-3.14.1-cp35-abi3-win_amd64.whl (1.8 MB)
|████████████████████████████████| 1.8 MB 198 kB/s
Collecting future>=0.6.0
Downloading https://pypi.tuna.tsinghua.edu.cn/packages/45/0b/38b06fd9b92dc2b68d58b75f900e97884c45bedd2ff83203d933cf5851c9/future-0.18.2.tar.gz (829 kB)
|████████████████████████████████| 829 kB 6.4 MB/s
Collecting cycler>=0.10
Using cached https://pypi.tuna.tsinghua.edu.cn/packages/5c/f9/695d6bedebd747e5eb0fe8fad57b72fdf25411273a39791cde838d5a8f51/cycler-0.11.0-py3-none-any.whl (6.4 kB)
Collecting python-dateutil>=2.1
Using cached https://pypi.tuna.tsinghua.edu.cn/packages/36/7a/87837f39d0296e723bb9b62bbb257d0355c7f6128853c78955f57342a56d/python_dateutil-2.8.2-py2.py3-none-any.whl (247 kB)
Collecting pyparsing!=2.0.4,!=2.1.2,!=2.1.6,>=2.0.3
Downloading https://pypi.tuna.tsinghua.edu.cn/packages/80/c1/23fd82ad3121656b585351aba6c19761926bb0db2ebed9e4ff09a43a3fcc/pyparsing-3.0.7-py3-none-any.whl (98 kB)
|████████████████████████████████| 98 kB 275 kB/s
Collecting kiwisolver>=1.0.1
Using cached https://pypi.tuna.tsinghua.edu.cn/packages/6e/df/1250c32ab3b532c32a7e47c1cd240faba98f75b1b5150939b10e9bffb758/kiwisolver-1.3.1-cp36-cp36m-win_amd64.whl (51 kB)
Collecting pytest
Downloading https://pypi.tuna.tsinghua.edu.cn/packages/38/93/c7c0bd1e932b287fb948eb9ce5a3d6307c9fc619db1e199f8c8bc5dad95f/pytest-7.0.1-py3-none-any.whl (296 kB)
|████████████████████████████████| 296 kB 252 kB/s
Collecting pytest-benchmark
Downloading https://pypi.tuna.tsinghua.edu.cn/packages/2c/60/423a63fb190a0483d049786a121bd3dfd7d93bb5ff1bb5b5cd13e5df99a7/pytest_benchmark-3.4.1-py2.py3-none-any.whl (50 kB)
|████████████████████████████████| 50 kB 461 kB/s
Collecting xmltodict>=0.12.0
Downloading https://pypi.tuna.tsinghua.edu.cn/packages/28/fd/30d5c1d3ac29ce229f6bdc40bbc20b28f716e8b363140c26eff19122d8a5/xmltodict-0.12.0-py2.py3-none-any.whl (9.2 kB)
Collecting flake8-import-order
Downloading https://pypi.tuna.tsinghua.edu.cn/packages/ab/52/cf2d6e2c505644ca06de2f6f3546f1e4f2b7be34246c9e0757c6048868f9/flake8_import_order-0.18.1-py2.py3-none-any.whl (15 kB)
Requirement already satisfied: setuptools in c:\users\yang\.conda\envs\paddlex\lib\site-packages (from flake8-import-order->motmetrics->paddlex) (58.0.4)
Collecting et-xmlfile
Using cached https://pypi.tuna.tsinghua.edu.cn/packages/96/c2/3dd434b0108730014f1b96fd286040dc3bcb70066346f7e01ec2ac95865f/et_xmlfile-1.1.0-py3-none-any.whl (4.7 kB)
Collecting toml
Downloading https://pypi.tuna.tsinghua.edu.cn/packages/44/6f/7120676b6d73228c96e17f1f794d8ab046fc910d781c8d151120c3f1569e/toml-0.10.2-py2.py3-none-any.whl (16 kB)
Collecting virtualenv>=20.0.8
Downloading https://pypi.tuna.tsinghua.edu.cn/packages/6f/9a/1f25926bd1f9a87432938829df9e1af3a85d1f55c5a4c382217e60d63aeb/virtualenv-20.13.3-py2.py3-none-any.whl (8.7 MB)
|████████████████████████████████| 8.7 MB 930 kB/s
Collecting identify>=1.0.0
Downloading https://pypi.tuna.tsinghua.edu.cn/packages/da/1a/93ac674fee1a5af11bdbc1cd895895a8710aa49402558bf91ec3523f0214/identify-2.4.4-py2.py3-none-any.whl (98 kB)
|████████████████████████████████| 98 kB 1.8 MB/s
Collecting nodeenv>=0.11.1
Downloading https://pypi.tuna.tsinghua.edu.cn/packages/54/73/56c89b343befb9c63e8117294d265458f0ff726fa2abcdc6bb5ec5e66a1a/nodeenv-1.6.0-py2.py3-none-any.whl (21 kB)
Collecting importlib-resources<5.3
Downloading https://pypi.tuna.tsinghua.edu.cn/packages/11/8e/84a6a778a1160cefcef1192a7bd26e4e6689981553aff13c2b2b6f1c352f/importlib_resources-5.2.3-py3-none-any.whl (27 kB)
Collecting cfgv>=2.0.0
Downloading https://pypi.tuna.tsinghua.edu.cn/packages/6d/82/0a0ebd35bae9981dea55c06f8e6aaf44a49171ad798795c72c6f64cba4c2/cfgv-3.3.1-py2.py3-none-any.whl (7.3 kB)
Collecting distlib<1,>=0.3.1
Downloading https://pypi.tuna.tsinghua.edu.cn/packages/ac/a3/8ee4f54d5f12e16eeeda6b7df3dfdbda24e6cc572c86ff959a4ce110391b/distlib-0.3.4-py2.py3-none-any.whl (461 kB)
|████████████████████████████████| 461 kB 285 kB/s
Collecting platformdirs<3,>=2
Downloading https://pypi.tuna.tsinghua.edu.cn/packages/b1/78/dcfd84d3aabd46a9c77260fb47ea5d244806e4daef83aa6fe5d83adb182c/platformdirs-2.4.0-py3-none-any.whl (14 kB)
Collecting filelock<4,>=3.2
Downloading https://pypi.tuna.tsinghua.edu.cn/packages/84/ce/8916d10ef537f3f3b046843255f9799504aa41862bfa87844b9bdc5361cd/filelock-3.4.1-py3-none-any.whl (9.9 kB)
Collecting pluggy<2.0,>=0.12
Downloading https://pypi.tuna.tsinghua.edu.cn/packages/9e/01/f38e2ff29715251cf25532b9082a1589ab7e4f571ced434f98d0139336dc/pluggy-1.0.0-py2.py3-none-any.whl (13 kB)
Collecting py>=1.8.2
Downloading https://pypi.tuna.tsinghua.edu.cn/packages/f6/f0/10642828a8dfb741e5f3fbaac830550a518a775c7fff6f04a007259b0548/py-1.11.0-py2.py3-none-any.whl (98 kB)
|████████████████████████████████| 98 kB 353 kB/s
Collecting tomli>=1.0.0
Downloading https://pypi.tuna.tsinghua.edu.cn/packages/05/e4/74f9440db36734d7ba83c574c1e7024009ce849208a41f90e94a134dc6d1/tomli-1.2.3-py3-none-any.whl (12 kB)
Collecting attrs>=19.2.0
Using cached https://pypi.tuna.tsinghua.edu.cn/packages/be/be/7abce643bfdf8ca01c48afa2ddf8308c2308b0c3b239a44e57d020afa0ef/attrs-21.4.0-py2.py3-none-any.whl (60 kB)
Collecting atomicwrites>=1.0
Downloading https://pypi.tuna.tsinghua.edu.cn/packages/2c/a0/da5f49008ec6e9a658dbf5d7310a4debd397bce0b4db03cf8a410066bb87/atomicwrites-1.4.0-py2.py3-none-any.whl (6.8 kB)
Collecting iniconfig
Downloading https://pypi.tuna.tsinghua.edu.cn/packages/9b/dd/b3c12c6d707058fa947864b67f0c4e0c39ef8610988d7baea9578f3c48f3/iniconfig-1.1.1-py2.py3-none-any.whl (5.0 kB)
Collecting packaging
Using cached https://pypi.tuna.tsinghua.edu.cn/packages/05/8e/8de486cbd03baba4deef4142bd643a3e7bbe954a784dc1bb17142572d127/packaging-21.3-py3-none-any.whl (40 kB)
Collecting py-cpuinfo
Downloading https://pypi.tuna.tsinghua.edu.cn/packages/e6/ba/77120e44cbe9719152415b97d5bfb29f4053ee987d6cb63f55ce7d50fadc/py-cpuinfo-8.0.0.tar.gz (99 kB)
|████████████████████████████████| 99 kB 78 kB/s
Collecting charset-normalizer~=2.0.0
Using cached https://pypi.tuna.tsinghua.edu.cn/packages/06/b3/24afc8868eba069a7f03650ac750a778862dc34941a4bebeb58706715726/charset_normalizer-2.0.12-py3-none-any.whl (39 kB)
Requirement already satisfied: certifi>=2017.4.17 in c:\users\yang\.conda\envs\paddlex\lib\site-packages (from requests->visualdl>=2.2.2->paddlex) (2020.6.20)
Collecting urllib3<1.27,>=1.21.1
Using cached https://pypi.tuna.tsinghua.edu.cn/packages/4e/b8/f5a25b22e803f0578e668daa33ba3701bb37858ec80e08a150bd7d2cf1b1/urllib3-1.26.8-py2.py3-none-any.whl (138 kB)
Collecting idna<4,>=2.5
Using cached https://pypi.tuna.tsinghua.edu.cn/packages/04/a2/d918dcd22354d8958fe113e1a3630137e0fc8b44859ade3063982eacd2a4/idna-3.3-py3-none-any.whl (61 kB)
Building wheels for collected packages: bce-python-sdk, future, lap, pycocotools, py-cpuinfo
Building wheel for bce-python-sdk (setup.py) ... done
Created wheel for bce-python-sdk: filename=bce_python_sdk-0.8.64-py3-none-any.whl size=202973 sha256=6506ca69cfcb6230d21780c88066aa2ab3133146570f1d4b18cba58d6fea0243
Stored in directory: c:\users\yang\appdata\local\pip\cache\wheels\4d\01\4a\0ddb9526bd30d94e4ba9d333ed1f462272e55724ee22ea338d
Building wheel for future (setup.py) ... done
Created wheel for future: filename=future-0.18.2-py3-none-any.whl size=491070 sha256=b5e3539159bb896cb66347efef94df602803a3f135ba32765d00b1832666ec84
Stored in directory: c:\users\yang\appdata\local\pip\cache\wheels\f3\f6\70\8b2bba44d8bf6ee5b7eac561416d9ef5c28dd2320490fc0f1f
Building wheel for lap (setup.py) ... error
ERROR: Command errored out with exit status 1:
command: 'C:\Users\YANG\.conda\envs\paddlex\python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\YANG\\AppData\\Local\\Temp\\pip-install-1hy88ulz\\lap_764d663aaec3442d8df15524e446822b\\setup.py'"'"'; __file__='"'"'C:\\Users\\YANG\\AppData\\Local\\Temp\\pip-install-1hy88ulz\\lap_764d663aaec3442d8df15524e446822b\\setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d 'C:\Users\YANG\AppData\Local\Temp\pip-wheel-jzj39cx1'
cwd: C:\Users\YANG\AppData\Local\Temp\pip-install-1hy88ulz\lap_764d663aaec3442d8df15524e446822b\
Complete output (12 lines):
Partial import of lap during the build process.
Traceback (most recent call last):
File "C:\Users\YANG\AppData\Local\Temp\pip-install-1hy88ulz\lap_764d663aaec3442d8df15524e446822b\setup.py", line 127, in get_numpy_status
import numpy
ModuleNotFoundError: No module named 'numpy'
Traceback (most recent call last):
File "", line 1, in
File "C:\Users\YANG\AppData\Local\Temp\pip-install-1hy88ulz\lap_764d663aaec3442d8df15524e446822b\setup.py", line 236, in
setup_package()
File "C:\Users\YANG\AppData\Local\Temp\pip-install-1hy88ulz\lap_764d663aaec3442d8df15524e446822b\setup.py", line 220, in setup_package
raise ImportError('lap requires numpy, '
ImportError: lap requires numpy, please "pip install numpy".
----------------------------------------
ERROR: Failed building wheel for lap
Running setup.py clean for lap
Building wheel for pycocotools (PEP 517) ... done
Created wheel for pycocotools: filename=pycocotools-2.0.4-cp36-cp36m-win_amd64.whl size=77785 sha256=5fec0452ac6867a85083d05ac136f44412bd554613d5d45cf81eba21a5ca5fbf
Stored in directory: c:\users\yang\appdata\local\pip\cache\wheels\e2\0a\e4\f5e1af023bac56d2417778c70b50edb3e5884f30f93faaa19b
Building wheel for py-cpuinfo (setup.py) ... done
Created wheel for py-cpuinfo: filename=py_cpuinfo-8.0.0-py3-none-any.whl size=22257 sha256=08b366f8e546aef61201b5a501f963d866d68948a297eab4c4befbaf64c8bb86
Stored in directory: c:\users\yang\appdata\local\pip\cache\wheels\ff\90\2a\381af46cb9292ed2cc2ab68f0cb7dae88d07bbd4a0c49ea6f1
Successfully built bce-python-sdk future pycocotools py-cpuinfo
Failed to build lap
Installing collected packages: zipp, typing-extensions, pyparsing, MarkupSafe, importlib-metadata, dataclasses, colorama, Werkzeug, tomli, six, pytz, py, pluggy, platformdirs, packaging, Jinja2, itsdangerous, iniconfig, importlib-resources, filelock, distlib, click, attrs, atomicwrites, virtualenv, urllib3, toml, pyyaml, python-dateutil, pytest, pyflakes, pycryptodome, pycodestyle, py-cpuinfo, pillow, numpy, nodeenv, mccabe, kiwisolver, idna, identify, future, flask, cycler, charset-normalizer, cfgv, Babel, xmltodict, tqdm, threadpoolctl, shellcheck-py, scipy, requests, pyzmq, pytest-benchmark, protobuf, pre-commit, pandas, opencv-python, matplotlib, joblib, Flask-Babel, flake8-import-order, flake8, et-xmlfile, bce-python-sdk, visualdl, shapely, scikit-learn, pycocotools, paddleslim, openpyxl, motmetrics, lap, flask-cors, chardet, paddlex
Running setup.py install for lap ... done
DEPRECATION: lap was installed using the legacy 'setup.py install' method, because a wheel could not be built for it. A possible replacement is to fix the wheel build issue reported above. You can find discussion regarding this at https://github.com/pypa/pip/issues/8368.
Successfully installed Babel-2.9.1 Flask-Babel-2.0.0 Jinja2-3.0.3 MarkupSafe-2.0.1 Werkzeug-2.0.3 atomicwrites-1.4.0 attrs-21.4.0 bce-python-sdk-0.8.64 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 dataclasses-0.8 distlib-0.3.4 et-xmlfile-1.1.0 filelock-3.4.1 flake8-4.0.1 flake8-import-order-0.18.1 flask-2.0.3 flask-cors-3.0.10 future-0.18.2 identify-2.4.4 idna-3.3 importlib-metadata-4.2.0 importlib-resources-5.2.3 iniconfig-1.1.1 itsdangerous-2.0.1 joblib-1.1.0 kiwisolver-1.3.1 lap-0.4.0 matplotlib-3.3.4 mccabe-0.6.1 motmetrics-1.2.0 nodeenv-1.6.0 numpy-1.19.5 opencv-python-4.5.5.64 openpyxl-3.0.9 packaging-21.3 paddleslim-2.2.1 paddlex-2.1.0 pandas-1.1.5 pillow-8.4.0 platformdirs-2.4.0 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.4 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.5.4 shapely-1.8.1.post1 shellcheck-py-0.8.0.3 six-1.16.0 threadpoolctl-3.1.0 toml-0.10.2 tomli-1.2.3 tqdm-4.63.0 typing-extensions-4.1.1 urllib3-1.26.8 virtualenv-20.13.3 visualdl-2.2.3 xmltodict-0.12.0 zipp-3.6.0
最后 我展示一下安装结果,
(paddlex) C:\Users\YANG>conda list
# packages in environment at C:\Users\YANG\.conda\envs\paddlex:
#
# Name Version Build Channel
atomicwrites 1.4.0 pypi_0 pypi
attrs 21.4.0 pypi_0 pypi
babel 2.9.1 pypi_0 pypi
bce-python-sdk 0.8.64 pypi_0 pypi
certifi 2020.6.20 pyhd3eb1b0_3 defaults
cfgv 3.3.1 pypi_0 pypi
chardet 4.0.0 pypi_0 pypi
charset-normalizer 2.0.12 pypi_0 pypi
click 8.0.4 pypi_0 pypi
colorama 0.4.4 pypi_0 pypi
cycler 0.11.0 pypi_0 pypi
dataclasses 0.8 pypi_0 pypi
distlib 0.3.4 pypi_0 pypi
et-xmlfile 1.1.0 pypi_0 pypi
filelock 3.4.1 pypi_0 pypi
flake8 4.0.1 pypi_0 pypi
flake8-import-order 0.18.1 pypi_0 pypi
flask 2.0.3 pypi_0 pypi
flask-babel 2.0.0 pypi_0 pypi
flask-cors 3.0.10 pypi_0 pypi
future 0.18.2 pypi_0 pypi
identify 2.4.4 pypi_0 pypi
idna 3.3 pypi_0 pypi
importlib-metadata 4.2.0 pypi_0 pypi
importlib-resources 5.2.3 pypi_0 pypi
iniconfig 1.1.1 pypi_0 pypi
itsdangerous 2.0.1 pypi_0 pypi
jinja2 3.0.3 pypi_0 pypi
joblib 1.1.0 pypi_0 pypi
kiwisolver 1.3.1 pypi_0 pypi
lap 0.4.0 pypi_0 pypi
markupsafe 2.0.1 pypi_0 pypi
matplotlib 3.3.4 pypi_0 pypi
mccabe 0.6.1 pypi_0 pypi
motmetrics 1.2.0 pypi_0 pypi
nodeenv 1.6.0 pypi_0 pypi
numpy 1.19.5 pypi_0 pypi
opencv-python 4.5.5.64 pypi_0 pypi
openpyxl 3.0.9 pypi_0 pypi
packaging 21.3 pypi_0 pypi
paddleslim 2.2.1 pypi_0 pypi
paddlex 2.1.0 pypi_0 pypi
pandas 1.1.5 pypi_0 pypi
pillow 8.4.0 pypi_0 pypi
pip 21.2.2 py36haa95532_0 defaults
platformdirs 2.4.0 pypi_0 pypi
pluggy 1.0.0 pypi_0 pypi
pre-commit 2.17.0 pypi_0 pypi
protobuf 3.19.4 pypi_0 pypi
py 1.11.0 pypi_0 pypi
py-cpuinfo 8.0.0 pypi_0 pypi
pycocotools 2.0.4 pypi_0 pypi
pycodestyle 2.8.0 pypi_0 pypi
pycryptodome 3.14.1 pypi_0 pypi
pyflakes 2.4.0 pypi_0 pypi
pyparsing 3.0.7 pypi_0 pypi
pytest 7.0.1 pypi_0 pypi
pytest-benchmark 3.4.1 pypi_0 pypi
python 3.6.13 h3758d61_0 defaults
python-dateutil 2.8.2 pypi_0 pypi
pytz 2021.3 pypi_0 pypi
pyyaml 6.0 pypi_0 pypi
pyzmq 22.3.0 pypi_0 pypi
requests 2.27.1 pypi_0 pypi
scikit-learn 0.23.2 pypi_0 pypi
scipy 1.5.4 pypi_0 pypi
setuptools 58.0.4 py36haa95532_0 defaults
shapely 1.8.1.post1 pypi_0 pypi
shellcheck-py 0.8.0.3 pypi_0 pypi
six 1.16.0 pypi_0 pypi
sqlite 3.38.0 h2bbff1b_0 defaults
threadpoolctl 3.1.0 pypi_0 pypi
toml 0.10.2 pypi_0 pypi
tomli 1.2.3 pypi_0 pypi
tqdm 4.63.0 pypi_0 pypi
typing-extensions 4.1.1 pypi_0 pypi
urllib3 1.26.8 pypi_0 pypi
vc 14.2 h21ff451_1 defaults
virtualenv 20.13.3 pypi_0 pypi
visualdl 2.2.3 pypi_0 pypi
vs2015_runtime 14.27.29016 h5e58377_2 defaults
werkzeug 2.0.3 pypi_0 pypi
wheel 0.37.1 pyhd3eb1b0_0 defaults
wincertstore 0.2 py36h7fe50ca_0 defaults
xmltodict 0.12.0 pypi_0 pypi
zipp 3.6.0 pypi_0 pypi
这里面自动安装opencv-python,sklearn,matplotlib,numpy,scipy,版本对应。