我下载了一个很酷的 github 以在 jupyter notebook 中运行。但是我需要由作者导入这个“非标准库”
下载了文件
我将文件放在同一个文件夹中,确保我的笔记本指向那里。
在笔记本中输入“导入指标”(顺便说一下,它在https://github.com/voice32/stock_market_indicators/ 中有一个名为 indicator.py 的文件)
我收到这个错误
回溯(最近一次调用):文件“C:\ProgramData\Anaconda3\lib\site-packages\IPython\core\interactiveshell.py”,第 2961 行,在 run_code exec(code_obj, self.user_global_ns, self.user_ns) 文件中"", line 5, in import indicator File "C:\Users\ney12\Google Drive\1) Financial Mastery\3) paper assets, trading, Other assets\forex\Van tharp Forex trading system\Ney study of van tharp forex交易系统\外汇初始分析\indicators.py”,第 235 行 val_last = val ^ TabError:在缩进中使用不一致的制表符和空格
以防万一我打开命令行并输入“pip install indicator.py”,但出现错误:
" 找不到满足要求的版本 indicator.py (来自版本:) 没有找到与指标.py 匹配的分发版"
请帮忙!
慕尼黑的夜晚无繁华
相关分类