PCL安装错误

时间:2018-12-18 11:52:08

标签: python macos setuptools

最近,我试图在Mac中安装pcl-python。 (github:https://github.com/strawlab/python-pcl)我在setup.py文件中找到注释,并更改了一些代码以适合Mac。

from Cython.Distutils import build_ext
line 570:ext_args['extra_compile_args'].append(["-stdlib=libstdc++"])
line 587:ext_args['extra_link_args'].append(["-stdlib=libc++"])

但是,当我在终端中输入python setup.py install时,发生了其他错误。这是我终端的输出

Traceback (most recent call last):
  File "setup.py", line 645, in <module>
    cmdclass={'build_ext': build_ext},
  File "/Users/apple/miniconda3/pkgs/python-3.5.4-h8f450c2_22/lib/python3.5/distutils/core.py", line 148, in setup
    dist.run_commands()
  File "/Users/apple/miniconda3/pkgs/python-3.5.4-h8f450c2_22/lib/python3.5/distutils/dist.py", line 955, in run_commands
    self.run_command(cmd)
  File "/Users/apple/miniconda3/pkgs/python-3.5.4-h8f450c2_22/lib/python3.5/distutils/dist.py", line 974, in run_command
    cmd_obj.run()
  File "/Users/apple/miniconda3/pkgs/python-3.5.4-h8f450c2_22/lib/python3.5/distutils/command/build.py", line 135, in run
    self.run_command(cmd_name)
  File "/Users/apple/miniconda3/pkgs/python-3.5.4-h8f450c2_22/lib/python3.5/distutils/cmd.py", line 313, in run_command
    self.distribution.run_command(command)
  File "/Users/apple/miniconda3/pkgs/python-3.5.4-h8f450c2_22/lib/python3.5/distutils/dist.py", line 974, in run_command
    cmd_obj.run()
  File "/Users/apple/miniconda3/pkgs/python-3.5.4-h8f450c2_22/lib/python3.5/site-packages/Cython/Distutils/old_build_ext.py", line 185, in run
    _build_ext.build_ext.run(self)
  File "/Users/apple/miniconda3/pkgs/python-3.5.4-h8f450c2_22/lib/python3.5/distutils/command/build_ext.py", line 339, in run
    self.build_extensions()
  File "/Users/apple/miniconda3/pkgs/python-3.5.4-h8f450c2_22/lib/python3.5/site-packages/Cython/Distutils/old_build_ext.py", line 193, in build_extensions
    self.build_extension(ext)
  File "/Users/apple/miniconda3/pkgs/python-3.5.4-h8f450c2_22/lib/python3.5/distutils/command/build_ext.py", line 533, in build_extension
    depends=ext.depends)
  File "/Users/apple/miniconda3/pkgs/python-3.5.4-h8f450c2_22/lib/python3.5/distutils/ccompiler.py", line 574, in compile
    self._compile(obj, src, ext, cc_args, extra_postargs, pp_opts)
  File "/Users/apple/miniconda3/pkgs/python-3.5.4-h8f450c2_22/lib/python3.5/distutils/unixccompiler.py", line 118, in _compile
    extra_postargs)
  File "/Users/apple/miniconda3/pkgs/python-3.5.4-h8f450c2_22/lib/python3.5/distutils/ccompiler.py", line 909, in spawn
    spawn(cmd, dry_run=self.dry_run)
  File "/Users/apple/miniconda3/pkgs/python-3.5.4-h8f450c2_22/lib/python3.5/distutils/spawn.py", line 36, in spawn
    _spawn_posix(cmd, search_path, dry_run=dry_run)
  File "/Users/apple/miniconda3/pkgs/python-3.5.4-h8f450c2_22/lib/python3.5/distutils/spawn.py", line 89, in _spawn_posix
    log.info(' '.join(cmd))
TypeError: sequence item 29: expected str instance, list found

我的版本:

Cython = 0.25.2
python version == 3.5.4 
Mac Version == macOS Mojave 10.14.1

0 个答案:

没有答案