2021年3月17日星期三

Receiving error when trying to import tensorflow library in python (Jupyter on Anaconda3)

When entering the python command import tensorflow, I receive the following error:

ImportError: Traceback (most recent call last):    File "C:\Users\varun\anaconda3\lib\site-packages\tensorflow\python\pywrap_tensorflow.py", line 64, in <module>      from tensorflow.python._pywrap_tensorflow_internal import *  ImportError: DLL load failed while importing _pywrap_tensorflow_internal: The specified module could not be found.  Failed to load the native TensorFlow runtime.  See https://www.tensorflow.org/install/errors  for some common reasons and solutions.  Include the entire stack trace  above this error message when asking for help.  

I have already tried the following steps:

  1. Installing the recommended (from similar stackoverflow posts) .dll libraries both in System32 and SysWow64 locations

  2. Uninstalling and reinstalling Anaconda

  3. Upgrading pip itself and also upgrading tensorflow and keras packages

  4. Update Anaconda environment variables

I really need this package to work for School assignments/projects and would appreciate all suggestions! Please find a screenshot of the error below as well. Tensorflow ImportError

https://stackoverflow.com/questions/66683666/receiving-error-when-trying-to-import-tensorflow-library-in-python-jupyter-on-a March 18, 2021 at 09:48AM

没有评论:

发表评论