尝试使用pip安装Quandl模块时出错

2024-06-16 09:41:06 发布

您现在位置:Python中文网/ 问答频道 /正文

我试图用pip安装Python Quandl module,方法是在cmd提示符下运行以下代码:

C:\Users\zeke\Desktop\Python\python.exe -m pip install quandl

模块开始下载和安装,直到出现错误消息:

^{pr2}$

我按照文件路径'C:\Users\zeke\Desktop\python35.zip\lib2to3\语法.txt'而且文件完全存在。为什么我得到这个错误?在


Tags: installpip文件方法代码cmd错误exe
1条回答
网友
1楼 · 发布于 2024-06-16 09:41:06

我可以通过将…/Python/Python35.zip解压到…/Python中名为“Python35.zip”的新目录中来解决这个问题。在

但是现在我在尝试导入模块时收到错误。在

>>> import quandl
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "C:\Users\zeke\Desktop\Python\lib\site-packages\quandl\__init__.py", line 11, in <module>
    from .model.merged_dataset import MergedDataset
  File "C:\Users\zeke\Desktop\Python\lib\site-packages\quandl\model\merged_dataset.py", line 1, in <module>
    from more_itertools import unique_everseen
  File "C:\Users\zeke\Desktop\Python\lib\site-packages\more_itertools\__init__.py", line 1, in <module>
    from more_itertools.more import *
  File "C:\Users\zeke\Desktop\Python\lib\site-packages\more_itertools\more.py", line 162
    min_or_max = partial(max if reverse else min, key=lambda (a, b): a)
                                                         ^
SyntaxError: invalid syntax

相关问题 更多 >