Ubuntu 安装python Anaconda OpenCV Tensorflow

ubuntu18.04

安装Anaconda

Opencv

 

开始之前先扩展swap 我的内存1G太小 至少4G

dd if=/dev/zero of=/mnt/swap bs=1024 count=4096000 
mkswap /mnt/swap
swapon /mnt/swap
看一下cat /etc/rc.local,如果有swapoff -a需要改为swapon -a


echo "/mnt/swap swap swap sw 0 0" >> /etc/fstab

再次执行free -m查看效果


备注:如果内存够用可以不删除
8、swapoff  swap
rm -f /opt/varl/swap

1,新建目录 下载anaconda

root@:~# mkdir opencv
root@:~# cd opencv/
root@:~/opencv# ls
root@:~/opencv# wget https://repo.anaconda.com/archive/Anaconda3-2019.10-Linux-x86_64.sh
--2019-12-24 10:40:27--  https://repo.anaconda.com/archive/Anaconda3-2019.10-Linux-x86_64.sh
Resolving repo.anaconda.com (repo.anaconda.com)... 2606:4700::6810:8303, 2606:4700::6810:8203, 104.16.131.3, ...
Connecting to repo.anaconda.com (repo.anaconda.com)|2606:4700::6810:8303|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 530308481 (506M) [application/x-sh]
Saving to: ‘Anaconda3-2019.10-Linux-x86_64.sh’

Anaconda3-2019.10-Li 100%[=====================>] 505.74M   143MB/s    in 3.6s    

2019-12-24 10:40:30 (141 MB/s) - ‘Anaconda3-2019.10-Linux-x86_64.sh’ saved [530308481/530308481]

root@:~/opencv# 

2,安装

root@:~/opencv# bash ./Anaconda3-2019.10-Linux-x86_64.sh 

Welcome to Anaconda3 2019.10

In order to continue the installation process, please review the license
agreement.
Please, press ENTER to continue
>>> 

按回车

中间问yes no  输入yes  回车

其中有提示安装路径的

Anaconda3 will now be installed into this location:
/root/anaconda3

  - Press ENTER to confirm the location
  - Press CTRL-C to abort the installation
  - Or specify a different location below

[/root/anaconda3] >>> 
PREFIX=/root/anaconda3

 

打印信息可以看到 ipython  pyqt libcurl    spyder   tk-8.6.8  lxml     jupyter  python-3.7.4  numpy   curl    scipy

pillow  zlib 等

 

添加环境变量

root@:~/anaconda3/bin# nano ~/.bashrc

最后一行添加export PATH=/root/anaconda3/bin:$PATH
root@:~/anaconda3/bin# source ~/.bashrc
root@:~/anaconda3/bin# conda

usage: conda [-h] [-V] command ...

conda is a tool for managing and deploying applications, environments and packages.

Options:

 

敲入env 回车  看下conda相关环境偏变量

OLDPWD=/root/anaconda3
XDG_SESSION_ID=60
USER=root
PWD=/root/anaconda3/bin
HOME=/root
 

3,虚拟环境搭建

虚拟环境
conda init bash
重新连接shell

新建虚拟环境
conda create -n tensorflow python=3.7
激活环境
conda activate tensorflow

 

4,包管理 安装opencv

conda search opencv

opencv                         3.4.2  py37h40b0b35_0  pkgs/main           
opencv                         3.4.2  py37h40b0b35_1  pkgs/main           
opencv                         3.4.2  py37h6fd60c2_0  pkgs/main           
opencv                         3.4.2  py37h6fd60c2_1  pkgs/main 

conda install opencv  安装

安装失败

conda install pydot Fetching package   ....... Solving package specifications: . PackageNotFoundError: Package not found: '' Package missing in current win-64 channels: - xmltodictYou can search for packages on anaconda.org with anaconda search -t conda opencv

更新conda到最新版本:
conda update -n base conda
conda update --all

重新搜索安装包

 anaconda search -t conda opencv

     conda-forge/libopencv     |    4.2.0 | conda           
     conda-forge/opencv        |    4.2.0 | conda  

 

现在就选择一个合适的版本进行安装,如我选择这个:

 conda-forge/opencv        |    4.2.0 | conda

anaconda show conda-forge/libopencv

那么执行下面命令进行安装即可:

 conda install --channel https://conda.anaconda.org/conda-forge opencv
输入y回车

等待

Preparing transaction: done
Verifying transaction: done
Executing transaction: done
(tensorflow) root@vultr:~# 

 

conda list 查看已有包

libopencv                 4.2.0                    py38_0    conda-forge

测试是否安装成功

import cv2,不报错即成功。

 

 

5,tensorflow

anaconda search -t conda tensorflow  

anaconda show anaconda/tensorflow-gpu

conda install --channel https://conda.anaconda.org/anaconda tensorflow-gpu

列出现有的包:

conda list

tensorflow                2.0.0                    pypi_0    pypi
 

 

 

 

 

参考

从源代码安装opencv

https://blog.csdn.net/lan_liang/article/details/86765690

https://blog.csdn.net/qq_18649781/article/details/85927212

 

常用命令
conda --version #查看当前版本
conda list #列出当前安装库
conda upgrade --all #升级所有库
conda upgrade pip #升级某个库,以pip为例,会卸载旧版本
conda update pip #更新某个库,以pip为例,不会卸载老版本
conda config --add
pip install tensorflow #安装tensorflow包
conda install tensorflow #安装tensorflow以及其依赖包 

