我已经阅读了有关在Python中安装TA-Lib的文章,但没有成功。到目前为止,这是我所做的:
TA_Lib-0.4.17-cp37-cp37m-win_amd64.whl
从https://www.lfd.uci.edu/~gohlke/pythonlibs/#ta-lib中移至基本文件夹下。pip install TA_Lib-0.4.17-cp37-cp37m-win_amd64.whl
,这是我得到的:Traceback (most recent call last):
File "C:\Users\User\Anaconda3\Scripts\pip-script.py", line 6, in <module>
from pip._internal import main
File "C:\Users\User\Anaconda3\lib\site-packages\pip\_internal\__init__.py", line 40, in <module>
from pip._internal.cli.autocompletion import autocomplete
File "C:\Users\User\Anaconda3\lib\site-packages\pip\_internal\cli\autocompletion.py", line 8, in <module>
from pip._internal.cli.main_parser import create_main_parser
File "C:\Users\User\Anaconda3\lib\site-packages\pip\_internal\cli\main_parser.py", line 11, in <module>
from pip._internal.commands import (
File "C:\Users\User\Anaconda3\lib\site-packages\pip\_internal\commands\__init__.py", line 9, in <module>
from pip._internal.commands.download import DownloadCommand
File "C:\Users\User\Anaconda3\lib\site-packages\pip\_internal\commands\download.py", line 10, in <module>
from pip._internal.operations.prepare import RequirementPreparer
File "C:\Users\User\Anaconda3\lib\site-packages\pip\_internal\operations\prepare.py", line 9, in <module>
from pip._internal.distributions import (
File "C:\Users\User\Anaconda3\lib\site-packages\pip\_internal\distributions\__init__.py", line 1, in <module>
from pip._internal.distributions.source import SourceDistribution
ImportError: cannot import name 'SourceDistribution' from 'pip._internal.distributions.source' (C:\Users\User\Anaconda3\lib\site-packages\pip\_internal\distributions\source\__init__.py)
非常感谢您的帮助!
答案 0 :(得分:2)
尝试一下,让我们知道这是否适合您....