当前位置:   article > 正文

anaconda3配置环境变量_Python:Anaconda安装及LabelMe配置(1)

downloading labelme-4.5.6.tar.gz (1.5 mb)

261b8c8158ddd9a91fe33e4fc1d74757.png

e7afa3f855149f10828eb853489d90ea.png

目录

一、开发工具下载

二、安装过程

三、检测安装成功

四、安装LabelMe环境


一、开发工具下载

官网下载地址:https://www.anaconda.com/products/individual

b7f6dafc0e89ef27a41b5c03b3eb3f17.png

滑动至网页底部

8ffc967799a26d0bf4b0f52206bc192b.png

二、安装过程

  1. 双击下载好的安装文件

c14268a23fe0d40ae9c95380fbb01ccf.png

2. 点击【Next】进行安装

667a006fe1126f72ae5ab417a2656b1f.png


3. 点击【I Agree】

81bc1570d59ed7a038d9a7df41b730a4.png

4.选择用户安装(仅为当前登录账号安装)-点击下一步

7f711036afd8382835bdebdb7f5a923b.png

5. 选择安装路径(可以使用默认地址:如果C盘比较小,建议安装到其他盘符)
6.默认安装到C盘,不用做任何修改:安装的文件目录会默认隐藏

15cd4080671a99536a8103688cc00590.png

(默认安装请忽略下方自定义安装)

【自定义安装目录操作 一 】选择其他硬盘位置安装(创建安装文件夹的路径目录)

3bb905d37106737eb234ff2b1499dbd8.png

【自定义安装目录操作 二 】点击按钮【Browse...】进行安装文件目录选择 点击确认

a7ae4075a61e8dcfd4041a26a2d95097.png

【自定义安装目录操作 三 】 安装目录更换成功点击【Next】

