命令
pip --default-timeout=100 install --upgrade --force-reinstall -i https://pypi.tuna.tsinghua.edu.cn/simple tensorflow
结果
Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple
Collecting tensorflow
Downloading https://pypi.tuna.tsinghua.edu.cn/packages/d3/af/296748d4c8d8987423231b93aecce5ab5952f6f2243cb6cedb88dd425397/tensorflow-2.0.0-cp36-cp36m-win_amd64.whl (48.1MB)
100% |████████████████████████████████| 48.1MB 478kB/s
Collecting tensorboard<2.1.0,>=2.0.0 (from tensorflow)
Downloading https://pypi.tuna.tsinghua.edu.cn/packages/76/54/99b9d5d52d5cb732f099baaaf7740403e83fe6b0cedde940fabd2b13d75a/tensorboard-2.0.2-py3-none-any.whl (3.8MB)
100% |████████████████████████████████| 3.8MB 4.7MB/s
Collecting wrapt>=1.11.1 (from tensorflow)
Downloading https://pypi.tuna.tsinghua.edu.cn/packages/67/b2/0f71ca90b0ade7fad27e3d20327c996c6252a2ffe88f50a95bba7434eda9/wrapt-1.11.1.tar.gz
Collecting google-pasta>=0.1.6 (from tensorflow)
Downloading https://pypi.tuna.tsinghua.edu.cn/packages/c3/fd/1e86bc4837cc9a3a5faf3db9b1854aa04ad35b5f381f9648fbe81a6f94e4/google_pasta-0.1.8-py3-none-any.whl (57kB)
100% |████████████████████████████████| 61kB 4.4MB/s
Collecting numpy<2.0,>=1.16.0 (from tensorflow)
Downloading https://pypi.tuna.tsinghua.edu.cn/packages/b0/ee/5ff445dd43b9820e5494d21240e689d3b7cb52bc93f4f164eba84206cd0d/numpy-1.17.4-cp36-cp36m-win_amd64.whl (12.7MB)
100% |████████████████████████████████| 12.7MB 2.3MB/s
Collecting six>=1.10.0 (from tensorflow)
Downloading https://pypi.tuna.tsinghua.edu.cn/packages/65/26/32b8464df2a97e6dd1b656ed26b2c194606c16fe163c695a992b36c11cdf/six-1.13.0-py2.py3-none-any.whl
Collecting grpcio>=1.8.6 (from tensorflow)
Downloading https://pypi.tuna.tsinghua.edu.cn/packages/03/7d/5a51d7116a0f5a3a916148ed495698bfb6800868f0f60b0af55cb8353e84/grpcio-1.25.0-cp36-cp36m-win_amd64.whl (1.9MB)
100% |████████████████████████████████| 1.9MB 4.7MB/s
Collecting protobuf>=3.6.1 (from tensorflow)
Downloading https://pypi.tuna.tsinghua.edu.cn/packages/78/c5/5f64362524497c0ab5f532f58d605c9a6f75a7313974893f6c3168903dfe/protobuf-3.11.1-cp36-cp36m-win_amd64.whl (1.1MB)
100% |████████████████████████████████| 1.1MB 6.0MB/s
Collecting termcolor>=1.1.0 (from tensorflow)
Downloading https://pypi.tuna.tsinghua.edu.cn/packages/8a/48/a76be51647d0eb9f10e2a4511bf3ffb8cc1e6b14e9e4fab46173aa79f981/termcolor-1.1.0.tar.gz
Collecting astor>=0.6.0 (from tensorflow)
Downloading https://pypi.tuna.tsinghua.edu.cn/packages/d1/4f/950dfae467b384fc96bc6469de25d832534f6b4441033c39f914efd13418/astor-0.8.0-py2.py3-none-any.whl
Collecting gast==0.2.2 (from tensorflow)
Downloading https://pypi.tuna.tsinghua.edu.cn/packages/4e/35/11749bf99b2d4e3cceb4d55ca22590b0d7c2c62b9de38ac4a4a7f4687421/gast-0.2.2.tar.gz
Collecting keras-preprocessing>=1.0.5 (from tensorflow)
Downloading https://pypi.tuna.tsinghua.edu.cn/packages/28/6a/8c1f62c37212d9fc441a7e26736df51ce6f0e38455816445471f10da4f0a/Keras_Preprocessing-1.1.0-py2.py3-none-any.whl (41kB)
100% |████████████████████████████████| 51kB 501kB/s
Collecting wheel>=0.26 (from tensorflow)
Downloading https://pypi.tuna.tsinghua.edu.cn/packages/00/83/b4a77d044e78ad1a45610eb88f745be2fd2c6d658f9798a15e384b7d57c9/wheel-0.33.6-py2.py3-none-any.whl
Collecting absl-py>=0.7.0 (from tensorflow)
Downloading https://pypi.tuna.tsinghua.edu.cn/packages/3b/72/e6e483e2db953c11efa44ee21c5fdb6505c4dffa447b4263ca8af6676b62/absl-py-0.8.1.tar.gz (103kB)
100% |████████████████████████████████| 112kB 349kB/s
Collecting opt-einsum>=2.3.2 (from tensorflow)
Downloading https://pypi.tuna.tsinghua.edu.cn/packages/b8/83/755bd5324777875e9dff19c2e59daec837d0378c09196634524a3d7269ac/opt_einsum-3.1.0.tar.gz (69kB)
100% |████████████████████████████████| 71kB 943kB/s
Collecting tensorflow-estimator<2.1.0,>=2.0.0 (from tensorflow)
Downloading https://pypi.tuna.tsinghua.edu.cn/packages/fc/08/8b927337b7019c374719145d1dceba21a8bb909b93b1ad6f8fb7d22c1ca1/tensorflow_estimator-2.0.1-py2.py3-none-any.whl (449kB)
100% |████████████████████████████████| 450kB 2.2MB/s
Collecting keras-applications>=1.0.8 (from tensorflow)
Downloading https://pypi.tuna.tsinghua.edu.cn/packages/71/e3/19762fdfc62877ae9102edf6342d71b28fbfd9dea3d2f96a882ce099b03f/Keras_Applications-1.0.8-py3-none-any.whl (50kB)
100% |████████████████████████████████| 51kB 2.4MB/s
Collecting requests<3,>=2.21.0 (from tensorboard<2.1.0,>=2.0.0->tensorflow)
Downloading https://pypi.tuna.tsinghua.edu.cn/packages/51/bd/23c926cd341ea6b7dd0b2a00aba99ae0f828be89d72b2190f27c11d4b7fb/requests-2.22.0-py2.py3-none-any.whl (57kB)
100% |████████████████████████████████| 61kB 2.5MB/s
Collecting werkzeug>=0.11.15 (from tensorboard<2.1.0,>=2.0.0->tensorflow)
Downloading https://pypi.tuna.tsinghua.edu.cn/packages/ce/42/3aeda98f96e85fd26180534d36570e4d18108d62ae36f87694b476b83d6f/Werkzeug-0.16.0-py2.py3-none-any.whl (327kB)
100% |████████████████████████████████| 327kB 3.2MB/s
Collecting markdown>=2.6.8 (from tensorboard<2.1.0,>=2.0.0->tensorflow)
Downloading https://pypi.tuna.tsinghua.edu.cn/packages/c0/4e/fd492e91abdc2d2fcb70ef453064d980688762079397f779758e055f6575/Markdown-3.1.1-py2.py3-none-any.whl (87kB)
100% |████████████████████████████████| 92kB 3.8MB/s
Collecting google-auth-oauthlib<0.5,>=0.4.1 (from tensorboard<2.1.0,>=2.0.0->tensorflow)
Downloading https://pypi.tuna.tsinghua.edu.cn/packages/7b/b8/88def36e74bee9fce511c9519571f4e485e890093ab7442284f4ffaef60b/google_auth_oauthlib-0.4.1-py2.py3-none-any.whl
Collecting google-auth<2,>=1.6.3 (from tensorboard<2.1.0,>=2.0.0->tensorflow)
Downloading https://pypi.tuna.tsinghua.edu.cn/packages/ec/11/1d90cbfa72a084b08498e8cea1fee199bc965cdac391d241f5ae6257073e/google_auth-1.7.2-py2.py3-none-any.whl (74kB)
100% |████████████████████████████████| 81kB 2.9MB/s
Collecting setuptools>=41.0.0 (from tensorboard<2.1.0,>=2.0.0->tensorflow)
Downloading https://pypi.tuna.tsinghua.edu.cn/packages/54/28/c45d8b54c1339f9644b87663945e54a8503cfef59cf0f65b3ff5dd17cf64/setuptools-42.0.2-py2.py3-none-any.whl (583kB)
100% |████████████████████████████████| 583kB 3.2MB/s
Collecting h5py (from keras-applications>=1.0.8->tensorflow)
Downloading https://pypi.tuna.tsinghua.edu.cn/packages/0b/fa/bee65d2dbdbd3611702aafd128139c53c90a1285f169ba5467aab252e27a/h5py-2.10.0-cp36-cp36m-win_amd64.whl (2.4MB)
100% |████████████████████████████████| 2.4MB 4.7MB/s
Collecting idna<2.9,>=2.5 (from requests<3,>=2.21.0->tensorboard<2.1.0,>=2.0.0->tensorflow)
Downloading https://pypi.tuna.tsinghua.edu.cn/packages/14/2c/cd551d81dbe15200be1cf41cd03869a46fe7226e7450af7a6545bfc474c9/idna-2.8-py2.py3-none-any.whl (58kB)
100% |████████████████████████████████| 61kB 3.2MB/s
Collecting chardet<3.1.0,>=3.0.2 (from requests<3,>=2.21.0->tensorboard<2.1.0,>=2.0.0->tensorflow)
Downloading https://pypi.tuna.tsinghua.edu.cn/packages/bc/a9/01ffebfb562e4274b6487b4bb1ddec7ca55ec7510b22e4c51f14098443b8/chardet-3.0.4-py2.py3-none-any.whl (133kB)
100% |████████████████████████████████| 143kB 4.7MB/s
Collecting urllib3!=1.25.0,!=1.25.1,<1.26,>=1.21.1 (from requests<3,>=2.21.0->tensorboard<2.1.0,>=2.0.0->tensorflow)
Downloading https://pypi.tuna.tsinghua.edu.cn/packages/b4/40/a9837291310ee1ccc242ceb6ebfd9eb21539649f193a7c8c86ba15b98539/urllib3-1.25.7-py2.py3-none-any.whl (125kB)
100% |████████████████████████████████| 133kB 775kB/s
Collecting certifi>=2017.4.17 (from requests<3,>=2.21.0->tensorboard<2.1.0,>=2.0.0->tensorflow)
Downloading https://pypi.tuna.tsinghua.edu.cn/packages/b9/63/df50cac98ea0d5b006c55a399c3bf1db9da7b5a24de7890bc9cfd5dd9e99/certifi-2019.11.28-py2.py3-none-any.whl (156kB)
100% |████████████████████████████████| 163kB 5.1MB/s
Collecting requests-oauthlib>=0.7.0 (from google-auth-oauthlib<0.5,>=0.4.1->tensorboard<2.1.0,>=2.0.0->tensorflow)
Downloading https://pypi.tuna.tsinghua.edu.cn/packages/a3/12/b92740d845ab62ea4edf04d2f4164d82532b5a0b03836d4d4e71c6f3d379/requests_oauthlib-1.3.0-py2.py3-none-any.whl
Collecting pyasn1-modules>=0.2.1 (from google-auth<2,>=1.6.3->tensorboard<2.1.0,>=2.0.0->tensorflow)
Downloading https://pypi.tuna.tsinghua.edu.cn/packages/52/50/bb4cefca37da63a0c52218ba2cb1b1c36110d84dcbae8aa48cd67c5e95c2/pyasn1_modules-0.2.7-py2.py3-none-any.whl (131kB)
100% |████████████████████████████████| 133kB 4.7MB/s
Collecting cachetools<3.2,>=2.0.0 (from google-auth<2,>=1.6.3->tensorboard<2.1.0,>=2.0.0->tensorflow)
Downloading https://pypi.tuna.tsinghua.edu.cn/packages/2f/a6/30b0a0bef12283e83e58c1d6e7b5aabc7acfc4110df81a4471655d33e704/cachetools-3.1.1-py2.py3-none-any.whl
Collecting rsa<4.1,>=3.1.4 (from google-auth<2,>=1.6.3->tensorboard<2.1.0,>=2.0.0->tensorflow)
Downloading https://pypi.tuna.tsinghua.edu.cn/packages/02/e5/38518af393f7c214357079ce67a317307936896e961e35450b70fad2a9cf/rsa-4.0-py2.py3-none-any.whl
Collecting oauthlib>=3.0.0 (from requests-oauthlib>=0.7.0->google-auth-oauthlib<0.5,>=0.4.1->tensorboard<2.1.0,>=2.0.0->tensorflow)
Downloading https://pypi.tuna.tsinghua.edu.cn/packages/05/57/ce2e7a8fa7c0afb54a0581b14a65b56e62b5759dbc98e80627142b8a3704/oauthlib-3.1.0-py2.py3-none-any.whl (147kB)
100% |████████████████████████████████| 153kB 6.0MB/s
Collecting pyasn1<0.5.0,>=0.4.6 (from pyasn1-modules>=0.2.1->google-auth<2,>=1.6.3->tensorboard<2.1.0,>=2.0.0->tensorflow)
Downloading https://pypi.tuna.tsinghua.edu.cn/packages/62/1e/a94a8d635fa3ce4cfc7f506003548d0a2447ae76fd5ca53932970fe3053f/pyasn1-0.4.8-py2.py3-none-any.whl (77kB)
100% |████████████████████████████████| 81kB 4.1MB/s
Building wheels for collected packages: wrapt, termcolor, gast, absl-py, opt-einsum
Running setup.py bdist_wheel for wrapt ... done
Stored in directory: C:\Users\WU MENGHAO\AppData\Local\pip\Cache\wheels\70\01\17\b0f73445d6ad8f160740d999153446b64dc64c17e47dad2577
Running setup.py bdist_wheel for termcolor ... done
Stored in directory: C:\Users\WU MENGHAO\AppData\Local\pip\Cache\wheels\2f\92\65\6ea67d77a7758e30316513984c98397217b478edb328d1c1e2
Running setup.py bdist_wheel for gast ... done
Stored in directory: C:\Users\WU MENGHAO\AppData\Local\pip\Cache\wheels\46\85\ca\e81b54f271ca53efa4212d02e67e6ac7cbf413cd8c0342f976
Running setup.py bdist_wheel for absl-py ... done
Stored in directory: C:\Users\WU MENGHAO\AppData\Local\pip\Cache\wheels\90\f8\ee\9ed4f33803e4505950a3f91a1e64d6a6da6d6c8939ba2cf48f
Running setup.py bdist_wheel for opt-einsum ... done
Stored in directory: C:\Users\WU MENGHAO\AppData\Local\pip\Cache\wheels\a4\ef\9d\e970bd80c07bc1e004c670522c41682d1b8c77706755a8f7ff
Successfully built wrapt termcolor gast absl-py opt-einsum
tensorflow-gpu 1.12.3 has requirement tensorboard<1.13.0,>=1.12.0, but you'll have tensorboard 2.0.2 which is incompatible.
Installing collected packages: six, grpcio, absl-py, setuptools, protobuf, idna, chardet, urllib3, certifi, requests, numpy, werkzeug, wheel, markdown, oauthlib, requests-oauthlib, pyasn1, pyasn1-modules, cachetools, rsa, google-auth, google-auth-oauthlib, tensorb
oard, wrapt, google-pasta, termcolor, astor, gast, keras-preprocessing, opt-einsum, tensorflow-estimator, h5py, keras-applications, tensorflow
Found existing installation: six 1.13.0
Uninstalling six-1.13.0:
Successfully uninstalled six-1.13.0
Found existing installation: grpcio 1.25.0
Uninstalling grpcio-1.25.0:
Successfully uninstalled grpcio-1.25.0
Found existing installation: absl-py 0.8.1
Uninstalling absl-py-0.8.1:
Successfully uninstalled absl-py-0.8.1
Found existing installation: setuptools 39.1.0
Uninstalling setuptools-39.1.0:
Could not install packages due to an EnvironmentError: [WinError 32] 另一个程序正在使用此文件,进程无法访问。: 'd:\\workspace_py\\deeplearningdemo\\venv\\lib\\site-packages\\setuptools-39.1.0-py3.6.egg'
Consider using the `--user` option or check the permissions.
You are using pip version 10.0.1, however version 19.3.1 is available.
You should consider upgrading via the 'python -m pip install --upgrade pip' command.
来源:CSDN
作者:Wu_Menghao
链接:https://blog.csdn.net/weweeeeeeee/article/details/103473726