windows系统python安装tensorflow

tensorflow在windows上面只支持python3.5和3.6,如果是python2.7需要使用linux系统

到https://www.python.org/downloads/下载python3.6版本
windows系统python安装tensorflow_第1张图片
安装python
windows系统python安装tensorflow_第2张图片

升级pip

python -m pip install --upgrade pip

使用豆瓣源安装tensorflow

cpu版
python -m pip install -i https://pypi.douban.com/simple tensorflow
gpu版
python -m pip install -i https://pypi.douban.com/simple tensorflow-gpu

安装完成后查看版本

python -m pip list
Package                 Version
----------------------- ---------
absl-py                 0.15.0
astunparse              1.6.3
cached-property         1.5.2
cachetools              4.2.4
certifi                 2022.12.7
charset-normalizer      2.0.12
clang                   5.0
dataclasses             0.8
flatbuffers             1.12
gast                    0.4.0
google-auth             1.35.0
google-auth-oauthlib    0.4.6
google-pasta            0.2.0
grpcio                  1.48.2
h5py                    3.1.0
idna                    3.4
importlib-metadata      4.8.3
keras                   2.6.0
Keras-Preprocessing     1.1.2
Markdown                3.3.7
numpy                   1.19.5
oauthlib                3.2.2
opt-einsum              3.3.0
pip                     20.3.1
protobuf                3.19.6
pyasn1                  0.4.8
pyasn1-modules          0.2.8
requests                2.27.1
requests-oauthlib       1.3.1
rsa                     4.9
setuptools              59.6.0
six                     1.15.0
tensorboard             2.6.0
tensorboard-data-server 0.6.1
tensorboard-plugin-wit  1.8.1
tensorflow              2.6.2
tensorflow-estimator    2.6.0
termcolor               1.1.0
typing-extensions       3.7.4.3
urllib3                 1.26.14
Werkzeug                2.0.3
wheel                   0.37.1
wrapt                   1.12.1
zipp                    3.6.0

你可能感兴趣的:(python,python,tensorflow,windows)