windows10安装python3.8.5+tensorflow

windows10升级安装python3.8.5

进入网站:https://www.python.org/downloads/source/

下载链接:(python.org网站上的下载链接,用迅雷下载速度会快很多)

windows:(https://docs.python.org/3/using/windows.html#installation-steps)

1.https://www.python.org/ftp/python/3.8.5/python-3.8.5-amd64.exe(64位)  #20200724

2.https://www.python.org/ftp/python/3.8.5/python-3.8.5.exe(32位)

web-based: 执行安装后会透过网络下载python,如没有就会导致失败

executable: 可执行文件

embeddable zipfile: 打包成zip压缩包

 

升级安装出错:

windows10安装python3.8.5+tensorflow_第1张图片

Python 3.8.5 (64-bit) Setup

Setup failed
One or more issues caused the setup to fail. Please fix the issues and
then retry setup. For more information see the log file.
0x80072f7d -未指定的错误
 

解决办法:https://www.cnblogs.com/gambler/p/9575556.html

 

jupyter-notebook 修改默认的python版本https://blog.csdn.net/zhanqixuan22/article/details/88974624

 

安装tensorflow

pip --default-timeout=100 install tensorflow -i http://pypi.douban.com/simple/ --trusted-host pypi.douban.com

安装之后,import tensowflow时,出现提示:

1.I mportError:Could not find the DLLKs) ' msucp140_1.d11'.TensorFlow requires that these DLLs he installed in a directory that is named in your %PATH% environmen uariable. You may install these 
DLLs by down loading "Microsoft C++ Redistribut able for Uisual Studio 2015,2017and 2019" for your platform from this URL: https://support - microsoft.com/help/2977003/the-latest -supported-visual-c-downloads
 

根据提示,下载所缺文件(为exe格式,安装一下)。ok.

https://support.microsoft.com/zh-cn/help/2977003/the-latest-supported-visual-c-downloads

2.2020-07- 26 17:09 :25.674847: W tensorf low/'s tream_exe cutor/ platf orm/de fault:/dso_1o
ader.cc:55] Could not load dynanic library,cudart64_101.d11 5 dlerrore cudart64_101.d11 not found
2020-07-26 17:09 :25.709849: I tensorf low/s tream_executor/cuda/cudart_stub. cc:29 ]
Ignore above cudart dlerror if you do not have a GPU set up on your mac hine .

解决办法:下载cudart64_101.dll     

https://cn.dll-files.com/cudart64_101.dll.html

放到C:\Windows\SysWOW64下面。ok.

 

参考https://blog.csdn.net/qq_41999081/article/details/104515513
https://blog.csdn.net/sereasuesue/article/details/105329942

 

你可能感兴趣的:(日益精进,python)