python 2.7 - OSError: [Errno 2] No such file or directory on Ubuntu 16.04 - Ask Ubuntu


using ubuntu, trying use scikit-learn examples snippet:

#!/usr/bin/env python # -*- coding: utf-8 -*- """ examples of reading texts files , classifying them """ __future__ import division import datetime import sklearn.datasets  time1 = datetime.datetime.now() ##from sklearn.datasets import fetch_20newsgroups ######## reading text files rootpath = r"/home/web2py/corpus/20news-18828/" 

however, got error:

file "/usr/local/lib/python2.7/dist-packages/sklearn/datasets/base.py", line 201, in load_files     folders = [f f in sorted(listdir(container_path)) oserror: [errno 2] no such file or directory: '/home/web2py/corpus/20news-18828/ 

i ery new ubuntu , scikit-learn stuff. issue/error , how solved.?

 oserror: [errno 2] no such file or directory: '/home/web2py/corpus/20news-18828/ 

i ery new ubuntu , scikit-learn stuff. issue/error , how solved.?

i see error here if meant home directory:/home/. should /home/. linux cares both small , capital letters. not discriminate against letters other operating systems ( :) )


Comments

Popular posts from this blog

download - Firefox cannot save files (most of the time), how to solve? - Super User

windows - "-2146893807 NTE_NOT_FOUND" when repair certificate store - Super User