Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test.py error #71

Open
Hung-Hsiang-617 opened this issue Apr 3, 2020 · 6 comments
Open

test.py error #71

Hung-Hsiang-617 opened this issue Apr 3, 2020 · 6 comments

Comments

@Hung-Hsiang-617
Copy link

When I run test.py. The error occur below.

File "test.py", line 4, in
from keras import backend as K
File "Keras-2.0.8/keras/init.py", line 4, in
from . import activations
File "Keras-2.0.8/keras/activations.py", line 6, in
from .engine import Layer
File "Keras-2.0.8/keras/engine/init.py", line 3, in
from .topology import InputSpec
File "Keras-2.0.8/keras/engine/topology.py", line 8, in
import yaml
File "Keras-2.0.8/yaml/init.py", line 2, in
from error import *
ModuleNotFoundError: No module named 'error'

My version: python 3.6.8
tensorflow 1.5.1
tensorflow-gpu 1.2.1
keras 2.0.8

I can not find the solution to solve it.

@zhangwang997
Copy link

try python2

@Hung-Hsiang-617
Copy link
Author

Thank you. I already solved the problems.

@LidaGuo1999
Copy link

@Hung-Hsiang-617 How did you solve it? I have encountered the same problem.

@Hung-Hsiang-617
Copy link
Author

just use python 2 and keras 2.0.8 . I thinks this code can not run in python 3.

@wanghuogen
Copy link

This code can not run in Python 3.

@Roxying
Copy link

Roxying commented Oct 26, 2024

I would like to ask, can I only use Python 2 or is Python 2.7 also acceptable?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants