pythonでread_csvでファイルを読み込みたいのですが、エラーが出ます。
items=pd.read_csv("C:/Users/Carnegie93/Downloads/items/items.csv",engine='python')
PermissionError Traceback (most recent call last)
<ipython-input-2-7dd0e43502fb> in <module>()
----> 1 items=pd.read_csv("C:/Users/Carnegie93/Downloads/items/items.csv",engine='python')
~\Anaconda3\lib\site-packages\pandas\io\parsers.py in parser_f(filepath_or_buffer, sep, delimiter, header, names, index_col, usecols, squeeze, prefix, mangle_dupe_cols, dtype, engine, converters, true_values, false_values, skipinitialspace, skiprows, nrows, na_values, keep_default_na, na_filter, verbose, skip_blank_lines, parse_dates, infer_datetime_format, keep_date_col, date_parser, dayfirst, iterator, chunksize, compression, thousands, decimal, lineterminator, quotechar, quoting, escapechar, comment, encoding, dialect, tupleize_cols, error_bad_lines, warn_bad_lines, skipfooter, doublequote, delim_whitespace, low_memory, memory_map, float_precision)
676 skip_blank_lines=skip_blank_lines)
677
--> 678 return _read(filepath_or_buffer, kwds)
679
680 parser_f.name = name
~\Anaconda3\lib\site-packages\pandas\io\parsers.py in _read(filepath_or_buffer, kwds)
438
439 # Create the parser.
--> 440 parser = TextFileReader(filepath_or_buffer, **kwds)
441
442 if chunksize or iterator:
~\Anaconda3\lib\site-packages\pandas\io\parsers.py in init(self, f, engine, **kwds)
785 self.options['has_index_names'] = kwds['has_index_names']
786
--> 787 self._make_engine(self.engine)
788
789 def close(self):
~\Anaconda3\lib\site-packages\pandas\io\parsers.py in _make_engine(self, engine)
1022 ' "c", "python", or' ' "python-fwf")'.format(
1023 engine=engine))
-> 1024 self._engine = klass(self.f, **self.options)
1025
1026 def _failover_to_python(self):
~\Anaconda3\lib\site-packages\pandas\io\parsers.py in init(self, f, **kwds)
2075 f, handles = _get_handle(f, mode, encoding=self.encoding,
2076 compression=self.compression,
-> 2077 memory_map=self.memory_map)
2078 self.handles.extend(handles)
2079
~\Anaconda3\lib\site-packages\pandas\io\common.py in _get_handle(path_or_buf, mode, encoding, compression, memory_map, is_text)
401 elif is_text:
402 # Python 3 and no explicit encoding
--> 403 f = open(path_or_buf, mode, errors='replace')
404 else:
405 # Python 3 and binary mode
PermissionError: [Errno 13] Permission denied: 'C:/Users/Carnegie93/Downloads/items/items.csv'
解決策を教えてください。お願いします。

回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2018/06/13 16:31
2018/06/13 23:21
2018/06/14 01:57
2018/06/14 01:59
2018/06/14 02:03
2018/06/14 02:05
2018/06/14 02:42
2018/06/14 02:45
2018/06/14 02:49
2018/06/14 02:57