当前位置:网站首页>Build learning tensorflow
Build learning tensorflow
2022-07-02 06:41:00 【zb0567】
know TensorFlow Official website
TensorFlow
https://www.tensorflow.org/install Then install it normally
Supported systems
- Python 3.6–3.9
- Ubuntu 16.04 Or later
- Windows 7 Or later ( contain C++ Redistributable packages
- macOS 10.12.6 (Sierra) Or later ( I won't support it GPU)
python install
# Requires the latest pippip install --upgrade pip# Current stable release for CPU and GPUpip install tensorflow###################################################################### At first, I thought that you can only use the default on the Internet python3.6 And the following installation and use Python Report errors ERROR:ERROR: Could not find a version that satisfies the requirement tensorflow_ It's Jeff's blog -CSDN Blog This is actually not desirable , Version changes will cause more unpredictable situations
C:\Windows\System32>python3
Python 3.7.3 (v3.7.3:ef4ec6ed12, Mar 25 2019, 21:26:53) [MSC v.1916 32 bit (Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> exit()The dead version Solution : Try to find whl To no avail tensorflow-text · PyPIhttps://pypi.org/project/tensorflow-text/#files Download the corresponding windows64 position 3.7 And the above support Must be 64 position python Then you can happily install with Tsinghua source
C:\Windows\System32>pip3 install tensorflow
Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple
Collecting tensorflow
Downloading https://pypi.tuna.tsinghua.edu.cn/packages/af/f2/b9ebc1355c2d48c5823f9a33bfd91d885c1499846080eebc4ea21f5e509d/tensorflow-2.9.1-cp37-cp37m-win_amd64.whl (444.0 MB)
---------------------------------------- 444.0/444.0 MB 187.7 kB/s eta 0:00:00
Collecting opt-einsum>=2.3.2
Downloading https://pypi.tuna.tsinghua.edu.cn/packages/bc/19/404708a7e54ad2798907210462fd950c3442ea51acc8790f3da48d2bee8b/opt_einsum-3.3.0-py3-none-any.whl (65 kB)
---------------------------------------- 65.5/65.5 kB 55.2 kB/s eta 0:00:00
Requirement already satisfied: six>=1.12.0 in c:\python37\lib\site-packages (from tensorflow) (1.15.0)
Collecting google-pasta>=0.1.1
Downloading https://pypi.tuna.tsinghua.edu.cn/packages/a3/de/c648ef6835192e6e2cc03f40b19eeda4382c49b5bafb43d88b931c4c74ac/google_pasta-0.2.0-py3-none-any.whl (57 kB)
---------------------------------------- 57.5/57.5 kB 377.8 kB/s eta 0:00:00
Collecting wrapt>=1.11.0
Downloading https://pypi.tuna.tsinghua.edu.cn/packages/e7/a1/a9596c5858c4a58be8cdd5e8b0e5f53f9c1c17f0616b47edde8de1a356fe/wrapt-1.14.1-cp37-cp37m-win_amd64.whl (35 kB)
Collecting typing-extensions>=3.6.6
Downloading https://pypi.tuna.tsinghua.edu.cn/packages/75/e1/932e06004039dd670c9d5e1df0cd606bf46e29a28e65d5bb28e894ea29c9/typing_extensions-4.2.0-py3-none-any.whl (24 kB)
Collecting libclang>=13.0.0
Downloading https://pypi.tuna.tsinghua.edu.cn/packages/c9/a3/0de5fea78129d23ea8c4ee42363bc9d822bb144be81469202c7bb5888f1e/libclang-14.0.1-py2.py3-none-win_amd64.whl (14.2 MB)
---------------------------------------- 14.2/14.2 MB 448.4 kB/s eta 0:00:00
Collecting packaging
Downloading https://pypi.tuna.tsinghua.edu.cn/packages/05/8e/8de486cbd03baba4deef4142bd643a3e7bbe954a784dc1bb17142572d127/packaging-21.3-py3-none-any.whl (40 kB)
---------------------------------------- 40.8/40.8 kB 48.8 kB/s eta 0:00:00
Collecting keras-preprocessing>=1.1.1
Downloading https://pypi.tuna.tsinghua.edu.cn/packages/79/4c/7c3275a01e12ef9368a892926ab932b33bb13d55794881e3573482b378a7/Keras_Preprocessing-1.1.2-py2.py3-none-any.whl (42 kB)
---------------------------------------- 42.6/42.6 kB 344.1 kB/s eta 0:00:00
Collecting absl-py>=1.0.0
Downloading https://pypi.tuna.tsinghua.edu.cn/packages/2c/03/e3e19d3faf430ede32e41221b294e37952e06acc96781c417ac25d4a0324/absl_py-1.0.0-py3-none-any.whl (126 kB)
---------------------------------------- 126.7/126.7 kB 680.8 kB/s eta 0:00:00
Collecting tensorflow-io-gcs-filesystem>=0.23.1
Downloading https://pypi.tuna.tsinghua.edu.cn/packages/c3/a4/ca66ec75620d7e0dc488a22eced633fe5233e82df0c552be3dbf04bfe2d4/tensorflow_io_gcs_filesystem-0.26.0-cp37-cp37m-win_amd64.whl (1.5 MB)
---------------------------------------- 1.5/1.5 MB 427.5 kB/s eta 0:00:00
Collecting flatbuffers<2,>=1.12
Downloading https://pypi.tuna.tsinghua.edu.cn/packages/eb/26/712e578c5f14e26ae3314c39a1bdc4eb2ec2f4ddc89b708cf8e0a0d20423/flatbuffers-1.12-py2.py3-none-any.whl (15 kB)
Collecting protobuf<3.20,>=3.9.2
Downloading https://pypi.tuna.tsinghua.edu.cn/packages/b3/41/5e2dfb15fdae38be5dd62be30f9fd40c57e50bd56ee2c276f6230c57a3ad/protobuf-3.19.4-cp37-cp37m-win_amd64.whl (896 kB)
---------------------------------------- 896.4/896.4 kB 484.5 kB/s eta 0:00:00
Collecting gast<=0.4.0,>=0.2.1
Downloading https://pypi.tuna.tsinghua.edu.cn/packages/b6/48/583c032b79ae5b3daa02225a675aeb673e58d2cb698e78510feceb11958c/gast-0.4.0-py3-none-any.whl (9.8 kB)
Collecting astunparse>=1.6.0
Downloading https://pypi.tuna.tsinghua.edu.cn/packages/2b/03/13dde6512ad7b4557eb792fbcf0c653af6076b81e5941d36ec61f7ce6028/astunparse-1.6.3-py2.py3-none-any.whl (12 kB)
Collecting tensorboard<2.10,>=2.9
Downloading https://pypi.tuna.tsinghua.edu.cn/packages/69/80/a3abccc4ea941c36741751206e40e619afe28652cf76f74cfa4c3e4248ba/tensorboard-2.9.0-py3-none-any.whl (5.8 MB)
---------------------------------------- 5.8/5.8 MB 417.1 kB/s eta 0:00:00
Collecting h5py>=2.9.0
Downloading https://pypi.tuna.tsinghua.edu.cn/packages/b1/ea/0fe3795ae908f8bbeb56cd1a416903480e4a6d97c8a0ab9cf2f726689cbc/h5py-3.7.0-cp37-cp37m-win_amd64.whl (2.6 MB)
---------------------------------------- 2.6/2.6 MB 376.9 kB/s eta 0:00:00
Collecting keras<2.10.0,>=2.9.0rc0
Downloading https://pypi.tuna.tsinghua.edu.cn/packages/ff/ff/f25909606aed26981a8bd6d263f89d64a20ca5e5316e6aafb4c75d9ec8ae/keras-2.9.0-py2.py3-none-any.whl (1.6 MB)
---------------------------------------- 1.6/1.6 MB 631.6 kB/s eta 0:00:00
Requirement already satisfied: setuptools in c:\python37\lib\site-packages (from tensorflow) (41.2.0)
Collecting numpy>=1.20
Downloading https://pypi.tuna.tsinghua.edu.cn/packages/97/9f/da37cc4a188a1d5d203d65ab28d6504e17594b5342e0c1dc5610ee6f4535/numpy-1.21.6-cp37-cp37m-win_amd64.whl (14.0 MB)
---------------------------------------- 14.0/14.0 MB 484.2 kB/s eta 0:00:00
Collecting tensorflow-estimator<2.10.0,>=2.9.0rc0
Downloading https://pypi.tuna.tsinghua.edu.cn/packages/61/e1/a72ec68403d91ba433018db58859fd4706642aa9d0fb44ff778934fc4c2c/tensorflow_estimator-2.9.0-py2.py3-none-any.whl (438 kB)
---------------------------------------- 438.7/438.7 kB 703.5 kB/s eta 0:00:00
Collecting termcolor>=1.1.0
Downloading https://pypi.tuna.tsinghua.edu.cn/packages/8a/48/a76be51647d0eb9f10e2a4511bf3ffb8cc1e6b14e9e4fab46173aa79f981/termcolor-1.1.0.tar.gz (3.9 kB)
Preparing metadata (setup.py) ... done
Collecting grpcio<2.0,>=1.24.3
Downloading https://pypi.tuna.tsinghua.edu.cn/packages/d8/e5/a176f35224da5d65e4cc3ff1edb2999af0831592e51a80f3f9bc8786c7d8/grpcio-1.46.3-cp37-cp37m-win_amd64.whl (3.5 MB)
---------------------------------------- 3.5/3.5 MB 1.0 MB/s eta 0:00:00
Collecting wheel<1.0,>=0.23.0
Downloading https://pypi.tuna.tsinghua.edu.cn/packages/27/d6/003e593296a85fd6ed616ed962795b2f87709c3eee2bca4f6d0fe55c6d00/wheel-0.37.1-py2.py3-none-any.whl (35 kB)
Collecting google-auth<3,>=1.6.3
Downloading https://pypi.tuna.tsinghua.edu.cn/packages/fc/04/ea9a945a6fbd7f7f977fcf7e300a715f1635939e5daf141b95068abaa5ec/google_auth-2.6.6-py2.py3-none-any.whl (156 kB)
---------------------------------------- 156.7/156.7 kB 469.4 kB/s eta 0:00:00
Requirement already satisfied: requests<3,>=2.21.0 in c:\python37\lib\site-packages (from tensorboard<2.10,>=2.9->tensorflow) (2.23.0)
Collecting markdown>=2.6.8
Downloading https://pypi.tuna.tsinghua.edu.cn/packages/f3/df/ca72f352e15b6f8ce32b74af029f1189abffb906f7c137501ffe69c98a65/Markdown-3.3.7-py3-none-any.whl (97 kB)
---------------------------------------- 97.8/97.8 kB 557.6 kB/s eta 0:00:00
Collecting google-auth-oauthlib<0.5,>=0.4.1
Downloading https://pypi.tuna.tsinghua.edu.cn/packages/b1/0e/0636cc1448a7abc444fb1b3a63655e294e0d2d49092dc3de05241be6d43c/google_auth_oauthlib-0.4.6-py2.py3-none-any.whl (18 kB)
Collecting tensorboard-plugin-wit>=1.6.0
Downloading https://pypi.tuna.tsinghua.edu.cn/packages/e0/68/e8ecfac5dd594b676c23a7f07ea34c197d7d69b3313afdf8ac1b0a9905a2/tensorboard_plugin_wit-1.8.1-py3-none-any.whl (781 kB)
---------------------------------------- 781.3/781.3 kB 1.0 MB/s eta 0:00:00
Collecting tensorboard-data-server<0.7.0,>=0.6.0
Downloading https://pypi.tuna.tsinghua.edu.cn/packages/74/69/5747a957f95e2e1d252ca41476ae40ce79d70d38151d2e494feb7722860c/tensorboard_data_server-0.6.1-py3-none-any.whl (2.4 kB)
Requirement already satisfied: werkzeug>=1.0.1 in c:\python37\lib\site-packages (from tensorboard<2.10,>=2.9->tensorflow) (1.0.1)
Collecting pyparsing!=3.0.5,>=2.0.2
Downloading https://pypi.tuna.tsinghua.edu.cn/packages/6c/10/a7d0fa5baea8fe7b50f448ab742f26f52b80bfca85ac2be9d35cdd9a3246/pyparsing-3.0.9-py3-none-any.whl (98 kB)
---------------------------------------- 98.3/98.3 kB 201.6 kB/s eta 0:00:00
Collecting rsa<5,>=3.1.4
Downloading https://pypi.tuna.tsinghua.edu.cn/packages/30/ab/8fd9e88e6fa5ec41afca995938bbefb72195278e0cfc5bd76a4f29b23fb2/rsa-4.8-py3-none-any.whl (39 kB)
Collecting pyasn1-modules>=0.2.1
Downloading https://pypi.tuna.tsinghua.edu.cn/packages/95/de/214830a981892a3e286c3794f41ae67a4495df1108c3da8a9f62159b9a9d/pyasn1_modules-0.2.8-py2.py3-none-any.whl (155 kB)
---------------------------------------- 155.3/155.3 kB 547.3 kB/s eta 0:00:00
Collecting cachetools<6.0,>=2.0.0
Downloading https://pypi.tuna.tsinghua.edu.cn/packages/99/33/c605db9880c7bf6d58db6bb2953860b1927d28dd033d3bea82323d4e7b25/cachetools-5.1.0-py3-none-any.whl (9.2 kB)
Collecting requests-oauthlib>=0.7.0
Downloading https://pypi.tuna.tsinghua.edu.cn/packages/6f/bb/5deac77a9af870143c684ab46a7934038a53eb4aa975bc0687ed6ca2c610/requests_oauthlib-1.3.1-py2.py3-none-any.whl (23 kB)
Collecting importlib-metadata>=4.4
Downloading https://pypi.tuna.tsinghua.edu.cn/packages/ab/b5/1bd220dd470b0b912fc31499e0d9c652007a60caf137995867ccc4b98cb6/importlib_metadata-4.11.4-py3-none-any.whl (18 kB)
Requirement already satisfied: chardet<4,>=3.0.2 in c:\python37\lib\site-packages (from requests<3,>=2.21.0->tensorboard<2.10,>=2.9->tensorflow) (3.0.4)
Requirement already satisfied: urllib3!=1.25.0,!=1.25.1,<1.26,>=1.21.1 in c:\python37\lib\site-packages (from requests<3,>=2.21.0->tensorboard<2.10,>=2.9->tensorflow) (1.25.9)
Requirement already satisfied: certifi>=2017.4.17 in c:\python37\lib\site-packages (from requests<3,>=2.21.0->tensorboard<2.10,>=2.9->tensorflow) (2020.4.5.1)
Requirement already satisfied: idna<3,>=2.5 in c:\python37\lib\site-packages (from requests<3,>=2.21.0->tensorboard<2.10,>=2.9->tensorflow) (2.9)
Collecting zipp>=0.5
Downloading https://pypi.tuna.tsinghua.edu.cn/packages/80/0e/16a7ee38617aab6a624e95948d314097cc2669edae9b02ded53309941cfc/zipp-3.8.0-py3-none-any.whl (5.4 kB)
Collecting pyasn1<0.5.0,>=0.4.6
Downloading https://pypi.tuna.tsinghua.edu.cn/packages/62/1e/a94a8d635fa3ce4cfc7f506003548d0a2447ae76fd5ca53932970fe3053f/pyasn1-0.4.8-py2.py3-none-any.whl (77 kB)
---------------------------------------- 77.1/77.1 kB 204.0 kB/s eta 0:00:00
Collecting oauthlib>=3.0.0
Downloading https://pypi.tuna.tsinghua.edu.cn/packages/1d/46/5ee2475e1b46a26ca0fa10d3c1d479577fde6ee289f8c6aa6d7ec33e31fd/oauthlib-3.2.0-py3-none-any.whl (151 kB)
---------------------------------------- 151.5/151.5 kB 164.5 kB/s eta 0:00:00
Using legacy 'setup.py install' for termcolor, since package 'wheel' is not installed.
Installing collected packages: termcolor, tensorboard-plugin-wit, pyasn1, libclang, keras, flatbuffers, zipp, wrapt, wheel, typing-extensions, tensorflow-io-gcs-filesystem, tensorflow-estimator, tensorboard-data-server, rsa, pyparsing, pyasn1-modules, protobuf, oauthlib, numpy, grpcio, google-pasta, gast, cachetools, absl-py, requests-oauthlib, packaging, opt-einsum, keras-preprocessing, importlib-metadata, h5py, google-auth, astunparse, markdown, google-auth-oauthlib, tensorboard, tensorflow
Running setup.py install for termcolor ... done
Attempting uninstall: numpy
Found existing installation: numpy 1.19.1
Uninstalling numpy-1.19.1:
Successfully uninstalled numpy-1.19.1
Successfully installed absl-py-1.0.0 astunparse-1.6.3 cachetools-5.1.0 flatbuffers-1.12 gast-0.4.0 google-auth-2.6.6 google-auth-oauthlib-0.4.6 google-pasta-0.2.0 grpcio-1.46.3 h5py-3.7.0 importlib-metadata-4.11.4 keras-2.9.0 keras-preprocessing-1.1.2 libclang-14.0.1 markdown-3.3.7 numpy-1.21.6 oauthlib-3.2.0 opt-einsum-3.3.0 packaging-21.3 protobuf-3.19.4 pyasn1-0.4.8 pyasn1-modules-0.2.8 pyparsing-3.0.9 requests-oauthlib-1.3.1 rsa-4.8 tensorboard-2.9.0 tensorboard-data-server-0.6.1 tensorboard-plugin-wit-1.8.1 tensorflow-2.9.1 tensorflow-estimator-2.9.0 tensorflow-io-gcs-filesystem-0.26.0 termcolor-1.1.0 typing-extensions-4.2.0 wheel-0.37.1 wrapt-1.14.1 zipp-3.8.0 Finally succeed
# Or try the preview build (unstable)
pip install tf-nightly边栏推荐
- Tensorrt command line program
- NodeJs - Express 中间件修改 Header: TypeError [ERR_INVALID_CHAR]: Invalid character in header content
- 20210306 reprint how to make TextEdit have background pictures
- AWD学习
- Redis - hot key issues
- After reading useful blogs
- Find the highest value of the current element Z-index of the page
- Usage of map and foreach in JS
- Vector types and variables built in CUDA
- 代码技巧——Controller参数注解@RequestParam
猜你喜欢

There is no way to drag the win10 desktop icon (you can select it, open it, delete it, create it, etc., but you can't drag it)

The intern left a big hole when he ran away and made two online problems, which made me miserable

How to try catch statements that return promise objects in JS

js中对于返回Promise对象的语句如何try catch

pytest(1) 用例收集规则

Win10桌面图标没有办法拖动(可以选中可以打开可以删除新建等操作但是不能拖动)

Sparse array (nonlinear structure)

由於不正常斷電導致的unexpected inconsistency;RUN fsck MANUALLY問題已解决
![Data science [9]: SVD (2)](/img/2c/f1a8c3ff34ff3f3cc6e26157a32bfd.png)
Data science [9]: SVD (2)

FE - 微信小程序 - 蓝牙 BLE 开发调研与使用
随机推荐
Idea announced a new default UI, which is too refreshing (including the application link)
Three suggestions for all students who have graduated and will graduate
Sentinel Alibaba open source traffic protection component
Name six schemes to realize delayed messages at one go
Latex 编译报错 I found no \bibstyle & \bibdata & \citation command
TensorRT的数据格式定义详解
js中map和forEach的用法
selenium备忘录:selenium\webdriver\remote\remote_connection.py:374: ResourceWarning: unclosed<xxxx>解决办法
Data science [9]: SVD (2)
sprintf_ How to use s
奇葩pip install
Render minecraft scenes into real scenes using NVIDIA GPU
sprintf_s的使用方法
Unexpected inconsistency caused by abnormal power failure; Run fsck manually problem resolved
Pytest (1) case collection rules
Sublime Text 配置php编译环境
Win10:添加或者删除开机启动项,在开机启动项中添加在用户自定义的启动文件
部署api_automation_test过程中遇到的问题
默认google浏览器打不开链接(点击超链接没有反应)
pytest(2) mark功能