I am just trying to import a .txt file from my D: drive of my windows machine to google colab using genfromtxt() of numpy from python. But I cannot find a way to import. All I get is error "File not found" as the current working directory is point to google drive. Please provide a solution.
Asked
Active
Viewed 78 times
-1
-
Please provide enough code so others can better understand or reproduce the problem. – Community Jul 22 '22 at 15:23
1 Answers
0
You might need to change your path settings. Try:
import sys
sys.path.append(the_desired_file_location)

Kerry Hall
- 15
- 4
-
no good, still this os.getcwd() gives the output as '/content', i.e to the google drive – Vikram Jul 22 '22 at 15:50