好像其他人有这个问题。
引用接受的答案:
似乎您的PiP无法按照错误中的“导入设置工具”访问设置工具。首先尝试以下方法,然后再次运行pip安装。
> sudo pip install -U setuptools
或者,如果引用他的评论不起作用:
试试这个“ sudo -H pip install TA-Lib”
正如Filipe
Ferminiano在评论中说的那样,如果仍然不能解决问题,那么您可以尝试使用此链接上的内容。
再次引用接受的答案:
Your sudo is not getting the right python. This is a known behaviour of sudo in Ubuntu. See this question for more info. You need to make sure that sudo calls the right python, either by using the full path:sudo /usr/local/epd/bin/python setup.py install
或通过执行以下操作(以bash方式):
alias sudo='sudo env PATH=$PATH'sudo python setup.py install
如果它解决了您的问题,请给予接受的答案之一的功劳。



