Installation process

Installation process

Windows PowerShell 
Copyright (C) Microsoft Corporation. all rights reserved. 

Try new cross-platform HTTPS PowerShell: //aka.ms/ pscore6 

loading personal and system configuration files used 1243 milliseconds. 
(Base) the PS C: \ the Users \ ZY > Create Conda -n = 3.7 Python py37tfb1 
the WARNING: Module1 of The conda.compat IS deprecated and Will BE removed in A Future Release. 
Collecting Metadata Package: DONE 
Solving, Environment: DONE


 ==> the WARNING .: A newer Version of Conda EXISTS <== 
  Current Version: 4.6.11 
  Latest Version: 4.7.9 

Please Update Conda by running 

    $ Conda Update -n Base -c defaults conda



## Package Plan ##

  environment location: C:\Anaconda3\envs\py37tfb1

  added / updated specs:
    - python=3.7


The following packages will be downloaded:

    package                    |            build
    ---------------------------|-----------------
    python-3.7.3               |       h8c8aaf0_1        17.8 MB
    ------------------------------------------------------------
                                           Total:        17.8 MB

The following NEW packages will be INSTALLED:

  ca-certificates    pkgs/main/win-64::ca-certificates-2019.5.15-0
  certifi            pkgs/main/win-64::certifi-2019.6.16-py37_0
  openssl            pkgs/main/win-64::openssl-1.1.1c-he774522_1
  pip                pkgs/main/win-64::pip-19.1.1-py37_0
  python             pkgs/main/win-64::python-3.7.3-h8c8aaf0_1
  setuptools         pkgs/main/win-64::setuptools-41.0.1-py37_0
  sqlite             pkgs/main/win-64::sqlite-3.29.0-he774522_0
  vc                 pkgs/main/win-64::vc-14.1-h0510ff6_4
  vs2015_runtime     pkgs/main/win-64::vs2015_runtime-14.15.26706-h3a45250_4
  wheel              pkgs/main/win-64::wheel-0.33.4-py37_0
  wincertstore       pkgs/main/win-64::wincertstore-0.2-py37_0


Proceed ([y]/n)? y


Downloading and Extracting Packages
python-3.7.3         | 17.8 MB   | #########1                                                                   |  12%

('Connection broken: OSError("(10054, \'WSAECONNRESET\')")', OSError("(10054, 'WSAECONNRESET')"))

(base) PS C:\Users\zy> conda create -n py37tfb1 python=3.7
WARNING: The conda.compat module is deprecated and will be removed in a future release.
Collecting package metadata: done
Solving environment: done


==> WARNING: A newer version of conda exists. <==
  current version: 4.6.11
  latest version: 4.7.9

Please update conda by running

    $ conda update -n base -c defaults conda



## Package Plan ##

  environment location: C:\Anaconda3\envs\py37tfb1

  added / updated specs:
    - python=3.7


The following packages will be downloaded:

    package                    |            build
    ---------------------------|-----------------
    python-3.7.3               |       h8c8aaf0_1        17.8 MB
    ------------------------------------------------------------
                                           Total:        17.8 MB

The following NEW packages will be INSTALLED:

  ca-certificates    pkgs/main/win-64::ca-certificates-2019.5.15-0
  certifi            pkgs/main/win-64::certifi-2019.6.16-py37_0
  openssl            pkgs/main/win-64::openssl-1.1.1c-he774522_1
  pip                pkgs/main/win-64::pip-19.1.1-py37_0
  python             pkgs/main/win-64::python-3.7.3-h8c8aaf0_1
  setuptools         pkgs/main/win-64::setuptools-41.0.1-py37_0
  sqlite             pkgs/main/win-64::sqlite-3.29.0-he774522_0
  vc                 pkgs/main/win-64::vc-14.1-h0510ff6_4
  vs2015_runtime     pkgs/main/win-64::vs2015_runtime-14.15.26706-h3a45250_4
  wheel              pkgs/main/win-64::wheel-0.33.4-py37_0
  wincertstore       pkgs/main/win-64::wincertstore-0.2-py37_0


Proceed ([y]/n)? y


