小编Mar*_*sen的帖子

无法 pip install Tensorflow 'msvcp140_1.dll' 丢失

我目前正在尝试pip install tensorflow,它可以工作,但是在我安装它之后,然后通过import tensorflow as tf我收到以下错误消息将其导入我的 python 模块:

ImportError: 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
Run Code Online (Sandbox Code Playgroud)

我安装了msvcp140_1.dll并将它放入C:\Users\User\AppData\Local\Programs\Python\Python37包含在我的路径环境变量中。

如您所见,我使用的是 Python 3.7,因为 tensorflow 不支持 3.8。任何想法如何解决这一问题?

python tensorflow

9
推荐指数
2
解决办法
3万
查看次数

标签 统计

python ×1

tensorflow ×1