欢迎使用CSDN-markdown编辑器

来源:互联网 发布:如何用淘宝联盟买东西 编辑:程序博客网 时间:2024/06/06 06:39

Keras结构图画法报错问题

Anaconda
安装pydon_ng后
出现找不到路径问题
找到init 然后 可以修改如下

 Method 3 (Windows only)                # Method 3 (Windows only)        #        if os.sys.platform == 'win32':            # Try and work out the equivalent of "C:\Program Files" on this            # machine (might be on drive D:, or in a different language)            #            if False:  # os.environ.has_key('PROGRAMFILES'):                # Note, we could also use the win32api to get this                # information, but win32api may not be installed.                path = os.path.join(os.environ['PROGRAMFILES'], 'ATT', 'GraphViz', 'bin')            else:                # Just in case, try the default...                path = r"C:\Program Files (x86)\GraphViz\bin"            progs = __find_executables(path)            if progs is not None:                # print "Used default install location"                return progs        for path in (                '/usr/bin', '/usr/local/bin',                '/opt/bin', '/sw/bin', '/usr/share',                '/Applications/Graphviz.app/Contents/MacOS/'):            progs = __find_executables(path)            if progs is not None:                # print "Used path"                return progs                # Failed to find GraphViz        #    return None        # Failed to find GraphViz
原创粉丝点击