Downloading and Extracting Packages
python-3.7.3         | 17.8 MB   | ############################################################################ | 100%
Preparing transaction: done
Verifying transaction: done
Executing transaction: done
#
# To activate this environment, use
#
#     $ conda activate py37tfb1
#
# To deactivate an active environment, use
#
#     $ conda deactivate

(base) PS C:\Users\zy> conda activate py37tfb1
(py37tfb1) PS C:\Users\zy>
(py37tfb1) PS C:\Users\zy> pip list
Package      Version
------------ ---------
certifi      2019.6.16
pip          19.1.1
setuptools   41.0.1
wheel        0.33.4
wincertstore 0.2
(py37tfb1) PS C:\Users\zy> python
Python 3.7.3 (default, Apr 24 2019, 15:29:51) [MSC v.1915 64 bit (AMD64)] :: Anaconda, Inc. on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import pip._internal
>>> print(pip._internal.pep425tags.get_supported())
[('cp37', 'cp37m', 'win_amd64'), ('cp37', 'none', 'win_amd64'), ('py3', 'none', 'win_amd64'), ('cp37', 'none', 'any'), ('cp3', 'none', 'any'), ('py37', 'none', 'any'), ('py3', 'none', 'any'), ('py36', 'none', 'any'Py35'), (', 'none', 'any'), ('py34', 'none', 'any'), ('py33', 'none', 'any'), ('py32', 'none', 'any'), ('py31', 'none', 'any'), ('py30', 'none', 'any')]
>>> exit()
(py37tfb1) PS C:\Users\zy> pip install tensorflow==2.0.0-beta1
Collecting tensorflow==2.0.0-beta1
  WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ConnectTimeoutError(<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x000001F62579D9B0>, 'Connection to pypi.org timed out. (connect timeout=15)')': /simple/tensorflow/
  WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ConnectTimeoutError(<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x000001F62579DB38>, 'Connection to pypi.org timed out. (connect timeout=15)')': /simple/tensorflow/
ERROR: Operation cancelled by user
(py37tfb1) PS C:\Users\zy> pip install -i https://pypi.tuna.tsinghua.edu.cn/simple tensorflow==2.0.0-beta1
Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple
Collecting tensorflow==2.0.0-beta1
  Downloading https://pypi.tuna.tsinghua.edu.cn/packages/24/2c/373d2847538fdd65742ad19df23946e0d0a8f1df7f5f0c6bce6e9b293088/tensorflow-2.0.0b1-cp37-cp37m-win_amd64.whl (55.1MB)
     |████████████████████████████████| 55.1MB 1.1MB/s
Collecting six>=1.10.0 (from tensorflow==2.0.0-beta1)
  Downloading https://pypi.tuna.tsinghua.edu.cn/packages/73/fb/00a976f728d0d1fecfe898238ce23f502a721c0ac0ecfedb80e0d88c64e9/six-1.12.0-py2.py3-none-any.whl
Collecting keras-applications>=1.0.6 (from tensorflow==2.0.0-beta1)
  Downloading https://pypi.tuna.tsinghua.edu.cn/packages/71/e3/19762fdfc62877ae9102edf6342d71b28fbfd9dea3d2f96a882ce099b03f/Keras_Applications-1.0.8-py3-none-any.whl (50kB)
     |████████████████████████████████| 51kB 656kB/s
Collecting numpy<2.0,>=1.14.5 (from tensorflow==2.0.0-beta1)
  Downloading https://pypi.tuna.tsinghua.edu.cn/packages/ce/61/be72eee50f042db3acf0b1fb86650ad36d6c0d9be9fc29f8505d3b9d6baa/numpy-1.16.4-cp37-cp37m-win_amd64.whl (11.9MB)
     |████████████████████████████████| 11.9MB 930kB/s
Collecting gast>=0.2.0 (from tensorflow==2.0.0-beta1)
  Downloading https://pypi.tuna.tsinghua.edu.cn/packages/4e/35/11749bf99b2d4e3cceb4d55ca22590b0d7c2c62b9de38ac4a4a7f4687421/gast-0.2.2.tar.gz
Collecting termcolor>=1.1.0 (from tensorflow==2.0.0-beta1)
  Downloading https://pypi.tuna.tsinghua.edu.cn/packages/8a/48/a76be51647d0eb9f10e2a4511bf3ffb8cc1e6b14e9e4fab46173aa79f981/termcolor-1.1.0.tar.gz
