Install TensorFlow 2 for Windows 10
Windows python是3.9版本的,先安装试试,看看会有什么问题?
1.升级pip,2个警告,先不管
Downloading pip-21.0.1-py3-none-any.whl (1.5 MB)
|████████████████████████████████| 1.5 MB 91 kB/s
Installing collected packages: pip
WARNING: The scripts pip.exe, pip3.8.exe and pip3.exe are installed in 'C:UsersdevAppDataLocalPackagesPythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0LocalCachelocal-packagesPython38Scripts' 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 pip-21.0.1
WARNING: You are using pip version 20.2.3; however, version 21.0.1 is available.
You should consider upgrading via the 'C:UsersdevAppDataLocalMicrosoftWindowsAppsPythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0python.exe -m pip install --upgrade pip' command.
2.安装下面3个
<code>pip3 install six numpy wheel</code> <code>pip3 install keras_applications==1.0.6 --no-deps</code> <code>pip3 install keras_preprocessing==1.0.5 --no-deps</code>
看 提示,貌似只可以安装到python3.8上面,python3.9 不支持哦。还是有警告
Downloading numpy-1.20.1-cp38-cp38-win_amd64.whl (13.7 MB)
WARNING: The script wheel.exe is installed in 'C:UsersdevAppDataLocalPackagesPythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0LocalCachelocal-packagesPython38Scripts' 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 f2py.exe is installed in 'C:UsersdevAppDataLocalPackagesPythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0LocalCachelocal-packagesPython38Scripts' 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 numpy-1.20.1 six-1.15.0 wheel-0.36.2
Collecting keras_applications==1.0.6
Downloading Keras_Applications-1.0.6-py2.py3-none-any.whl (44 kB)
|████████████████████████████████| 44 kB 411 kB/s
Installing collected packages: keras-applications
Successfully installed keras-applications-1.0.6
C:Usersdev>pip3 install keras_preprocessing==1.0.5 --no-deps
Collecting keras_preprocessing==1.0.5
Downloading Keras_Preprocessing-1.0.5-py2.py3-none-any.whl (30 kB)
Installing collected packages: keras-preprocessing
Successfully installed keras-preprocessing-1.0.5
需要安装 msys2


第一步:安装MSYS2 shell,下载后,直接双击,点击安装,可自定义安装路径。
第二步:配置环境变量,在电脑-高级-环境变量中的path中添加“你的根目录msys64usrin”和“你的根目录msys64usrinash.exe”
第三步:打开cmd,输入pacman -Syu,回车会出现下图,然后输入y 安装失败
mingw32 891.1 KiB 14.4 KiB/s 01:02 [#####################] 100%
mingw32.sig 438.0 B 0.00 B/s 00:00 [#####################] 100%
error: mingw32: signature from "David Macek <david.macek.0@gmail.com>" is unknown trust
error: failed to update mingw32 (invalid or corrupted database (PGP signature))
mingw64 894.5 KiB 23.2 KiB/s 00:39 [#####################] 100%
mingw64.sig 438.0 B 0.00 B/s 00:00 [#####################] 100%
error: mingw64: signature from "David Macek <david.macek.0@gmail.com>" is unknown trust
error: failed to update mingw64 (invalid or corrupted database (PGP signature))
msys 300.4 KiB 33.2 KiB/s 00:09 [#####################] 100%
msys.sig 438.0 B 0.00 B/s 00:00 [#####################] 100%
error: msys: signature from "David Macek <david.macek.0@gmail.com>" is unknown trust
【说明】:本文章由站长整理发布,文章内容不代表本站观点,如文中有侵权行为,请与本站客服联系(QQ:254677821)!