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

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 版本安装

Last login: Sun Aug  9 01:43:24 on ttys000
liushuaitao@bogon ~ % . /Users/liushuaitao/opt/anaconda3/bin/activate && conda activate /Users/liushuaitao/opt/anaconda3; 
(base) liushuaitao@bogon ~ % conda create --name=labelme python=3.8
Collecting package metadata (current_repodata.json): done
Solving environment: done

## Package Plan ##

  environment location: /Users/liushuaitao/opt/anaconda3/envs/labelme

  added / updated specs:
    - python=3.8


The following NEW packages will be INSTALLED:

  ca-certificates    pkgs/main/osx-64::ca-certificates-2020.6.24-0
  certifi            pkgs/main/osx-64::certifi-2020.6.20-py38_0
  libcxx             pkgs/main/osx-64::libcxx-10.0.0-1
  libedit            pkgs/main/osx-64::libedit-3.1.20191231-h1de35cc_1
  libffi             pkgs/main/osx-64::libffi-3.3-hb1e8313_2
  ncurses            pkgs/main/osx-64::ncurses-6.2-h0a44026_1
  openssl            pkgs/main/osx-64::openssl-1.1.1g-h1de35cc_0
  pip                pkgs/main/osx-64::pip-20.2.1-py38_0
  python             pkgs/main/osx-64::python-3.8.5-h26836e1_0
  readline           pkgs/main/osx-64::readline-8.0-h1de35cc_0
  setuptools         pkgs/main/osx-64::setuptools-49.2.1-py38_0
  sqlite             pkgs/main/osx-64::sqlite-3.32.3-hffcf06c_0
  tk                 pkgs/main/osx-64::tk-8.6.10-hb0a8c7a_0
  wheel              pkgs/main/osx-64::wheel-0.34.2-py38_0
  xz                 pkgs/main/osx-64::xz-5.2.5-h1de35cc_0
  zlib               pkgs/main/osx-64::zlib-1.2.11-h1de35cc_3


Proceed ([y]/n)? y

Preparing transaction: done
Verifying transaction: done
Executing transaction: done
#
# To activate this environment, use
#
#     $ conda activate labelme
#
# To deactivate an active environment, use
#
#     $ conda deactivate

