0

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

user12
  • 761
  • 8
  • 24

1 Answers1

2

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

OneCricketeer
  • 179,855
  • 19
  • 132
  • 245