1

运行任何安装命令时出现此错误:

Complete output from command python setup.py egg_info:
    TypeError: 'tuple' object is not callable

    The above exception was the direct cause of the following exception:

    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "C:\Users\TOSHIB~1\AppData\Local\Temp\pip-req-build-hztbm9lf\setup.py", line 13, in <module>
        include_dirs=[numpy.get_include()])]
      File "c:\python34\lib\site-packages\setuptools\__init__.py", line 129, in setup
        return distutils.core.setup(**attrs)
      File "c:\python34\lib\distutils\core.py", line 148, in setup
        dist.run_commands()
      File "c:\python34\lib\distutils\dist.py", line 955, in run_commands
        self.run_command(cmd)
      File "c:\python34\lib\distutils\dist.py", line 971, in run_command
        log.info("running %s", command)
      File "c:\python34\lib\distutils\log.py", line 44, in info
        self._log(INFO, msg, args)
      File "c:\python34\lib\distutils\log.py", line 33, in _log
        msg = msg.encode(encoding, "backslashreplace").decode(encoding)
    TypeError: encoding with 'cp1252' codec failed (TypeError: 'tuple' object is not callable)

这种情况下的安装命令是

点安装 git+ https://github.com/coreylynch/pyFM

我究竟做错了什么?

我在 python 3.4.2、pip 10.0.1 和 Windows 10 上。

提前致谢。

4

1 回答 1

1

可以从https://www.lfd.uci.edu/~gohlke/pythonlibs/#pyfm下载 pyfm 的轮子包

只需将 wheel 包运行为 python install .whl 让我知道结果

于 2018-06-28T08:59:59.853 回答