You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
(base) c:\Users\Think\Sequoia-master>python main.py
[Getting data:]############################################################Traceback (most recent call last):
File "main.py", line 28, in
work_flow.process()
File "c:\Users\Think\Sequoia-master\work_flow.py", line 28, in process
subset.to_csv(settings.STOCKS_FILE, index=None, header=True)
File "C:\Users\Think\Anaconda3\lib\site-packages\pandas\core\generic.py", line 3020, in to_csv
formatter.save()
File "C:\Users\Think\Anaconda3\lib\site-packages\pandas\io\formats\csvs.py", line 157, in save
compression=self.compression)
File "C:\Users\Think\Anaconda3\lib\site-packages\pandas\io\common.py", line 424, in _get_handle
f = open(path_or_buf, mode, encoding=encoding, newline="")
FileNotFoundError: [Errno 2] No such file or directory: './storage/stocks.csv'
The text was updated successfully, but these errors were encountered:
请问一下啊,您在/storage目录下新建了stocks.csv文件就解决了这个问题吗?我也相同错误 File "/home/user/anaconda3/lib/python3.7/site-packages/pandas/io/parsers.py", line 1708, in __init__ self._reader = parsers.TextReader(src, **kwds) File "pandas/_libs/parsers.pyx", line 384, in pandas._libs.parsers.TextReader.__cinit__ File "pandas/_libs/parsers.pyx", line 695, in pandas._libs.parsers.TextReader._setup_parser_source FileNotFoundError: File b'./storage/stocks.csv' does not exist
但是我已经新建了/stocks.csv文件 (base) [user@ecs-278649 storage]$ ls stocks.csv
却依然报错找不到该文件。
万分期待大佬的回复!
(base) c:\Users\Think\Sequoia-master>python main.py
[Getting data:]############################################################Traceback (most recent call last):
File "main.py", line 28, in
work_flow.process()
File "c:\Users\Think\Sequoia-master\work_flow.py", line 28, in process
subset.to_csv(settings.STOCKS_FILE, index=None, header=True)
File "C:\Users\Think\Anaconda3\lib\site-packages\pandas\core\generic.py", line 3020, in to_csv
formatter.save()
File "C:\Users\Think\Anaconda3\lib\site-packages\pandas\io\formats\csvs.py", line 157, in save
compression=self.compression)
File "C:\Users\Think\Anaconda3\lib\site-packages\pandas\io\common.py", line 424, in _get_handle
f = open(path_or_buf, mode, encoding=encoding, newline="")
FileNotFoundError: [Errno 2] No such file or directory: './storage/stocks.csv'
The text was updated successfully, but these errors were encountered: