Open macharlapradeepkumar opened 6 years ago
for startup.py
#!/usr/bin/python
print()
print("checking for nltk")
try:
import nltk
except ImportError:
print("you should install nltk before continuing")
print("checking for numpy")
try:
import numpy
except ImportError:
print("you should install numpy before continuing")
print("checking for scipy")
try:
import scipy
except:
print("you should install scipy before continuing")
print("checking for sklearn")
try:
import sklearn
except:
print("you should install sklearn before continuing")
print
print("downloading the Enron dataset (this may take a while)")
print("to check on progress, you can cd up one level, then execute <ls -lthr>")
print("Enron dataset should be last item on the list, along with its current size")
print("download will complete at about 423 MB")
import urllib.request
url = "https://www.cs.cmu.edu/~./enron/enron_mail_20150507.tar.gz"
data = urllib.request.urlretrieve(url, filename="../enron_mail_20150507.tar.gz")
print("download complete!")
print
print("unzipping Enron dataset (this may take a while)")
import tarfile
import os
os.chdir("..")
tfile = tarfile.open("enron_mail_20150507.tar.gz", "r:gz")
tfile.extractall(".")
print("you're ready to go!")
@macharlapradeepkumar have you found any solution??
for all the pkl file use https://www.fileformat.info/convert/text/dos2unix.tr to convert the files as it is won't work
Hi ALL, can you all provide the udacity /ud120 projects that are successfully working on python 3.0 and windows 8 opeerating system