完整打印信息
## Package Plan ##

  environment location: /root/anaconda3

  added / updated specs:
    - _ipyw_jlab_nb_ext_conf==0.1.0=py37_0
    - _libgcc_mutex==0.1=main
    - alabaster==0.7.12=py37_0
    - anaconda-client==1.7.2=py37_0
    - anaconda-navigator==1.9.7=py37_0
    - anaconda-project==0.8.3=py_0
    - anaconda==2019.10=py37_0
    - asn1crypto==1.0.1=py37_0
    - astroid==2.3.1=py37_0
    - astropy==3.2.2=py37h7b6447c_0
    - atomicwrites==1.3.0=py37_1
    - attrs==19.2.0=py_0
    - babel==2.7.0=py_0
    - backcall==0.1.0=py37_0
    - backports.functools_lru_cache==1.5=py_2
    - backports.os==0.1.1=py37_0
    - backports.shutil_get_terminal_size==1.0.0=py37_2
    - backports.tempfile==1.0=py_1
    - backports.weakref==1.0.post1=py_1
    - backports==1.0=py_2
    - beautifulsoup4==4.8.0=py37_0
    - bitarray==1.0.1=py37h7b6447c_0
    - bkcharts==0.2=py37_0
    - blas==1.0=mkl
    - bleach==3.1.0=py37_0
    - blosc==1.16.3=hd408876_0
    - bokeh==1.3.4=py37_0
    - boto==2.49.0=py37_0
    - bottleneck==1.2.1=py37h035aef0_1
    - bzip2==1.0.8=h7b6447c_0
    - ca-certificates==2019.8.28=0
    - cairo==1.14.12=h8948797_3
    - certifi==2019.9.11=py37_0
    - cffi==1.12.3=py37h2e261b9_0
    - chardet==3.0.4=py37_1003
    - click==7.0=py37_0
    - cloudpickle==1.2.2=py_0
    - clyent==1.2.2=py37_1
    - colorama==0.4.1=py37_0
    - conda-build==3.18.9=py37_3
    - conda-env==2.6.0=1
    - conda-package-handling==1.6.0=py37h7b6447c_0
    - conda-verify==3.4.2=py_1
    - conda==4.7.12=py37_0
    - contextlib2==0.6.0=py_0
    - cryptography==2.7=py37h1ba5d50_0
    - curl==7.65.3=hbc83047_0
    - cycler==0.10.0=py37_0
    - cython==0.29.13=py37he6710b0_0
    - cytoolz==0.10.0=py37h7b6447c_0
    - dask-core==2.5.2=py_0
    - dask==2.5.2=py_0
    - dbus==1.13.6=h746ee38_0
    - decorator==4.4.0=py37_1
    - defusedxml==0.6.0=py_0
    - distributed==2.5.2=py_0
    - docutils==0.15.2=py37_0
    - entrypoints==0.3=py37_0
    - et_xmlfile==1.0.1=py37_0
    - expat==2.2.6=he6710b0_0
    - fastcache==1.1.0=py37h7b6447c_0
    - filelock==3.0.12=py_0
    - flask==1.1.1=py_0
    - fontconfig==2.13.0=h9420a91_0
    - freetype==2.9.1=h8a8886c_1
    - fribidi==1.0.5=h7b6447c_0
    - fsspec==0.5.2=py_0
    - future==0.17.1=py37_0
    - get_terminal_size==1.0.0=haa9412d_0
    - gevent==1.4.0=py37h7b6447c_0
    - glib==2.56.2=hd408876_0
    - glob2==0.7=py_0
    - gmp==6.1.2=h6c8ec71_1
    - gmpy2==2.0.8=py37h10f8cd9_2
    - graphite2==1.3.13=h23475e2_0
    - greenlet==0.4.15=py37h7b6447c_0
    - gst-plugins-base==1.14.0=hbbd80ab_1
    - gstreamer==1.14.0=hb453b48_1
    - h5py==2.9.0=py37h7918eee_0
    - harfbuzz==1.8.8=hffaf4a1_0
    - hdf5==1.10.4=hb1b8bf9_0
    - heapdict==1.0.1=py_0
    - html5lib==1.0.1=py37_0
    - icu==58.2=h9c2bf20_1
    - idna==2.8=py37_0
    - imageio==2.6.0=py37_0
    - imagesize==1.1.0=py37_0
    - importlib_metadata==0.23=py37_0
    - intel-openmp==2019.4=243
    - ipykernel==5.1.2=py37h39e3cac_0
    - ipython==7.8.0=py37h39e3cac_0
    - ipython_genutils==0.2.0=py37_0
    - ipywidgets==7.5.1=py_0
    - isort==4.3.21=py37_0
    - itsdangerous==1.1.0=py37_0
    - jbig==2.1=hdba287a_0
    - jdcal==1.4.1=py_0
    - jedi==0.15.1=py37_0
    - jeepney==0.4.1=py_0
    - jinja2==2.10.3=py_0
    - joblib==0.13.2=py37_0
    - jpeg==9b=h024ee3a_2
    - json5==0.8.5=py_0
    - jsonschema==3.0.2=py37_0
    - jupyter==1.0.0=py37_7
    - jupyter_client==5.3.3=py37_1
    - jupyter_console==6.0.0=py37_0
    - jupyter_core==4.5.0=py_0
    - jupyterlab==1.1.4=pyhf63ae98_0
    - jupyterlab_server==1.0.6=py_0
    - keyring==18.0.0=py37_0
    - kiwisolver==1.1.0=py37he6710b0_0
    - krb5==1.16.1=h173b8e3_7
    - lazy-object-proxy==1.4.2=py37h7b6447c_0
    - libarchive==3.3.3=h5d8350f_5
    - libcurl==7.65.3=h20c2e04_0
    - libedit==3.1.20181209=hc058e9b_0
    - libffi==3.2.1=hd88cf55_4
    - libgcc-ng==9.1.0=hdf63c60_0
    - libgfortran-ng==7.3.0=hdf63c60_0
    - liblief==0.9.0=h7725739_2
    - libpng==1.6.37=hbc83047_0
    - libsodium==1.0.16=h1bed415_0
    - libssh2==1.8.2=h1ba5d50_0
    - libstdcxx-ng==9.1.0=hdf63c60_0
    - libtiff==4.0.10=h2733197_2
    - libtool==2.4.6=h7b6447c_5
    - libuuid==1.0.3=h1bed415_2
    - libxcb==1.13=h1bed415_1
    - libxml2==2.9.9=hea5a465_1
    - libxslt==1.1.33=h7d1a2b0_0
    - llvmlite==0.29.0=py37hd408876_0
    - locket==0.2.0=py37_1
    - lxml==4.4.1=py37hefd8a0e_0
    - lz4-c==1.8.1.2=h14c3975_0
    - lzo==2.10=h49e0be7_2
    - markupsafe==1.1.1=py37h7b6447c_0
    - matplotlib==3.1.1=py37h5429711_0
    - mccabe==0.6.1=py37_1
    - mistune==0.8.4=py37h7b6447c_0
    - mkl-service==2.3.0=py37he904b0f_0
    - mkl==2019.4=243
    - mkl_fft==1.0.14=py37ha843d7b_0
    - mkl_random==1.1.0=py37hd6b4f25_0
    - mock==3.0.5=py37_0
    - more-itertools==7.2.0=py37_0
    - mpc==1.1.0=h10f8cd9_1
    - mpfr==4.0.1=hdf1c602_3
    - mpmath==1.1.0=py37_0
    - msgpack-python==0.6.1=py37hfd86e86_1
    - multipledispatch==0.6.0=py37_0
    - navigator-updater==0.2.1=py37_0
    - nbconvert==5.6.0=py37_1
    - nbformat==4.4.0=py37_0
    - ncurses==6.1=he6710b0_1
    - networkx==2.3=py_0
    - nltk==3.4.5=py37_0
    - nose==1.3.7=py37_2
    - notebook==6.0.1=py37_0
    - numba==0.45.1=py37h962f231_0
    - numexpr==2.7.0=py37h9e4a6bb_0
    - numpy-base==1.17.2=py37hde5b4d6_0
    - numpy==1.17.2=py37haad9e8e_0
    - numpydoc==0.9.1=py_0
    - olefile==0.46=py37_0
    - openpyxl==3.0.0=py_0
    - openssl==1.1.1d=h7b6447c_2
    - packaging==19.2=py_0
    - pandas==0.25.1=py37he6710b0_0
    - pandoc==2.2.3.2=0
    - pandocfilters==1.4.2=py37_1
    - pango==1.42.4=h049681c_0
    - parso==0.5.1=py_0
    - partd==1.0.0=py_0
    - patchelf==0.9=he6710b0_3
    - path.py==12.0.1=py_0
    - pathlib2==2.3.5=py37_0
    - patsy==0.5.1=py37_0
    - pcre==8.43=he6710b0_0
    - pep8==1.7.1=py37_0
    - pexpect==4.7.0=py37_0
    - pickleshare==0.7.5=py37_0
    - pillow==6.2.0=py37h34e0f95_0
    - pip==19.2.3=py37_0
    - pixman==0.38.0=h7b6447c_0
    - pkginfo==1.5.0.1=py37_0
    - pluggy==0.13.0=py37_0
    - ply==3.11=py37_0
    - prometheus_client==0.7.1=py_0
    - prompt_toolkit==2.0.10=py_0
    - psutil==5.6.3=py37h7b6447c_0
    - ptyprocess==0.6.0=py37_0
    - py-lief==0.9.0=py37h7725739_2
    - py==1.8.0=py37_0
    - pycodestyle==2.5.0=py37_0
    - pycosat==0.6.3=py37h14c3975_0
    - pycparser==2.19=py37_0
    - pycrypto==2.6.1=py37h14c3975_9
    - pycurl==7.43.0.3=py37h1ba5d50_0
    - pyflakes==2.1.1=py37_0
    - pygments==2.4.2=py_0
    - pylint==2.4.2=py37_0
    - pyodbc==4.0.27=py37he6710b0_0
    - pyopenssl==19.0.0=py37_0
    - pyparsing==2.4.2=py_0
    - pyqt==5.9.2=py37h05f1152_2
    - pyrsistent==0.15.4=py37h7b6447c_0
    - pysocks==1.7.1=py37_0
    - pytables==3.5.2=py37h71ec239_1
    - pytest-arraydiff==0.3=py37h39e3cac_0
    - pytest-astropy==0.5.0=py37_0
    - pytest-doctestplus==0.4.0=py_0
    - pytest-openfiles==0.4.0=py_0
    - pytest-remotedata==0.3.2=py37_0
    - pytest==5.2.1=py37_0
    - python-dateutil==2.8.0=py37_0
    - python-libarchive-c==2.8=py37_13
    - python==3.7.4=h265db76_1
    - pytz==2019.3=py_0
    - pywavelets==1.0.3=py37hdd07704_1
    - pyyaml==5.1.2=py37h7b6447c_0
    - pyzmq==18.1.0=py37he6710b0_0
    - qt==5.9.7=h5867ecd_1
    - qtawesome==0.6.0=py_0
    - qtconsole==4.5.5=py_0
    - qtpy==1.9.0=py_0
    - readline==7.0=h7b6447c_5
    - requests==2.22.0=py37_0
    - ripgrep==0.10.0=hc07d326_0
    - rope==0.14.0=py_0
    - ruamel_yaml==0.15.46=py37h14c3975_0
    - scikit-image==0.15.0=py37he6710b0_0
    - scikit-learn==0.21.3=py37hd81dba3_0
    - scipy==1.3.1=py37h7c811a0_0
    - seaborn==0.9.0=py37_0
    - secretstorage==3.1.1=py37_0
    - send2trash==1.5.0=py37_0
    - setuptools==41.4.0=py37_0
    - simplegeneric==0.8.1=py37_2
    - singledispatch==3.4.0.3=py37_0
    - sip==4.19.8=py37hf484d3e_0
    - six==1.12.0=py37_0
    - snappy==1.1.7=hbae5bb6_3
    - snowballstemmer==2.0.0=py_0
    - sortedcollections==1.1.2=py37_0
    - sortedcontainers==2.1.0=py37_0
    - soupsieve==1.9.3=py37_0
    - sphinx==2.2.0=py_0
    - sphinxcontrib-applehelp==1.0.1=py_0
    - sphinxcontrib-devhelp==1.0.1=py_0
    - sphinxcontrib-htmlhelp==1.0.2=py_0
    - sphinxcontrib-jsmath==1.0.1=py_0
    - sphinxcontrib-qthelp==1.0.2=py_0
    - sphinxcontrib-serializinghtml==1.1.3=py_0
    - sphinxcontrib-websupport==1.1.2=py_0
    - sphinxcontrib==1.0=py37_1
    - spyder-kernels==0.5.2=py37_0
    - spyder==3.3.6=py37_0
    - sqlalchemy==1.3.9=py37h7b6447c_0
    - sqlite==3.30.0=h7b6447c_0
    - statsmodels==0.10.1=py37hdd07704_0
    - sympy==1.4=py37_0
    - tbb==2019.4=hfd86e86_0
    - tblib==1.4.0=py_0
    - terminado==0.8.2=py37_0
    - testpath==0.4.2=py37_0
    - tk==8.6.8=hbc83047_0
    - toolz==0.10.0=py_0
    - tornado==6.0.3=py37h7b6447c_0
    - tqdm==4.36.1=py_0
    - traitlets==4.3.3=py37_0
    - unicodecsv==0.14.1=py37_0
    - unixodbc==2.3.7=h14c3975_0
    - urllib3==1.24.2=py37_0
    - wcwidth==0.1.7=py37_0
    - webencodings==0.5.1=py37_1
    - werkzeug==0.16.0=py_0
    - wheel==0.33.6=py37_0
    - widgetsnbextension==3.5.1=py37_0
    - wrapt==1.11.2=py37h7b6447c_0
    - wurlitzer==1.0.3=py37_0
    - xlrd==1.2.0=py37_0
    - xlsxwriter==1.2.1=py_0
    - xlwt==1.3.0=py37_0
    - xz==5.2.4=h14c3975_4
    - yaml==0.1.7=had09818_2
    - zeromq==4.3.1=he6710b0_3
    - zict==1.0.0=py_0
    - zipp==0.6.0=py_0
    - zlib==1.2.11=h7b6447c_3
    - zstd==1.3.7=h0b5b093_0


