gpt4 book ai didi

python - 在 python 3.7 上安装 TA-Lib

转载 作者:行者123 更新时间:2023-11-30 21:54:48 24 4
gpt4 key购买 nike

我已经阅读了有关在 Python 中安装 TA-Lib 的帖子,但没有成功。这是我到目前为止所做的:

  1. 由于我的 Python 版本是 3.7.3,因此我下载了文件 TA_Lib-0.4.17-cp37-cp37m-win_amd64.whl来自https://www.lfd.uci.edu/~gohlke/pythonlibs/#ta-lib ,并将其放在base文件夹下。
  2. 然后,我进入 Anaconda Prompt 并输入 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)

非常感谢任何帮助!

最佳答案

尝试一下,让我们知道这是否适合您......

  1. curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
  2. python get-pip.py

关于python - 在 python 3.7 上安装 TA-Lib,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/58426409/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com