OSError: [Errno 2] Nenhum arquivo ou diretório no Ubuntu 16.04

-2

Usando o Ubuntu, estou tentando usar os exemplos scikit-learn com este snippet:

#!/usr/bin/env python
# -*- coding: utf-8 -*-
""" Examples of reading texts files and classifying them
"""
from __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/"

No entanto, recebi este erro:

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

Eu sou muito novo no Ubuntu e aprendo coisas do tipo scikit-learn. Qual poderia ser o problema / erro e como resolvê-lo.?

    
por loved_by_Jesus 23.10.2016 / 18:03

1 resposta

6

 OSError: [Errno 2] No such file or directory: '/Home/web2py/corpus/20news-18828/

I am ery new to Ubuntu and scikit-learn stuff. What could be the issue/error and how do I get it solved.?

Eu vejo um erro aqui se este for o seu diretório pessoal: /Home/ . Deve ser /home/ . O Linux se preocupa com letras pequenas e maiúsculas. Nós não discriminamos letras como alguns outros sistemas operacionais fazem (:))

    
por Rinzwind 26.10.2016 / 12:20

Tags