Collecting grpcio>=1.8.6 (from tensorflow==2.0.0-beta1)
  Downloading https://pypi.tuna.tsinghua.edu.cn/packages/7a/f5/fe046577387a3589ab3092096ca423fcf9a8c7ac876f56c6f3b4c9b9e533/grpcio-1.22.0-cp37-cp37m-win_amd64.whl (1.6MB)
     |████████████████████████████████| 1.6MB 819kB/s
Collecting tb-nightly<1.14.0a20190604,>=1.14.0a20190603 (from tensorflow==2.0.0-beta1)
  Downloading https://pypi.tuna.tsinghua.edu.cn/packages/a4/96/571b875cd81dda9d5dfa1422a4f9d749e67c0a8d4f4f0b33a4e5f5f35e27/tb_nightly-1.14.0a20190603-py3-none-any.whl (3.1MB)
     |████████████████████████████████| 3.1MB 3.3MB/s
Requirement already satisfied: wheel>=0.26 in c:\anaconda3\envs\py37tfb1\lib\site-packages (from tensorflow==2.0.0-beta1) (0.33.4)
Collecting absl-py>=0.7.0 (from tensorflow==2.0.0-beta1)
  Downloading https://pypi.tuna.tsinghua.edu.cn/packages/da/3f/9b0355080b81b15ba6a9ffcf1f5ea39e307a2778b2f2dc8694724e8abd5b/absl-py-0.7.1.tar.gz (99kB)
     |████████████████████████████████| 102kB 1.1MB/s
Collecting astor>=0.6.0 (from tensorflow==2.0.0-beta1)
  Downloading https://pypi.tuna.tsinghua.edu.cn/packages/d1/4f/950dfae467b384fc96bc6469de25d832534f6b4441033c39f914efd13418/astor-0.8.0-py2.py3-none-any.whl
Collecting google-pasta>=0.1.6 (from tensorflow==2.0.0-beta1)
  Downloading https://pypi.tuna.tsinghua.edu.cn/packages/d0/33/376510eb8d6246f3c30545f416b2263eee461e40940c2a4413c711bdf62d/google_pasta-0.1.7-py3-none-any.whl (52kB)
     |████████████████████████████████| 61kB 2.0MB/s
Collecting wrapt>=1.11.1 (from tensorflow==2.0.0-beta1)
  Downloading https://pypi.tuna.tsinghua.edu.cn/packages/23/84/323c2415280bc4fc880ac5050dddfb3c8062c2552b34c2e512eb4aa68f79/wrapt-1.11.2.tar.gz
Collecting protobuf>=3.6.1 (from tensorflow==2.0.0-beta1)
  Downloading https://pypi.tuna.tsinghua.edu.cn/packages/5a/5b/2ffcea713a542179878d0f03e7c6e50d09ca470b36e730f94ed51e51b35d/protobuf-3.9.0-cp37-cp37m-win_amd64.whl (1.0MB)
     |████████████████████████████████| 1.0MB 1.6MB/s
Collecting tf-estimator-nightly<1.14.0.dev2019060502,>=1.14.0.dev2019060501 (from tensorflow==2.0.0-beta1)
  Downloading https://pypi.tuna.tsinghua.edu.cn/packages/32/dd/99c47dd007dcf10d63fd895611b063732646f23059c618a373e85019eb0e/tf_estimator_nightly-1.14.0.dev2019060501-py2.py3-none-any.whl (496kB)
     |████████████████████████████████| 501kB 1.6MB/s
Collecting keras-preprocessing>=1.0.5 (from tensorflow==2.0.0-beta1)
  Downloading https://pypi.tuna.tsinghua.edu.cn/packages/28/6a/8c1f62c37212d9fc441a7e26736df51ce6f0e38455816445471f10da4f0a/Keras_Preprocessing-1.1.0-py2.py3-none-any.whl (41kB)
     |████████████████████████████████| 51kB 1.7MB/s
Collecting h5py (from keras-applications>=1.0.6->tensorflow==2.0.0-beta1)
  Downloading https://pypi.tuna.tsinghua.edu.cn/packages/4f/1e/89aa610afce8df6fd1f12647600a05e902238587ae6375442a3164b59d51/h5py-2.9.0-cp37-cp37m-win_amd64.whl (2.4MB)
     |████████████████████████████████| 2.4MB 1.3MB/s
