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

cannot find the path error. #3

Open
aravindsasidharan opened this issue Feb 5, 2017 · 2 comments
Open

cannot find the path error. #3

aravindsasidharan opened this issue Feb 5, 2017 · 2 comments

Comments

@aravindsasidharan
Copy link

aravindsasidharan commented Feb 5, 2017

Sir, @llSourcell I am getting following error please help to sort out:
Traceback (most recent call last):
File "board.py", line 4, in
mnist = input_data.read_data_sets("/tmp/data/", one_hot=True)
File "C:\learn\tensorflow_demo\input_data.py", line 149, in read_data_sets
local_file = maybe_download(TRAIN_IMAGES, train_dir)
File "C:\learn\tensorflow_demo\input_data.py", line 14, in maybe_download
os.mkdir(work_directory)
WindowsError: [Error 3] The system cannot find the path specified: '/tmp/data/'

@TheMLGuy
Copy link

Change the path in the code to point to the location of 'data.csv'( data file). You can either use an absolute path or a relative path.

@turkialjrees
Copy link

use a raw string such as :

r"C:\Users\Mainuser\Desktop\Lab6"

or using

os.path.join to construct your path instead:

os.path.join("c:", os.sep, "Users", "Mainuser", "Desktop", "Lab6")

os.path.join is the safest and most portable choice. As long as you have "c:" hardcoded in the path it's not really portable, but it's still the best practice and a good habit to develop.

With a tip of the hat to Python os.path.join on Windows for the correct way to produce c:\Users rather than c:Users.

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