Hi i am trying to download mnist data using these commands
!wget www.di.ens.fr/~lelarge/MNIST.tar.gz
!tar -zxvf MNIST.tar.gz
In simple a.py file using vs code but getting error. how can i run these commands in.py file
Those are IPython commands that execute the system shell, not "Python". You'd need to create a Jupyter notebook in Vscode to use those as-is (but they still won't work on Windows, by default)
Otherwise, you need to rewrite both to download a file and untar an archive
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.