Requirement already satisfied: setuptools>=41.0.0 in c:\anaconda3\envs\py37tfb1\lib\site-packages (from tb-nightly<1.14.0a20190604,>=1.14.0a20190603->tensorflow==2.0.0-beta1) (41.0.1)
Collecting markdown>=2.6.8 (from tb-nightly<1.14.0a20190604,>=1.14.0a20190603->tensorflow==2.0.0-beta1)
  Downloading https://pypi.tuna.tsinghua.edu.cn/packages/c0/4e/fd492e91abdc2d2fcb70ef453064d980688762079397f779758e055f6575/Markdown-3.1.1-py2.py3-none-any.whl (87kB)
     |████████████████████████████████| 92kB 1.5MB/s
Collecting werkzeug>=0.11.15 (from tb-nightly<1.14.0a20190604,>=1.14.0a20190603->tensorflow==2.0.0-beta1)
  Downloading https://pypi.tuna.tsinghua.edu.cn/packages/d1/ab/d3bed6b92042622d24decc7aadc8877badf18aeca1571045840ad4956d3f/Werkzeug-0.15.5-py2.py3-none-any.whl (328kB)
     |████████████████████████████████| 337kB 1.6MB/s
Building wheels for collected packages: gast, termcolor, absl-py, wrapt
  Building wheel for gast (setup.py) ... done
  Stored in directory: C:\Users\zy\AppData\Local\pip\Cache\wheels\46\85\ca\e81b54f271ca53efa4212d02e67e6ac7cbf413cd8c0342f976
  Building wheel for termcolor (setup.py) ... done
  Stored in directory: C:\Users\zy\AppData\Local\pip\Cache\wheels\e3\d8\fc\50ab6e66e3dead21d5afff006dc5298913a3064be2b1105359
  Building wheel for absl-py (setup.py) ... done
  Stored in directory: C:\Users\zy\AppData\Local\pip\Cache\wheels\58\1c\db\076c6993729ee486e849354b0e65b052da7a06f7038924a715
  Building wheel for wrapt (setup.py) ... done
  Stored in directory: C:\Users\zy\AppData\Local\pip\Cache\wheels\48\31\f6\4ebf38e9000388204ef6f1931a0cd48f9d75a12a9c6a328cfd
Successfully built gast termcolor absl-py wrapt
Installing collected packages: six, numpy, h5py, keras-applications, gast, termcolor, grpcio, protobuf, markdown, werkzeug, absl-py, tb-nightly, astor, google-pasta, wrapt, tf-estimator-nightly, keras-preprocessing, tensorflow
Successfully installed absl-py-0.7.1 astor-0.8.0 gast-0.2.2 google-pasta-0.1.7 grpcio-1.22.0 h5py-2.9.0 keras-applications-1.0.8 keras-preprocessing-1.1.0 markdown-3.1.1 numpy-1.16.4 protobuf-3.9.0 six-1.12.0 tb-nightly-1.14.0a20190603 tensorflow-2.0.0b1 termcolor-1.1.0 tf-estimator-nightly-1.14.0.dev2019060501 werkzeug-0.15.5 wrapt-1.11.2
(py37tfb1) PS C:\Users\zy> pip install E:/software_python/CP37/numpy-1.16.4+mkl-cp37-cp37m-win_amd64.whl
Processing e:\software_python\cp37\numpy-1.16.4+mkl-cp37-cp37m-win_amd64.whl
Installing collected packages: numpy
  Found existing installation: numpy 1.16.4
    Uninstalling numpy-1.16.4:
      Successfully uninstalled numpy-1.16.4
Successfully installed numpy-1.16.4+mkl
(py37tfb1) PS C:\Users\zy> python
Python 3.7.3 (default, Apr 24 2019, 15:29:51) [MSC v.1915 64 bit (AMD64)] :: Anaconda, Inc. on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import tensorflow
>>> import tensorflow as tf
>>> print(tf.__verson__)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
AttributeError: module 'tensorflow' has no attribute '__verson__'
>>> print(tf.__version__)
2.0.0-beta1
>>>

 

Guess you like

Origin www.cnblogs.com/gengyi/p/11220204.html