简体   繁体   中英

Python genfromtxt cannot import file from local machine to google colab

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.

You might need to change your path settings. Try:

import sys
sys.path.append(the_desired_file_location)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM