重要错误:没有命名的模块numpy.distutils.core(安装路缘石时)

2024-06-06 00:16:01 发布

您现在位置:Python中文网/ 问答频道 /正文

我想安装keras模块(github-link)。我尝试了pip install keras,它安装了1.2.1。它没有按this的图形模块。遗憾的是,文件也没有更新。所以我尝试了以前的版本1.1.2,根据Chang Liu给出的here运行{}的答案,但现在我得到了以下错误

 ImportError: No module named numpy.distutils.core'

我已经安装了水蟒,在它的安装过程中,它正确地安装了numpy作为好吧。又一个我尝试的是import keras.layer.container,因为根据documentation中存在class Graph()集装箱。请告诉我该怎么办?在


Tags: 模块installpip文件答案版本numpygithub
1条回答
网友
1楼 · 发布于 2024-06-06 00:16:01

正如本期文章的作者提到的here

图形已被删除。使用functional API (see docs).

The Keras functional API is the way to go for defining complex models, such as multi-output models, directed acyclic graphs, or models with shared layers.

更多说明:

  1. 此错误可能是由于依赖项安装引起的,请确保numpy和{}在此过程中没有问题。

  2. 如果这仍然是一个问题的话,也许应该重新安装conda。

对于图表,第一个答案仍然有效,它已经被删除了。在

相关问题 更多 >