在CMD输入——pip install tensorflow
如图,Error:异常,上网查了下,解决过程如下:
升级最新的pip:
pip install --upgrade pip
接下来,一定不要简单用
而是要找个镜像地址,目前比较好的是豆瓣镜像。速度嗖嗖的。。。
输入指令
pip3 install --user --upgrade tensorflow -i https://pypi.douban.com/simple
很快就安装完成,将会出现下面的界面
详细内容——
Collecting oauthlib>=3.0.0
Downloading https://pypi.doubanio.com/packages/1d/46/5ee2475e1b46a26ca0fa10d3c1d479577fde6ee289f8c6aa6d7ec33e31fd/oauthlib-3.2.0-py3-none-any.whl (151 kB)
---------------------------------------- 151.5/151.5 kB 4.6 MB/s eta 0:00:00
Building wheels for collected packages: termcolor
Building wheel for termcolor (setup.py) ... done
Created wheel for termcolor: filename=termcolor-1.1.0-py3-none-any.whl size=4848 sha256=c5ee964793a850722f82829a09da71f4e02535a2d3c2aeacbe56d56692daf9b1
Stored in directory: c:\users\rl-068\appdata\local\pip\cache\wheels\d8\aa\75\fbb3e746f9b722e5db18839aa7f8ef060d5ad75df0a4819602
Successfully built termcolor
Installing collected packages: termcolor, tensorboard-plugin-wit, libclang, keras, flatbuffers, tensorflow-io-gcs-filesystem, tensorflow-estimator, tensorboard-data-server, opt-einsum, oauthlib, keras-preprocessing, google-pasta, gast, astunparse, absl-py, requests-oauthlib, google-auth-oauthlib, tensorboard, tensorflow
WARNING: The script google-oauthlib-tool.exe is installed in 'C:\Users\RL-068\AppData\Roaming\Python\Python39\Scripts' which is not on PATH.
Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
WARNING: The script tensorboard.exe is installed in 'C:\Users\RL-068\AppData\Roaming\Python\Python39\Scripts' which is not on PATH.
Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
WARNING: The scripts estimator_ckpt_converter.exe, import_pb_to_tensorboard.exe, saved_model_cli.exe, tensorboard.exe, tf_upgrade_v2.exe, tflite_convert.exe, toco.exe and toco_from_protos.exe are installed in 'C:\Users\RL-068\AppData\Roaming\Python\Python39\Scripts' which is not on PATH.
Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
Successfully installed absl-py-1.0.0 astunparse-1.6.3 flatbuffers-1.12 gast-0.4.0 google-auth-oauthlib-0.4.6 google-pasta-0.2.0 keras-2.9.0 keras-preprocessing-1.1.2 libclang-14.0.1 oauthlib-3.2.0 opt-einsum-3.3.0 requests-oauthlib-1.3.1 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
网友评论