![image-20200806105535531](https://gitee.com/mmrliu/uPicImage/raw/master/uPic/202008/image-20200806105535531.png)勾选安装PATH配置环境变量 勾选作为默认Python开发环境

d7538d40b648ef28fd1d4e53a10d66bf.png

7.开始加载安装 -需要等待一段时间(安装速度根据电脑性能而定)

53982fa49a83ce98002c79d0ee2f6e7b.png

8.加载完成 - 点击【Next】

3211803d29bc8aba96d27eacdb963551.png

9.点击下一步

81092dd42d205a8539c7d392d17e7534.png

10.安装完成:取消默认勾选的两个选择框

44a324e425dbfaee667d08505500efa7.png

三、检测安装成功

1.Win+R 按键 、 输入cmd点击确定或敲击回车键

e7f0cf4f11d3a76fd2bb6c23c9111abe.png

2.输入Python 敲击回车键 ,如果能够显示已经安装的Python环境,证明成功。

9db111ceb33a3366be8d09e207736487.png

3.点击【Windows】菜单键 - 查看Anaconda工具安装

071ccd5efce3214189d55724b5cbe240.png

四、安装LabelMe环境

dac8380800c28d6dff94368f71026741.png

附加步骤:配置国内镜像地址

1.设置国内镜像(国外镜像下载地址太慢 - 顺利情况下也需要好几个小时时间)

北京外国语大学开源软件镜像站

7971131e285bf64a2d3ce45bae0fe299.png

命令:

C:Usersliushuaitao>conda config --add channels https:// mirrors.bfsu.edu.cn/ana conda/cloud/pytorch/
C:Usersliushuaitao>conda config --set show_channel_urls yes #配置生效
C:Usersliushuaitao>conda config --show #查看配置情况

操作如下:

50ae4ce7d4a62c05898b806caad12d52.png

检查配置成功:

2454a569a71a27e68a02a2133ec8c726.png

开始安装Lableme

  1. 在程序中找到【Anaconda Navigator】点击启动程序

916fa3ba5b0af45136e62a843429aac4.png

2.点击左边的菜单中选择【Environments】点击【base(root)】菜单右边箭头,选择【open terminal】选项,打开命令行

f1903b53eb22c5e96678d2a0c56a9ae1.png

9de302aaa9f003313cdb23daf9edee12.png

3.使用输入名称 创建一个Python3.8环境

命令:conda create --name=labelme python=3.8

af3125db55ee51d867aa2ac728a1355a.png

4.输入y 回车

e1a4162a4a65f9edf2cbe47ee112fbf4.png

5.创建成功

38ec1cb902c56365f206e5554e2a462a.png

6.使用如下命令 - 切换到刚刚创建的labelme中

命令:conda activate labelme

0988f0e69e57c851e2aa113f0105fe12.png

7.使用如下命令:安装pyqt5 (依赖工具包 然后才能安装labelme)

命令:conda install pyqt5 或 pip install PyQt5

(安装速度太慢 - 可以选择本地安装:下载地址:https://pypi.org/project/PyQt5/#files)

fa81eca3d9fa11b4ff271abc7b060c5b.png

7.1 从pypi官网下载 pyqt5 然后进行本地安装

pip命令:pip install C:UsersliushuaitaoDesktopPyQt5-5.15.0-5.15.0-cp35.cp36.cp37.cp38-none-win_amd64.whl

aedcb4558cf8dde24eeb35635744d2ac.png

8.使用如下命令:安装labelme

命令:pip install labelme

006fd731c613a1c1b47afa21869a43c8.png

9.使用如下命令启动labelme
命令:labelme

0f3270965f27602084a59b0cd7f8fab6.png

启动效果图:如下

73f069c8ac13ed5947081ffd8c4b0eee.png

大功告成


Mac 版本安装

  1. Last login: Sun Aug 9 01:43:24 on ttys000
  2. liushuaitao@bogon ~ % . /Users/liushuaitao/opt/anaconda3/bin/activate && conda activate /Users/liushuaitao/opt/anaconda3;
  3. (base) liushuaitao@bogon ~ % conda create --name=labelme python=3.8
  4. Collecting package metadata (current_repodata.json): done
  5. Solving environment: done
  6. ## Package Plan ##
  7. environment location: /Users/liushuaitao/opt/anaconda3/envs/labelme
  8. added / updated specs:
  9. - python=3.8
  10. The following NEW packages will be INSTALLED:
  11. ca-certificates pkgs/main/osx-64::ca-certificates-2020.6.24-0
  12. certifi pkgs/main/osx-64::certifi-2020.6.20-py38_0
  13. libcxx pkgs/main/osx-64::libcxx-10.0.0-1
  14. libedit pkgs/main/osx-64::libedit-3.1.20191231-h1de35cc_1
  15. libffi pkgs/main/osx-64::libffi-3.3-hb1e8313_2
  16. ncurses pkgs/main/osx-64::ncurses-6.2-h0a44026_1
  17. openssl pkgs/main/osx-64::openssl-1.1.1g-h1de35cc_0
  18. pip pkgs/main/osx-64::pip-20.2.1-py38_0
  19. python pkgs/main/osx-64::python-3.8.5-h26836e1_0
  20. readline pkgs/main/osx-64::readline-8.0-h1de35cc_0
  21. setuptools pkgs/main/osx-64::setuptools-49.2.1-py38_0
  22. sqlite pkgs/main/osx-64::sqlite-3.32.3-hffcf06c_0
  23. tk pkgs/main/osx-64::tk-8.6.10-hb0a8c7a_0
  24. wheel pkgs/main/osx-64::wheel-0.34.2-py38_0
  25. xz pkgs/main/osx-64::xz-5.2.5-h1de35cc_0
  26. zlib pkgs/main/osx-64::zlib-1.2.11-h1de35cc_3
  27. Proceed ([y]/n)? y
  28. Preparing transaction: done
  29. Verifying transaction: done
  30. Executing transaction: done
  31. #
  32. # To activate this environment, use
  33. #
  34. # $ conda activate labelme
  35. #
  36. # To deactivate an active environment, use
  37. #
  38. # $ conda deactivate
  39. (base) liushuaitao@bogon ~ % conda activate labelme
  40. (labelme) liushuaitao@bogon ~ % pip install /Users/liushuaitao/Desktop/PyQt5-5.15.0-5.15.0-cp35.cp36.cp37.cp38-abi3-macosx_10_6_intel.whl
  41. Processing ./Desktop/PyQt5-5.15.0-5.15.0-cp35.cp36.cp37.cp38-abi3-macosx_10_6_intel.whl
  42. Collecting PyQt5-sip<13,>=12.8
  43. Using cached PyQt5_sip-12.8.0-cp38-cp38-macosx_10_9_x86_64.whl (63 kB)
  44. Installing collected packages: PyQt5-sip, PyQt5
  45. Successfully installed PyQt5-5.15.0 PyQt5-sip-12.8.0
  46. (labelme) liushuaitao@bogon ~ % pip install labelme
  47. Processing ./Library/Caches/pip/wheels/5a/0d/a8/7012260a1f1589abe857e76a6313cb440c8f34b8a26cf45267/labelme-4.5.6-py3-none-any.whl
  48. Collecting numpy
  49. Using cached numpy-1.19.1-cp38-cp38-macosx_10_9_x86_64.whl (15.3 MB)
  50. Processing ./Library/Caches/pip/wheels/a0/16/9c/5473df82468f958445479c59e784896fa24f4a5fc024b0f501/termcolor-1.1.0-py3-none-any.whl
  51. Processing ./Library/Caches/pip/wheels/2e/95/0e/bf1567775e87d9ceb1504f7dc5ab07c699ddfc4c774fb79008/imgviz-1.2.2-py3-none-any.whl
  52. Collecting qtpy
  53. Using cached QtPy-1.9.0-py2.py3-none-any.whl (54 kB)
  54. Collecting Pillow>=2.8.0
  55. Using cached Pillow-7.2.0-cp38-cp38-macosx_10_10_x86_64.whl (2.2 MB)
  56. Processing ./Library/Caches/pip/wheels/13/90/db/290ab3a34f2ef0b5a0f89235dc2d40fea83e77de84ed2dc05c/PyYAML-5.3.1-cp38-cp38-macosx_10_9_x86_64.whl
  57. Collecting matplotlib
  58. Using cached matplotlib-3.3.0-1-cp38-cp38-macosx_10_9_x86_64.whl (11.4 MB)
  59. Collecting cycler>=0.10
  60. Using cached cycler-0.10.0-py2.py3-none-any.whl (6.5 kB)
  61. Collecting python-dateutil>=2.1
  62. Using cached python_dateutil-2.8.1-py2.py3-none-any.whl (227 kB)
  63. Collecting kiwisolver>=1.0.1
  64. Using cached kiwisolver-1.2.0-cp38-cp38-macosx_10_9_x86_64.whl (60 kB)
  65. Collecting pyparsing!=2.0.4,!=2.1.2,!=2.1.6,>=2.0.3
  66. Using cached pyparsing-2.4.7-py2.py3-none-any.whl (67 kB)
  67. Collecting six
  68. Using cached six-1.15.0-py2.py3-none-any.whl (10 kB)
  69. Installing collected packages: numpy, termcolor, six, cycler, Pillow, python-dateutil, kiwisolver, pyparsing, matplotlib, PyYAML, imgviz, qtpy, labelme
  70. Successfully installed Pillow-7.2.0 PyYAML-5.3.1 cycler-0.10.0 imgviz-1.2.2 kiwisolver-1.2.0 labelme-4.5.6 matplotlib-3.3.0 numpy-1.19.1 pyparsing-2.4.7 python-dateutil-2.8.1 qtpy-1.9.0 six-1.15.0 termcolor-1.1.0
  71. (labelme) liushuaitao@bogon ~ % labelme
  72. [INFO ] __init__:get_config:70 - Loading config file from: /Users/liushuaitao/.labelmerc
  73. (labelme) liushuaitao@bogon ~ %
  74. (base) C:Usersliushuaitao>conda activate labelme
  75. (labelme) C:Usersliushuaitao>pip install C:UsersliushuaitaoDesktopPyQt5-5.15.0-5.15.0-cp35.cp36.cp37.cp38-none-win_amd64.whl
  76. Processing c:usersliushuaitaodesktoppyqt5-5.15.0-5.15.0-cp35.cp36.cp37.cp38-none-win_amd64.whl
  77. Collecting PyQt5-sip<13,>=12.8
  78. Downloading PyQt5_sip-12.8.0-cp38-cp38-win_amd64.whl (63 kB)
  79. |████████████████████████████████| 63 kB 7.2 kB/s
  80. Installing collected packages: PyQt5-sip, PyQt5
  81. Successfully installed PyQt5-5.15.0 PyQt5-sip-12.8.0
  82. (labelme) C:Usersliushuaitao>pip install labelme
  83. Collecting labelme
  84. Downloading labelme-4.5.6.tar.gz (1.5 MB)
  85. |████████████████████████████████| 1.5 MB 30 kB/s
  86. Collecting imgviz>=0.11.0
  87. Downloading imgviz-1.2.2.tar.gz (7.7 MB)
  88. |████████████████████████████████| 7.7 MB 16 kB/s
  89. Installing build dependencies ... done
  90. Getting requirements to build wheel ... done
  91. Preparing wheel metadata ... done
  92. Collecting matplotlib
  93. Downloading matplotlib-3.3.0-cp38-cp38-win_amd64.whl (8.8 MB)
  94. |████████████████████████████████| 8.8 MB 25 kB/s
  95. Collecting numpy
  96. Downloading numpy-1.19.1-cp38-cp38-win_amd64.whl (13.0 MB)
  97. |████████████████████████████████| 13.0 MB 29 kB/s
  98. Collecting Pillow>=2.8.0
  99. Downloading Pillow-7.2.0-cp38-cp38-win_amd64.whl (2.1 MB)
  100. |████████████████████████████████| 2.1 MB 20 kB/s
  101. Collecting PyYAML
  102. Downloading PyYAML-5.3.1-cp38-cp38-win_amd64.whl (219 kB)
  103. |████████████████████████████████| 219 kB 30 kB/s
  104. Collecting qtpy
  105. Downloading QtPy-1.9.0-py2.py3-none-any.whl (54 kB)
  106. |████████████████████████████████| 54 kB 32 kB/s
  107. Collecting termcolor
  108. Downloading termcolor-1.1.0.tar.gz (3.9 kB)
  109. Collecting colorama
  110. Downloading colorama-0.4.3-py2.py3-none-any.whl (15 kB)
  111. Collecting pyparsing!=2.0.4,!=2.1.2,!=2.1.6,>=2.0.3
  112. Downloading pyparsing-2.4.7-py2.py3-none-any.whl (67 kB)
  113. |████████████████████████████████| 67 kB 41 kB/s
  114. Collecting kiwisolver>=1.0.1
  115. Downloading kiwisolver-1.2.0-cp38-none-win_amd64.whl (58 kB)
  116. |████████████████████████████████| 58 kB 21 kB/s
  117. Collecting python-dateutil>=2.1
  118. Downloading python_dateutil-2.8.1-py2.py3-none-any.whl (227 kB)
  119. |████████████████████████████████| 227 kB 17 kB/s
  120. Collecting cycler>=0.10
  121. Downloading cycler-0.10.0-py2.py3-none-any.whl (6.5 kB)
  122. Collecting six>=1.5
  123. Downloading six-1.15.0-py2.py3-none-any.whl (10 kB)
  124. Building wheels for collected packages: labelme, imgviz, termcolor
  125. Building wheel for labelme (setup.py) ... done
  126. Created wheel for labelme: filename=labelme-4.5.6-py3-none-any.whl size=1464603 sha256=4e8b713de06c4403e6ae6c342e5a5e8991aa47b94aed780a9be074218cf22401
  127. Stored in directory: c:usersliushuaitaoappdatalocalpipcachewheels5a0da87012260a1f1589abe857e76a6313cb440c8f34b8a26cf45267
  128. Building wheel for imgviz (PEP 517) ... done
  129. Created wheel for imgviz: filename=imgviz-1.2.2-py3-none-any.whl size=7673803 sha256=99a2fd94db19e11bfc57490b2bbb38b525a5a0f821f110149512b1387cb7972a
  130. Stored in directory: c:usersliushuaitaoappdatalocalpipcachewheels2e950ebf1567775e87d9ceb1504f7dc5ab07c699ddfc4c774fb79008
  131. Building wheel for termcolor (setup.py) ... done
  132. Created wheel for termcolor: filename=termcolor-1.1.0-py3-none-any.whl size=4835 sha256=b0993d6409f813cd103f4e8bdd673c624905d08d1e8cbfe67c1ad419e317c91d
  133. Stored in directory: c:usersliushuaitaoappdatalocalpipcachewheelsa0169c5473df82468f958445479c59e784896fa24f4a5fc024b0f501
  134. Successfully built labelme imgviz termcolor
  135. Installing collected packages: PyYAML, Pillow, numpy, pyparsing, kiwisolver, six, python-dateutil, cycler, matplotlib, imgviz, qtpy, termcolor, colorama, labelme
  136. Successfully installed Pillow-7.2.0 PyYAML-5.3.1 colorama-0.4.3 cycler-0.10.0 imgviz-1.2.2 kiwisolver-1.2.0 labelme-4.5.6 matplotlib-3.3.0 numpy-1.19.1 pyparsing-2.4.7 python-dateutil-2.8.1 qtpy-1.9.0 six-1.15.0 termcolor-1.1.0
  137. (labelme) C:Usersliushuaitao>labelme
  138. [INFO ] __init__:get_config:70 - Loading config file from: C:Usersliushuaitao.labelmerc

Window版本下载

  1. (base) C:Usersliushuaitao>conda activate labelme
  2. (labelme) C:Usersliushuaitao>pip install C:UsersliushuaitaoDesktopPyQt5-5.15.0-5.15.0-cp35.cp36.cp37.cp38-none-win_amd64.whl
  3. Processing c:usersliushuaitaodesktoppyqt5-5.15.0-5.15.0-cp35.cp36.cp37.cp38-none-win_amd64.whl
  4. Collecting PyQt5-sip<13,>=12.8
  5. Downloading PyQt5_sip-12.8.0-cp38-cp38-win_amd64.whl (63 kB)
  6. |████████████████████████████████| 63 kB 7.2 kB/s
  7. Installing collected packages: PyQt5-sip, PyQt5
  8. Successfully installed PyQt5-5.15.0 PyQt5-sip-12.8.0
  9. (labelme) C:Usersliushuaitao>pip install labelme
  10. Collecting labelme
  11. Downloading labelme-4.5.6.tar.gz (1.5 MB)
  12. |████████████████████████████████| 1.5 MB 30 kB/s
  13. Collecting imgviz>=0.11.0
  14. Downloading imgviz-1.2.2.tar.gz (7.7 MB)
  15. |████████████████████████████████| 7.7 MB 16 kB/s
  16. Installing build dependencies ... done
  17. Getting requirements to build wheel ... done
  18. Preparing wheel metadata ... done
  19. Collecting matplotlib
  20. Downloading matplotlib-3.3.0-cp38-cp38-win_amd64.whl (8.8 MB)
  21. |████████████████████████████████| 8.8 MB 25 kB/s
  22. Collecting numpy
  23. Downloading numpy-1.19.1-cp38-cp38-win_amd64.whl (13.0 MB)
  24. |████████████████████████████████| 13.0 MB 29 kB/s
  25. Collecting Pillow>=2.8.0
  26. Downloading Pillow-7.2.0-cp38-cp38-win_amd64.whl (2.1 MB)
  27. |████████████████████████████████| 2.1 MB 20 kB/s
  28. Collecting PyYAML
  29. Downloading PyYAML-5.3.1-cp38-cp38-win_amd64.whl (219 kB)
  30. |████████████████████████████████| 219 kB 30 kB/s
  31. Collecting qtpy
  32. Downloading QtPy-1.9.0-py2.py3-none-any.whl (54 kB)
  33. |████████████████████████████████| 54 kB 32 kB/s
  34. Collecting termcolor
  35. Downloading termcolor-1.1.0.tar.gz (3.9 kB)
  36. Collecting colorama
  37. Downloading colorama-0.4.3-py2.py3-none-any.whl (15 kB)
  38. Collecting pyparsing!=2.0.4,!=2.1.2,!=2.1.6,>=2.0.3
  39. Downloading pyparsing-2.4.7-py2.py3-none-any.whl (67 kB)
  40. |████████████████████████████████| 67 kB 41 kB/s
  41. Collecting kiwisolver>=1.0.1
  42. Downloading kiwisolver-1.2.0-cp38-none-win_amd64.whl (58 kB)
  43. |████████████████████████████████| 58 kB 21 kB/s
  44. Collecting python-dateutil>=2.1
  45. Downloading python_dateutil-2.8.1-py2.py3-none-any.whl (227 kB)
  46. |████████████████████████████████| 227 kB 17 kB/s
  47. Collecting cycler>=0.10
  48. Downloading cycler-0.10.0-py2.py3-none-any.whl (6.5 kB)
  49. Collecting six>=1.5
  50. Downloading six-1.15.0-py2.py3-none-any.whl (10 kB)
  51. Building wheels for collected packages: labelme, imgviz, termcolor
  52. Building wheel for labelme (setup.py) ... done
  53. Created wheel for labelme: filename=labelme-4.5.6-py3-none-any.whl size=1464603 sha256=4e8b713de06c4403e6ae6c342e5a5e8991aa47b94aed780a9be074218cf22401
  54. Stored in directory: c:usersliushuaitaoappdatalocalpipcachewheels5a0da87012260a1f1589abe857e76a6313cb440c8f34b8a26cf45267
  55. Building wheel for imgviz (PEP 517) ... done
  56. Created wheel for imgviz: filename=imgviz-1.2.2-py3-none-any.whl size=7673803 sha256=99a2fd94db19e11bfc57490b2bbb38b525a5a0f821f110149512b1387cb7972a
  57. Stored in directory: c:usersliushuaitaoappdatalocalpipcachewheels2e950ebf1567775e87d9ceb1504f7dc5ab07c699ddfc4c774fb79008
  58. Building wheel for termcolor (setup.py) ... done
  59. Created wheel for termcolor: filename=termcolor-1.1.0-py3-none-any.whl size=4835 sha256=b0993d6409f813cd103f4e8bdd673c624905d08d1e8cbfe67c1ad419e317c91d
  60. Stored in directory: c:usersliushuaitaoappdatalocalpipcachewheelsa0169c5473df82468f958445479c59e784896fa24f4a5fc024b0f501
  61. Successfully built labelme imgviz termcolor
  62. Installing collected packages: PyYAML, Pillow, numpy, pyparsing, kiwisolver, six, python-dateutil, cycler, matplotlib, imgviz, qtpy, termcolor, colorama, labelme
  63. Successfully installed Pillow-7.2.0 PyYAML-5.3.1 colorama-0.4.3 cycler-0.10.0 imgviz-1.2.2 kiwisolver-1.2.0 labelme-4.5.6 matplotlib-3.3.0 numpy-1.19.1 pyparsing-2.4.7 python-dateutil-2.8.1 qtpy-1.9.0 six-1.15.0 termcolor-1.1.0
  64. (labelme) C:Usersliushuaitao>labelme
  65. [INFO ] __init__:get_config:70 - Loading config file from: C:Usersliushuaitao.labelmerc

附加补充图:

80812af3f45d57da07daba408a107a98.png

3851025377241e708ee14646b3abac8b.png
声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/小丑西瓜9/article/detail/692358
推荐阅读
相关标签
  

闽ICP备14008679号