(base) liushuaitao@bogon ~ % conda activate labelme
(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
Processing ./Desktop/PyQt5-5.15.0-5.15.0-cp35.cp36.cp37.cp38-abi3-macosx_10_6_intel.whl
Collecting PyQt5-sip<13,>=12.8
  Using cached PyQt5_sip-12.8.0-cp38-cp38-macosx_10_9_x86_64.whl (63 kB)
Installing collected packages: PyQt5-sip, PyQt5
Successfully installed PyQt5-5.15.0 PyQt5-sip-12.8.0
(labelme) liushuaitao@bogon ~ % pip install labelme
Processing ./Library/Caches/pip/wheels/5a/0d/a8/7012260a1f1589abe857e76a6313cb440c8f34b8a26cf45267/labelme-4.5.6-py3-none-any.whl
Collecting numpy
  Using cached numpy-1.19.1-cp38-cp38-macosx_10_9_x86_64.whl (15.3 MB)
Processing ./Library/Caches/pip/wheels/a0/16/9c/5473df82468f958445479c59e784896fa24f4a5fc024b0f501/termcolor-1.1.0-py3-none-any.whl
Processing ./Library/Caches/pip/wheels/2e/95/0e/bf1567775e87d9ceb1504f7dc5ab07c699ddfc4c774fb79008/imgviz-1.2.2-py3-none-any.whl
Collecting qtpy
  Using cached QtPy-1.9.0-py2.py3-none-any.whl (54 kB)
Collecting Pillow>=2.8.0
  Using cached Pillow-7.2.0-cp38-cp38-macosx_10_10_x86_64.whl (2.2 MB)
Processing ./Library/Caches/pip/wheels/13/90/db/290ab3a34f2ef0b5a0f89235dc2d40fea83e77de84ed2dc05c/PyYAML-5.3.1-cp38-cp38-macosx_10_9_x86_64.whl
Collecting matplotlib
  Using cached matplotlib-3.3.0-1-cp38-cp38-macosx_10_9_x86_64.whl (11.4 MB)
Collecting cycler>=0.10
  Using cached cycler-0.10.0-py2.py3-none-any.whl (6.5 kB)
Collecting python-dateutil>=2.1
  Using cached python_dateutil-2.8.1-py2.py3-none-any.whl (227 kB)
Collecting kiwisolver>=1.0.1
  Using cached kiwisolver-1.2.0-cp38-cp38-macosx_10_9_x86_64.whl (60 kB)
Collecting pyparsing!=2.0.4,!=2.1.2,!=2.1.6,>=2.0.3
  Using cached pyparsing-2.4.7-py2.py3-none-any.whl (67 kB)
Collecting six
  Using cached six-1.15.0-py2.py3-none-any.whl (10 kB)
Installing collected packages: numpy, termcolor, six, cycler, Pillow, python-dateutil, kiwisolver, pyparsing, matplotlib, PyYAML, imgviz, qtpy, labelme
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
(labelme) liushuaitao@bogon ~ % labelme
[INFO   ] __init__:get_config:70 - Loading config file from: /Users/liushuaitao/.labelmerc
(labelme) liushuaitao@bogon ~ %
(base) C:Usersliushuaitao>conda activate labelme

(labelme) C:Usersliushuaitao>pip install C:UsersliushuaitaoDesktopPyQt5-5.15.0-5.15.0-cp35.cp36.cp37.cp38-none-win_amd64.whl
Processing c:usersliushuaitaodesktoppyqt5-5.15.0-5.15.0-cp35.cp36.cp37.cp38-none-win_amd64.whl
Collecting PyQt5-sip<13,>=12.8
  Downloading PyQt5_sip-12.8.0-cp38-cp38-win_amd64.whl (63 kB)
     |████████████████████████████████| 63 kB 7.2 kB/s
Installing collected packages: PyQt5-sip, PyQt5
Successfully installed PyQt5-5.15.0 PyQt5-sip-12.8.0

(labelme) C:Usersliushuaitao>pip install labelme
Collecting labelme
  Downloading labelme-4.5.6.tar.gz (1.5 MB)
     |████████████████████████████████| 1.5 MB 30 kB/s
Collecting imgviz>=0.11.0
  Downloading imgviz-1.2.2.tar.gz (7.7 MB)
     |████████████████████████████████| 7.7 MB 16 kB/s
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
    Preparing wheel metadata ... done
Collecting matplotlib
  Downloading matplotlib-3.3.0-cp38-cp38-win_amd64.whl (8.8 MB)
     |████████████████████████████████| 8.8 MB 25 kB/s
Collecting numpy
  Downloading numpy-1.19.1-cp38-cp38-win_amd64.whl (13.0 MB)
     |████████████████████████████████| 13.0 MB 29 kB/s
Collecting Pillow>=2.8.0
  Downloading Pillow-7.2.0-cp38-cp38-win_amd64.whl (2.1 MB)
     |████████████████████████████████| 2.1 MB 20 kB/s
Collecting PyYAML
  Downloading PyYAML-5.3.1-cp38-cp38-win_amd64.whl (219 kB)
     |████████████████████████████████| 219 kB 30 kB/s
Collecting qtpy
  Downloading QtPy-1.9.0-py2.py3-none-any.whl (54 kB)
     |████████████████████████████████| 54 kB 32 kB/s
Collecting termcolor
  Downloading termcolor-1.1.0.tar.gz (3.9 kB)
Collecting colorama
  Downloading colorama-0.4.3-py2.py3-none-any.whl (15 kB)
Collecting pyparsing!=2.0.4,!=2.1.2,!=2.1.6,>=2.0.3
  Downloading pyparsing-2.4.7-py2.py3-none-any.whl (67 kB)
     |████████████████████████████████| 67 kB 41 kB/s
Collecting kiwisolver>=1.0.1
  Downloading kiwisolver-1.2.0-cp38-none-win_amd64.whl (58 kB)
     |████████████████████████████████| 58 kB 21 kB/s
Collecting python-dateutil>=2.1
  Downloading python_dateutil-2.8.1-py2.py3-none-any.whl (227 kB)
     |████████████████████████████████| 227 kB 17 kB/s
Collecting cycler>=0.10
  Downloading cycler-0.10.0-py2.py3-none-any.whl (6.5 kB)
Collecting six>=1.5
  Downloading six-1.15.0-py2.py3-none-any.whl (10 kB)
Building wheels for collected packages: labelme, imgviz, termcolor
  Building wheel for labelme (setup.py) ... done
  Created wheel for labelme: filename=labelme-4.5.6-py3-none-any.whl size=1464603 sha256=4e8b713de06c4403e6ae6c342e5a5e8991aa47b94aed780a9be074218cf22401
  Stored in directory: c:usersliushuaitaoappdatalocalpipcachewheels5a0da87012260a1f1589abe857e76a6313cb440c8f34b8a26cf45267
  Building wheel for imgviz (PEP 517) ... done
  Created wheel for imgviz: filename=imgviz-1.2.2-py3-none-any.whl size=7673803 sha256=99a2fd94db19e11bfc57490b2bbb38b525a5a0f821f110149512b1387cb7972a
  Stored in directory: c:usersliushuaitaoappdatalocalpipcachewheels2e950ebf1567775e87d9ceb1504f7dc5ab07c699ddfc4c774fb79008
  Building wheel for termcolor (setup.py) ... done
  Created wheel for termcolor: filename=termcolor-1.1.0-py3-none-any.whl size=4835 sha256=b0993d6409f813cd103f4e8bdd673c624905d08d1e8cbfe67c1ad419e317c91d
  Stored in directory: c:usersliushuaitaoappdatalocalpipcachewheelsa0169c5473df82468f958445479c59e784896fa24f4a5fc024b0f501
Successfully built labelme imgviz termcolor
Installing collected packages: PyYAML, Pillow, numpy, pyparsing, kiwisolver, six, python-dateutil, cycler, matplotlib, imgviz, qtpy, termcolor, colorama, labelme
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

(labelme) C:Usersliushuaitao>labelme
[INFO   ] __init__:get_config:70 - Loading config file from: C:Usersliushuaitao.labelmerc

Window版本下载

(base) C:Usersliushuaitao>conda activate labelme

(labelme) C:Usersliushuaitao>pip install C:UsersliushuaitaoDesktopPyQt5-5.15.0-5.15.0-cp35.cp36.cp37.cp38-none-win_amd64.whl
Processing c:usersliushuaitaodesktoppyqt5-5.15.0-5.15.0-cp35.cp36.cp37.cp38-none-win_amd64.whl
Collecting PyQt5-sip<13,>=12.8
  Downloading PyQt5_sip-12.8.0-cp38-cp38-win_amd64.whl (63 kB)
     |████████████████████████████████| 63 kB 7.2 kB/s
Installing collected packages: PyQt5-sip, PyQt5
Successfully installed PyQt5-5.15.0 PyQt5-sip-12.8.0

(labelme) C:Usersliushuaitao>pip install labelme
Collecting labelme
  Downloading labelme-4.5.6.tar.gz (1.5 MB)
     |████████████████████████████████| 1.5 MB 30 kB/s
Collecting imgviz>=0.11.0
  Downloading imgviz-1.2.2.tar.gz (7.7 MB)
     |████████████████████████████████| 7.7 MB 16 kB/s
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
    Preparing wheel metadata ... done
Collecting matplotlib
  Downloading matplotlib-3.3.0-cp38-cp38-win_amd64.whl (8.8 MB)
     |████████████████████████████████| 8.8 MB 25 kB/s
Collecting numpy
  Downloading numpy-1.19.1-cp38-cp38-win_amd64.whl (13.0 MB)
     |████████████████████████████████| 13.0 MB 29 kB/s
Collecting Pillow>=2.8.0
  Downloading Pillow-7.2.0-cp38-cp38-win_amd64.whl (2.1 MB)
     |████████████████████████████████| 2.1 MB 20 kB/s
Collecting PyYAML
  Downloading PyYAML-5.3.1-cp38-cp38-win_amd64.whl (219 kB)
     |████████████████████████████████| 219 kB 30 kB/s
Collecting qtpy
  Downloading QtPy-1.9.0-py2.py3-none-any.whl (54 kB)
     |████████████████████████████████| 54 kB 32 kB/s
Collecting termcolor
  Downloading termcolor-1.1.0.tar.gz (3.9 kB)
Collecting colorama
  Downloading colorama-0.4.3-py2.py3-none-any.whl (15 kB)
Collecting pyparsing!=2.0.4,!=2.1.2,!=2.1.6,>=2.0.3
  Downloading pyparsing-2.4.7-py2.py3-none-any.whl (67 kB)
     |████████████████████████████████| 67 kB 41 kB/s
Collecting kiwisolver>=1.0.1
  Downloading kiwisolver-1.2.0-cp38-none-win_amd64.whl (58 kB)
     |████████████████████████████████| 58 kB 21 kB/s
Collecting python-dateutil>=2.1
  Downloading python_dateutil-2.8.1-py2.py3-none-any.whl (227 kB)
     |████████████████████████████████| 227 kB 17 kB/s
Collecting cycler>=0.10
  Downloading cycler-0.10.0-py2.py3-none-any.whl (6.5 kB)
Collecting six>=1.5
  Downloading six-1.15.0-py2.py3-none-any.whl (10 kB)
Building wheels for collected packages: labelme, imgviz, termcolor
  Building wheel for labelme (setup.py) ... done
  Created wheel for labelme: filename=labelme-4.5.6-py3-none-any.whl size=1464603 sha256=4e8b713de06c4403e6ae6c342e5a5e8991aa47b94aed780a9be074218cf22401
  Stored in directory: c:usersliushuaitaoappdatalocalpipcachewheels5a0da87012260a1f1589abe857e76a6313cb440c8f34b8a26cf45267
  Building wheel for imgviz (PEP 517) ... done
  Created wheel for imgviz: filename=imgviz-1.2.2-py3-none-any.whl size=7673803 sha256=99a2fd94db19e11bfc57490b2bbb38b525a5a0f821f110149512b1387cb7972a
  Stored in directory: c:usersliushuaitaoappdatalocalpipcachewheels2e950ebf1567775e87d9ceb1504f7dc5ab07c699ddfc4c774fb79008
  Building wheel for termcolor (setup.py) ... done
  Created wheel for termcolor: filename=termcolor-1.1.0-py3-none-any.whl size=4835 sha256=b0993d6409f813cd103f4e8bdd673c624905d08d1e8cbfe67c1ad419e317c91d
  Stored in directory: c:usersliushuaitaoappdatalocalpipcachewheelsa0169c5473df82468f958445479c59e784896fa24f4a5fc024b0f501
Successfully built labelme imgviz termcolor
Installing collected packages: PyYAML, Pillow, numpy, pyparsing, kiwisolver, six, python-dateutil, cycler, matplotlib, imgviz, qtpy, termcolor, colorama, labelme
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

(labelme) C:Usersliushuaitao>labelme
[INFO   ] __init__:get_config:70 - Loading config file from: C:Usersliushuaitao.labelmerc

附加补充图:

80812af3f45d57da07daba408a107a98.png

3851025377241e708ee14646b3abac8b.png
  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值