The following NEW packages will be INSTALLED:

  _ipyw_jlab_nb_ext~ pkgs/main/linux-64::_ipyw_jlab_nb_ext_conf-0.1.0-py37_0
  _libgcc_mutex      pkgs/main/linux-64::_libgcc_mutex-0.1-main
  alabaster          pkgs/main/linux-64::alabaster-0.7.12-py37_0
  anaconda           pkgs/main/linux-64::anaconda-2019.10-py37_0
  anaconda-client    pkgs/main/linux-64::anaconda-client-1.7.2-py37_0
  anaconda-navigator pkgs/main/linux-64::anaconda-navigator-1.9.7-py37_0
  anaconda-project   pkgs/main/noarch::anaconda-project-0.8.3-py_0
  asn1crypto         pkgs/main/linux-64::asn1crypto-1.0.1-py37_0
  astroid            pkgs/main/linux-64::astroid-2.3.1-py37_0
  astropy            pkgs/main/linux-64::astropy-3.2.2-py37h7b6447c_0
  atomicwrites       pkgs/main/linux-64::atomicwrites-1.3.0-py37_1
  attrs              pkgs/main/noarch::attrs-19.2.0-py_0
  babel              pkgs/main/noarch::babel-2.7.0-py_0
  backcall           pkgs/main/linux-64::backcall-0.1.0-py37_0
  backports          pkgs/main/noarch::backports-1.0-py_2
  backports.functoo~ pkgs/main/noarch::backports.functools_lru_cache-1.5-py_2
  backports.os       pkgs/main/linux-64::backports.os-0.1.1-py37_0
  backports.shutil_~ pkgs/main/linux-64::backports.shutil_get_terminal_size-1.0.0-py37_2
  backports.tempfile pkgs/main/noarch::backports.tempfile-1.0-py_1
  backports.weakref  pkgs/main/noarch::backports.weakref-1.0.post1-py_1
  beautifulsoup4     pkgs/main/linux-64::beautifulsoup4-4.8.0-py37_0
  bitarray           pkgs/main/linux-64::bitarray-1.0.1-py37h7b6447c_0
  bkcharts           pkgs/main/linux-64::bkcharts-0.2-py37_0
  blas               pkgs/main/linux-64::blas-1.0-mkl
  bleach             pkgs/main/linux-64::bleach-3.1.0-py37_0
  blosc              pkgs/main/linux-64::blosc-1.16.3-hd408876_0
  bokeh              pkgs/main/linux-64::bokeh-1.3.4-py37_0
  boto               pkgs/main/linux-64::boto-2.49.0-py37_0
  bottleneck         pkgs/main/linux-64::bottleneck-1.2.1-py37h035aef0_1
  bzip2              pkgs/main/linux-64::bzip2-1.0.8-h7b6447c_0
  ca-certificates    pkgs/main/linux-64::ca-certificates-2019.8.28-0
  cairo              pkgs/main/linux-64::cairo-1.14.12-h8948797_3
  certifi            pkgs/main/linux-64::certifi-2019.9.11-py37_0
  cffi               pkgs/main/linux-64::cffi-1.12.3-py37h2e261b9_0
  chardet            pkgs/main/linux-64::chardet-3.0.4-py37_1003
  click              pkgs/main/linux-64::click-7.0-py37_0
  cloudpickle        pkgs/main/noarch::cloudpickle-1.2.2-py_0
  clyent             pkgs/main/linux-64::clyent-1.2.2-py37_1
  colorama           pkgs/main/linux-64::colorama-0.4.1-py37_0
  conda              pkgs/main/linux-64::conda-4.7.12-py37_0
  conda-build        pkgs/main/linux-64::conda-build-3.18.9-py37_3
  conda-env          pkgs/main/linux-64::conda-env-2.6.0-1
  conda-package-han~ pkgs/main/linux-64::conda-package-handling-1.6.0-py37h7b6447c_0
  conda-verify       pkgs/main/noarch::conda-verify-3.4.2-py_1
  contextlib2        pkgs/main/noarch::contextlib2-0.6.0-py_0
  cryptography       pkgs/main/linux-64::cryptography-2.7-py37h1ba5d50_0
  curl               pkgs/main/linux-64::curl-7.65.3-hbc83047_0
  cycler             pkgs/main/linux-64::cycler-0.10.0-py37_0
  cython             pkgs/main/linux-64::cython-0.29.13-py37he6710b0_0
  cytoolz            pkgs/main/linux-64::cytoolz-0.10.0-py37h7b6447c_0
  dask               pkgs/main/noarch::dask-2.5.2-py_0
  dask-core          pkgs/main/noarch::dask-core-2.5.2-py_0
  dbus               pkgs/main/linux-64::dbus-1.13.6-h746ee38_0
  decorator          pkgs/main/linux-64::decorator-4.4.0-py37_1
  defusedxml         pkgs/main/noarch::defusedxml-0.6.0-py_0
  distributed        pkgs/main/noarch::distributed-2.5.2-py_0
  docutils           pkgs/main/linux-64::docutils-0.15.2-py37_0
  entrypoints        pkgs/main/linux-64::entrypoints-0.3-py37_0
  et_xmlfile         pkgs/main/linux-64::et_xmlfile-1.0.1-py37_0
  expat              pkgs/main/linux-64::expat-2.2.6-he6710b0_0
  fastcache          pkgs/main/linux-64::fastcache-1.1.0-py37h7b6447c_0
  filelock           pkgs/main/noarch::filelock-3.0.12-py_0
  flask              pkgs/main/noarch::flask-1.1.1-py_0
  fontconfig         pkgs/main/linux-64::fontconfig-2.13.0-h9420a91_0
  freetype           pkgs/main/linux-64::freetype-2.9.1-h8a8886c_1
  fribidi            pkgs/main/linux-64::fribidi-1.0.5-h7b6447c_0
  fsspec             pkgs/main/noarch::fsspec-0.5.2-py_0
  future             pkgs/main/linux-64::future-0.17.1-py37_0
  get_terminal_size  pkgs/main/linux-64::get_terminal_size-1.0.0-haa9412d_0
  gevent             pkgs/main/linux-64::gevent-1.4.0-py37h7b6447c_0
  glib               pkgs/main/linux-64::glib-2.56.2-hd408876_0
  glob2              pkgs/main/noarch::glob2-0.7-py_0
  gmp                pkgs/main/linux-64::gmp-6.1.2-h6c8ec71_1
  gmpy2              pkgs/main/linux-64::gmpy2-2.0.8-py37h10f8cd9_2
  graphite2          pkgs/main/linux-64::graphite2-1.3.13-h23475e2_0
  greenlet           pkgs/main/linux-64::greenlet-0.4.15-py37h7b6447c_0
  gst-plugins-base   pkgs/main/linux-64::gst-plugins-base-1.14.0-hbbd80ab_1
  gstreamer          pkgs/main/linux-64::gstreamer-1.14.0-hb453b48_1
  h5py               pkgs/main/linux-64::h5py-2.9.0-py37h7918eee_0
  harfbuzz           pkgs/main/linux-64::harfbuzz-1.8.8-hffaf4a1_0
  hdf5               pkgs/main/linux-64::hdf5-1.10.4-hb1b8bf9_0
  heapdict           pkgs/main/noarch::heapdict-1.0.1-py_0
  html5lib           pkgs/main/linux-64::html5lib-1.0.1-py37_0
  icu                pkgs/main/linux-64::icu-58.2-h9c2bf20_1
  idna               pkgs/main/linux-64::idna-2.8-py37_0
  imageio            pkgs/main/linux-64::imageio-2.6.0-py37_0
  imagesize          pkgs/main/linux-64::imagesize-1.1.0-py37_0
  importlib_metadata pkgs/main/linux-64::importlib_metadata-0.23-py37_0
  intel-openmp       pkgs/main/linux-64::intel-openmp-2019.4-243
  ipykernel          pkgs/main/linux-64::ipykernel-5.1.2-py37h39e3cac_0
  ipython            pkgs/main/linux-64::ipython-7.8.0-py37h39e3cac_0
  ipython_genutils   pkgs/main/linux-64::ipython_genutils-0.2.0-py37_0
  ipywidgets         pkgs/main/noarch::ipywidgets-7.5.1-py_0
  isort              pkgs/main/linux-64::isort-4.3.21-py37_0
  itsdangerous       pkgs/main/linux-64::itsdangerous-1.1.0-py37_0
  jbig               pkgs/main/linux-64::jbig-2.1-hdba287a_0
  jdcal              pkgs/main/noarch::jdcal-1.4.1-py_0
  jedi               pkgs/main/linux-64::jedi-0.15.1-py37_0
  jeepney            pkgs/main/noarch::jeepney-0.4.1-py_0
  jinja2             pkgs/main/noarch::jinja2-2.10.3-py_0
  joblib             pkgs/main/linux-64::joblib-0.13.2-py37_0
  jpeg               pkgs/main/linux-64::jpeg-9b-h024ee3a_2
  json5              pkgs/main/noarch::json5-0.8.5-py_0
  jsonschema         pkgs/main/linux-64::jsonschema-3.0.2-py37_0
  jupyter            pkgs/main/linux-64::jupyter-1.0.0-py37_7
  jupyter_client     pkgs/main/linux-64::jupyter_client-5.3.3-py37_1
  jupyter_console    pkgs/main/linux-64::jupyter_console-6.0.0-py37_0
  jupyter_core       pkgs/main/noarch::jupyter_core-4.5.0-py_0
  jupyterlab         pkgs/main/noarch::jupyterlab-1.1.4-pyhf63ae98_0
  jupyterlab_server  pkgs/main/noarch::jupyterlab_server-1.0.6-py_0
  keyring            pkgs/main/linux-64::keyring-18.0.0-py37_0
  kiwisolver         pkgs/main/linux-64::kiwisolver-1.1.0-py37he6710b0_0
  krb5               pkgs/main/linux-64::krb5-1.16.1-h173b8e3_7
  lazy-object-proxy  pkgs/main/linux-64::lazy-object-proxy-1.4.2-py37h7b6447c_0
  libarchive         pkgs/main/linux-64::libarchive-3.3.3-h5d8350f_5
  libcurl            pkgs/main/linux-64::libcurl-7.65.3-h20c2e04_0
  libedit            pkgs/main/linux-64::libedit-3.1.20181209-hc058e9b_0
  libffi             pkgs/main/linux-64::libffi-3.2.1-hd88cf55_4
  libgcc-ng          pkgs/main/linux-64::libgcc-ng-9.1.0-hdf63c60_0
  libgfortran-ng     pkgs/main/linux-64::libgfortran-ng-7.3.0-hdf63c60_0
  liblief            pkgs/main/linux-64::liblief-0.9.0-h7725739_2
  libpng             pkgs/main/linux-64::libpng-1.6.37-hbc83047_0
  libsodium          pkgs/main/linux-64::libsodium-1.0.16-h1bed415_0
  libssh2            pkgs/main/linux-64::libssh2-1.8.2-h1ba5d50_0
  libstdcxx-ng       pkgs/main/linux-64::libstdcxx-ng-9.1.0-hdf63c60_0
  libtiff            pkgs/main/linux-64::libtiff-4.0.10-h2733197_2
  libtool            pkgs/main/linux-64::libtool-2.4.6-h7b6447c_5
  libuuid            pkgs/main/linux-64::libuuid-1.0.3-h1bed415_2
  libxcb             pkgs/main/linux-64::libxcb-1.13-h1bed415_1
  libxml2            pkgs/main/linux-64::libxml2-2.9.9-hea5a465_1
  libxslt            pkgs/main/linux-64::libxslt-1.1.33-h7d1a2b0_0
  llvmlite           pkgs/main/linux-64::llvmlite-0.29.0-py37hd408876_0
  locket             pkgs/main/linux-64::locket-0.2.0-py37_1
  lxml               pkgs/main/linux-64::lxml-4.4.1-py37hefd8a0e_0
  lz4-c              pkgs/main/linux-64::lz4-c-1.8.1.2-h14c3975_0
  lzo                pkgs/main/linux-64::lzo-2.10-h49e0be7_2
  markupsafe         pkgs/main/linux-64::markupsafe-1.1.1-py37h7b6447c_0
  matplotlib         pkgs/main/linux-64::matplotlib-3.1.1-py37h5429711_0
  mccabe             pkgs/main/linux-64::mccabe-0.6.1-py37_1
  mistune            pkgs/main/linux-64::mistune-0.8.4-py37h7b6447c_0
  mkl                pkgs/main/linux-64::mkl-2019.4-243
  mkl-service        pkgs/main/linux-64::mkl-service-2.3.0-py37he904b0f_0
  mkl_fft            pkgs/main/linux-64::mkl_fft-1.0.14-py37ha843d7b_0
  mkl_random         pkgs/main/linux-64::mkl_random-1.1.0-py37hd6b4f25_0
  mock               pkgs/main/linux-64::mock-3.0.5-py37_0
  more-itertools     pkgs/main/linux-64::more-itertools-7.2.0-py37_0
  mpc                pkgs/main/linux-64::mpc-1.1.0-h10f8cd9_1
  mpfr               pkgs/main/linux-64::mpfr-4.0.1-hdf1c602_3
  mpmath             pkgs/main/linux-64::mpmath-1.1.0-py37_0
  msgpack-python     pkgs/main/linux-64::msgpack-python-0.6.1-py37hfd86e86_1
  multipledispatch   pkgs/main/linux-64::multipledispatch-0.6.0-py37_0
  navigator-updater  pkgs/main/linux-64::navigator-updater-0.2.1-py37_0
  nbconvert          pkgs/main/linux-64::nbconvert-5.6.0-py37_1
  nbformat           pkgs/main/linux-64::nbformat-4.4.0-py37_0
  ncurses            pkgs/main/linux-64::ncurses-6.1-he6710b0_1
  networkx           pkgs/main/noarch::networkx-2.3-py_0
  nltk               pkgs/main/linux-64::nltk-3.4.5-py37_0
  nose               pkgs/main/linux-64::nose-1.3.7-py37_2
  notebook           pkgs/main/linux-64::notebook-6.0.1-py37_0
  numba              pkgs/main/linux-64::numba-0.45.1-py37h962f231_0
  numexpr            pkgs/main/linux-64::numexpr-2.7.0-py37h9e4a6bb_0
  numpy              pkgs/main/linux-64::numpy-1.17.2-py37haad9e8e_0
  numpy-base         pkgs/main/linux-64::numpy-base-1.17.2-py37hde5b4d6_0
  numpydoc           pkgs/main/noarch::numpydoc-0.9.1-py_0
  olefile            pkgs/main/linux-64::olefile-0.46-py37_0
  openpyxl           pkgs/main/noarch::openpyxl-3.0.0-py_0
  openssl            pkgs/main/linux-64::openssl-1.1.1d-h7b6447c_2
  packaging          pkgs/main/noarch::packaging-19.2-py_0
  pandas             pkgs/main/linux-64::pandas-0.25.1-py37he6710b0_0
  pandoc             pkgs/main/linux-64::pandoc-2.2.3.2-0
  pandocfilters      pkgs/main/linux-64::pandocfilters-1.4.2-py37_1
  pango              pkgs/main/linux-64::pango-1.42.4-h049681c_0
  parso              pkgs/main/noarch::parso-0.5.1-py_0
  partd              pkgs/main/noarch::partd-1.0.0-py_0
  patchelf           pkgs/main/linux-64::patchelf-0.9-he6710b0_3
  path.py            pkgs/main/noarch::path.py-12.0.1-py_0
  pathlib2           pkgs/main/linux-64::pathlib2-2.3.5-py37_0
  patsy              pkgs/main/linux-64::patsy-0.5.1-py37_0
  pcre               pkgs/main/linux-64::pcre-8.43-he6710b0_0
  pep8               pkgs/main/linux-64::pep8-1.7.1-py37_0
  pexpect            pkgs/main/linux-64::pexpect-4.7.0-py37_0
  pickleshare        pkgs/main/linux-64::pickleshare-0.7.5-py37_0
  pillow             pkgs/main/linux-64::pillow-6.2.0-py37h34e0f95_0
  pip                pkgs/main/linux-64::pip-19.2.3-py37_0
  pixman             pkgs/main/linux-64::pixman-0.38.0-h7b6447c_0
  pkginfo            pkgs/main/linux-64::pkginfo-1.5.0.1-py37_0
  pluggy             pkgs/main/linux-64::pluggy-0.13.0-py37_0
  ply                pkgs/main/linux-64::ply-3.11-py37_0
  prometheus_client  pkgs/main/noarch::prometheus_client-0.7.1-py_0
  prompt_toolkit     pkgs/main/noarch::prompt_toolkit-2.0.10-py_0
  psutil             pkgs/main/linux-64::psutil-5.6.3-py37h7b6447c_0
  ptyprocess         pkgs/main/linux-64::ptyprocess-0.6.0-py37_0
  py                 pkgs/main/linux-64::py-1.8.0-py37_0
  py-lief            pkgs/main/linux-64::py-lief-0.9.0-py37h7725739_2
  pycodestyle        pkgs/main/linux-64::pycodestyle-2.5.0-py37_0
  pycosat            pkgs/main/linux-64::pycosat-0.6.3-py37h14c3975_0
  pycparser          pkgs/main/linux-64::pycparser-2.19-py37_0
  pycrypto           pkgs/main/linux-64::pycrypto-2.6.1-py37h14c3975_9
  pycurl             pkgs/main/linux-64::pycurl-7.43.0.3-py37h1ba5d50_0
  pyflakes           pkgs/main/linux-64::pyflakes-2.1.1-py37_0
  pygments           pkgs/main/noarch::pygments-2.4.2-py_0
  pylint             pkgs/main/linux-64::pylint-2.4.2-py37_0
  pyodbc             pkgs/main/linux-64::pyodbc-4.0.27-py37he6710b0_0
  pyopenssl          pkgs/main/linux-64::pyopenssl-19.0.0-py37_0
  pyparsing          pkgs/main/noarch::pyparsing-2.4.2-py_0
  pyqt               pkgs/main/linux-64::pyqt-5.9.2-py37h05f1152_2
  pyrsistent         pkgs/main/linux-64::pyrsistent-0.15.4-py37h7b6447c_0
  pysocks            pkgs/main/linux-64::pysocks-1.7.1-py37_0
  pytables           pkgs/main/linux-64::pytables-3.5.2-py37h71ec239_1
  pytest             pkgs/main/linux-64::pytest-5.2.1-py37_0
  pytest-arraydiff   pkgs/main/linux-64::pytest-arraydiff-0.3-py37h39e3cac_0
  pytest-astropy     pkgs/main/linux-64::pytest-astropy-0.5.0-py37_0
  pytest-doctestplus pkgs/main/noarch::pytest-doctestplus-0.4.0-py_0
  pytest-openfiles   pkgs/main/noarch::pytest-openfiles-0.4.0-py_0
  pytest-remotedata  pkgs/main/linux-64::pytest-remotedata-0.3.2-py37_0
  python             pkgs/main/linux-64::python-3.7.4-h265db76_1
  python-dateutil    pkgs/main/linux-64::python-dateutil-2.8.0-py37_0
  python-libarchive~ pkgs/main/linux-64::python-libarchive-c-2.8-py37_13
  pytz               pkgs/main/noarch::pytz-2019.3-py_0
  pywavelets         pkgs/main/linux-64::pywavelets-1.0.3-py37hdd07704_1
  pyyaml             pkgs/main/linux-64::pyyaml-5.1.2-py37h7b6447c_0
  pyzmq              pkgs/main/linux-64::pyzmq-18.1.0-py37he6710b0_0
  qt                 pkgs/main/linux-64::qt-5.9.7-h5867ecd_1
  qtawesome          pkgs/main/noarch::qtawesome-0.6.0-py_0
  qtconsole          pkgs/main/noarch::qtconsole-4.5.5-py_0
  qtpy               pkgs/main/noarch::qtpy-1.9.0-py_0
  readline           pkgs/main/linux-64::readline-7.0-h7b6447c_5
  requests           pkgs/main/linux-64::requests-2.22.0-py37_0
  ripgrep            pkgs/main/linux-64::ripgrep-0.10.0-hc07d326_0
  rope               pkgs/main/noarch::rope-0.14.0-py_0
  ruamel_yaml        pkgs/main/linux-64::ruamel_yaml-0.15.46-py37h14c3975_0
  scikit-image       pkgs/main/linux-64::scikit-image-0.15.0-py37he6710b0_0
  scikit-learn       pkgs/main/linux-64::scikit-learn-0.21.3-py37hd81dba3_0
  scipy              pkgs/main/linux-64::scipy-1.3.1-py37h7c811a0_0
  seaborn            pkgs/main/linux-64::seaborn-0.9.0-py37_0
  secretstorage      pkgs/main/linux-64::secretstorage-3.1.1-py37_0
  send2trash         pkgs/main/linux-64::send2trash-1.5.0-py37_0
  setuptools         pkgs/main/linux-64::setuptools-41.4.0-py37_0
  simplegeneric      pkgs/main/linux-64::simplegeneric-0.8.1-py37_2
  singledispatch     pkgs/main/linux-64::singledispatch-3.4.0.3-py37_0
  sip                pkgs/main/linux-64::sip-4.19.8-py37hf484d3e_0
  six                pkgs/main/linux-64::six-1.12.0-py37_0
  snappy             pkgs/main/linux-64::snappy-1.1.7-hbae5bb6_3
  snowballstemmer    pkgs/main/noarch::snowballstemmer-2.0.0-py_0
  sortedcollections  pkgs/main/linux-64::sortedcollections-1.1.2-py37_0
  sortedcontainers   pkgs/main/linux-64::sortedcontainers-2.1.0-py37_0
  soupsieve          pkgs/main/linux-64::soupsieve-1.9.3-py37_0
  sphinx             pkgs/main/noarch::sphinx-2.2.0-py_0
  sphinxcontrib      pkgs/main/linux-64::sphinxcontrib-1.0-py37_1
  sphinxcontrib-app~ pkgs/main/noarch::sphinxcontrib-applehelp-1.0.1-py_0
  sphinxcontrib-dev~ pkgs/main/noarch::sphinxcontrib-devhelp-1.0.1-py_0
  sphinxcontrib-htm~ pkgs/main/noarch::sphinxcontrib-htmlhelp-1.0.2-py_0
  sphinxcontrib-jsm~ pkgs/main/noarch::sphinxcontrib-jsmath-1.0.1-py_0
  sphinxcontrib-qth~ pkgs/main/noarch::sphinxcontrib-qthelp-1.0.2-py_0
  sphinxcontrib-ser~ pkgs/main/noarch::sphinxcontrib-serializinghtml-1.1.3-py_0
  sphinxcontrib-web~ pkgs/main/noarch::sphinxcontrib-websupport-1.1.2-py_0
  spyder             pkgs/main/linux-64::spyder-3.3.6-py37_0
  spyder-kernels     pkgs/main/linux-64::spyder-kernels-0.5.2-py37_0
  sqlalchemy         pkgs/main/linux-64::sqlalchemy-1.3.9-py37h7b6447c_0
  sqlite             pkgs/main/linux-64::sqlite-3.30.0-h7b6447c_0
  statsmodels        pkgs/main/linux-64::statsmodels-0.10.1-py37hdd07704_0
  sympy              pkgs/main/linux-64::sympy-1.4-py37_0
  tbb                pkgs/main/linux-64::tbb-2019.4-hfd86e86_0
  tblib              pkgs/main/noarch::tblib-1.4.0-py_0
  terminado          pkgs/main/linux-64::terminado-0.8.2-py37_0
  testpath           pkgs/main/linux-64::testpath-0.4.2-py37_0
  tk                 pkgs/main/linux-64::tk-8.6.8-hbc83047_0
  toolz              pkgs/main/noarch::toolz-0.10.0-py_0
  tornado            pkgs/main/linux-64::tornado-6.0.3-py37h7b6447c_0
  tqdm               pkgs/main/noarch::tqdm-4.36.1-py_0
  traitlets          pkgs/main/linux-64::traitlets-4.3.3-py37_0
  unicodecsv         pkgs/main/linux-64::unicodecsv-0.14.1-py37_0
  unixodbc           pkgs/main/linux-64::unixodbc-2.3.7-h14c3975_0
  urllib3            pkgs/main/linux-64::urllib3-1.24.2-py37_0
  wcwidth            pkgs/main/linux-64::wcwidth-0.1.7-py37_0
  webencodings       pkgs/main/linux-64::webencodings-0.5.1-py37_1
  werkzeug           pkgs/main/noarch::werkzeug-0.16.0-py_0
  wheel              pkgs/main/linux-64::wheel-0.33.6-py37_0
  widgetsnbextension pkgs/main/linux-64::widgetsnbextension-3.5.1-py37_0
  wrapt              pkgs/main/linux-64::wrapt-1.11.2-py37h7b6447c_0
  wurlitzer          pkgs/main/linux-64::wurlitzer-1.0.3-py37_0
  xlrd               pkgs/main/linux-64::xlrd-1.2.0-py37_0
  xlsxwriter         pkgs/main/noarch::xlsxwriter-1.2.1-py_0
  xlwt               pkgs/main/linux-64::xlwt-1.3.0-py37_0
  xz                 pkgs/main/linux-64::xz-5.2.4-h14c3975_4
  yaml               pkgs/main/linux-64::yaml-0.1.7-had09818_2
  zeromq             pkgs/main/linux-64::zeromq-4.3.1-he6710b0_3
  zict               pkgs/main/noarch::zict-1.0.0-py_0
  zipp               pkgs/main/noarch::zipp-0.6.0-py_0
  zlib               pkgs/main/linux-64::zlib-1.2.11-h7b6447c_3
  zstd               pkgs/main/linux-64::zstd-1.3.7-h0b5b093_0


Preparing transaction: done
Executing transaction: done
installation finished.
Do you wish the installer to initialize Anaconda3
by running conda init? [yes|no]
[no] >>> 
You have chosen to not have conda modify your shell scripts at all.
To activate conda's base environment in your current shell session:

eval "$(/root/anaconda3/bin/conda shell.YOUR_SHELL_NAME hook)" 

To install conda's shell functions for easier access, first activate, then:

conda init

If you'd prefer that conda's base environment not be activated on startup, 
   set the auto_activate_base parameter to false: 

conda config --set auto_activate_base false

Thank you for installing Anaconda3!

===========================================================================

Anaconda and JetBrains are working together to bring you Anaconda-powered
environments tightly integrated in the PyCharm IDE.

PyCharm for Anaconda is available at:
https://www.anaconda.com/pycharm

 

 

windows

https://www.jianshu.com/p/0fff4bcff458

 

linux

https://blog.csdn.net/gavinmiaoc/article/details/79656441

https://blog.csdn.net/lan_liang/article/details/86765690

https://zhuanlan.zhihu.com/p/37305519

https://www.cnblogs.com/TomJin/p/11135618.html

 

你可能感兴趣的:(机器视觉,ubuntu学习/C编程)