New Ribbon
Canva+AI創意設計與品牌應用250招:從商業技巧、社群祕技到AI圖文影音特效 快快樂樂學威力導演2024.影音剪輯與AI精彩創作 文淵閣工作室祝福大家新年快樂.龍年吉祥 Power Automate自動化超效率工作術 Midjourney AI圖像魔導書:搭配ChatGPT魔法加倍 超人氣FB+IG+LINE社群經營與行銷力(第二版) 翻倍效率工作術:不會就太可惜的 Excel × ChatGPT 自動化應用 AppInventor2零基礎入門班中文版(第六版) Python零基礎入門班(第四版) C語言學習聖經 用Canva設計超快超質感:平面、網頁、電子書、簡報、影片製作與AI繪圖最速技 PHP8/MySQL網頁程式設計自學聖經 翻倍效率工作術 - 不會就太可惜的Power BI大數據視覺圖表設計與分析(第三版) 社群經營一定要會的影音剪輯與動畫製作術 Notion高效管理250招:筆記×資料庫×團隊協作,數位生活與工作最佳幫手 Office 2021高效實用範例必修16課(附500分鐘影音教學/範例檔) Excel自學聖經(第二版):從完整入門到職場活用的技巧與實例大全 網路開店×拍賣王:蝦皮來了(第二版) 專家都在用的Google最強實戰:表單、文件、試算、簡報、遠距與線上會議 超人氣 Instagram 視覺行銷力(第二版):小編不敗,經營 IG 品牌人氣王的 120 個秘技!

 

  Python機器學習與深度學習特訓班

冠賢

冠賢
更新時間:2020/6/1 下午 03:02:16

 

Anaconda 再重新安裝(不用虛擬環境),安裝時記得如 p1-10 核選 Add Anaconda to the system PATH enviroment variable 加入環境變數。(Python 的版本是 3.7.7)

然後以 pip install tensorflow 安裝 tensorflow,目前最新的版本是 2.1.0
再以   pip install keras  安裝 keras,目前最新的版本是 2.3.1


Spyder測試 TensorFlow和Keras 1.71

程式碼
import tensorflow as tf
print(tf.__version__)
import keras
print(keras.__version__)

出現以下一樣錯誤:

Python 3.6.10 |Anaconda, Inc.| (default, May  7 2020, 19:46:08) [MSC v.1916 64 bit (AMD64)]
Type "copyright", "credits" or "license" for more information.

IPython 7.13.0 -- An enhanced Interactive Python.

runfile('C:/Users/USER/.spyder-py3/temp.py', wdir='C:/Users/USER/.spyder-py3')
Traceback (most recent call last):

  File "C:\Users\USER\.conda\envs\tensorflowenv\lib\site-packages\tensorflow\python\pywrap_tensorflow.py", line 58, in <module>
    from tensorflow.python.pywrap_tensorflow_internal import *

  File "C:\Users\USER\.conda\envs\tensorflowenv\lib\site-packages\tensorflow\python\pywrap_tensorflow_internal.py", line 28, in <module>
    _pywrap_tensorflow_internal = swig_import_helper()

  File "C:\Users\USER\.conda\envs\tensorflowenv\lib\site-packages\tensorflow\python\pywrap_tensorflow_internal.py", line 24, in swig_import_helper
    _mod = imp.load_module('_pywrap_tensorflow_internal', fp, pathname, description)

  File "C:\Users\USER\.conda\envs\tensorflowenv\lib\imp.py", line 243, in load_module
    return load_dynamic(name, filename, file)

  File "C:\Users\USER\.conda\envs\tensorflowenv\lib\imp.py", line 343, in load_dynamic
    return _load(spec)

ImportError: DLL load failed: 動態連結程式庫 (DLL) 初始化例行程序失敗。


During handling of the above exception, another exception occurred:

Traceback (most recent call last):

  File "C:\Users\USER\.spyder-py3\temp.py", line 1, in <module>
    import tensorflow as tf

  File "C:\Users\USER\.conda\envs\tensorflowenv\lib\site-packages\tensorflow\__init__.py", line 41, in <module>
    from tensorflow.python.tools import module_util as _module_util

  File "C:\Users\USER\.conda\envs\tensorflowenv\lib\site-packages\tensorflow\python\__init__.py", line 50, in <module>
    from tensorflow.python import pywrap_tensorflow

  File "C:\Users\USER\.conda\envs\tensorflowenv\lib\site-packages\tensorflow\python\pywrap_tensorflow.py", line 69, in <module>
    raise ImportError(msg)

ImportError: Traceback (most recent call last):
  File "C:\Users\USER\.conda\envs\tensorflowenv\lib\site-packages\tensorflow\python\pywrap_tensorflow.py", line 58, in <module>
    from tensorflow.python.pywrap_tensorflow_internal import *
  File "C:\Users\USER\.conda\envs\tensorflowenv\lib\site-packages\tensorflow\python\pywrap_tensorflow_internal.py", line 28, in <module>
    _pywrap_tensorflow_internal = swig_import_helper()
  File "C:\Users\USER\.conda\envs\tensorflowenv\lib\site-packages\tensorflow\python\pywrap_tensorflow_internal.py", line 24, in swig_import_helper
    _mod = imp.load_module('_pywrap_tensorflow_internal', fp, pathname, description)
  File "C:\Users\USER\.conda\envs\tensorflowenv\lib\imp.py", line 243, in load_module
    return load_dynamic(name, filename, file)
  File "C:\Users\USER\.conda\envs\tensorflowenv\lib\imp.py", line 343, in load_dynamic
    return _load(spec)
ImportError: DLL load failed: 動態連結程式庫 (DLL) 初始化例行程序失敗。


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.




 

 

Re:Python機器學習與深度學習特訓班

請輸入姓名。

已超出字元數目的最大值。


請輸入電子郵件。

格式無效。


請輸入內容。