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

module 'tensorlayer' has no attribute 'files' #62

Closed
gdyxml2000 opened this issue Jan 11, 2017 · 3 comments
Closed

module 'tensorlayer' has no attribute 'files' #62

gdyxml2000 opened this issue Jan 11, 2017 · 3 comments

Comments

@gdyxml2000
Copy link

when i run "tutorial_mnist_simple.py" in eclipse ,i have get a error message:

X_train, y_train, X_val, y_val, X_test, y_test =tl.files.load_mnist_dataset(shape=(-1,784))
AttributeError: module 'tensorlayer' has no attribute 'files'

when i run "tutorial_mnist_simple.py" in Pycharm, it will be ok.
but, my eclipse run tensorflow simples ,has no errors!

@JoelKronander
Copy link
Contributor

Are sure you have correctly installed tensorlayer and that your PYTHONPATH enviroment variable is set correctly?

comapre the PYTHONPATH in eclipse and Pycharm for example.

@gdyxml2000
Copy link
Author

Set the environment variable PYTHONPATH in eclipse RunConfiguration, this problem is solved. thanks!

@zsdonghao
Copy link
Member

Great!

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

3 participants