问题一:
Could not find the DLL(s) ‘msvcp140_1.dll’.TensorFlow requires that these DLLs be installed in a directory that is named in your %PATH% environment variable. You may install these DLLs by downloading “Microsoft C++ Redistributable for Visual Studio 2015,2017 and 2019” for your platform from this URL:https://support.microsoft.com/help/2977003/the-latest-supported-visual-c-downloads
解决办法:
打开 网址我下载的是x64:vc_redist.x64.exe
运行安装完成之后重启电脑即可解决。
问题二:
ModuleNotFoundError: No module named ‘tensorflow.python’
解决办法:
由于我之前使用如下代码进行TensorFlow的安装
pip install --user tensorflow

在Win7系统上安装TensorFlow2.1.0时遇到msvcp140_1.dll缺失、找不到模块'tensorflow.python'以及TypeError问题。解决方案包括:安装Microsoft C++ Redistributable for Visual Studio 2015,2017 and 2019的x64版本,确保DLL在%PATH%环境变量中;修正pip安装路径问题,通过pip3卸载并重新安装TensorFlow;在Spyder中取消Enable UMR设置,重启Spyder。"
131497338,18870241,Python快速生成二维码技巧与美化指南,"['python', '信息可视化', '计算机']
最低0.47元/天 解锁文章
289

被折叠的 条评论
为什么被折叠?



