韩国麦当劳
2022-04-01 14:12
采纳率: 75%
浏览 21
已结题

python 安装FALCONN时报的错误,我不知道这个编码应该怎么改变

C:\Users\admin\Desktop\FALCONN-1.3.1\src\python\package>python setup.py install
running install_lib
running build_py
running egg_info
writing FALCONN.egg-info\PKG-INFO
writing dependency_links to FALCONN.egg-info\dependency_links.txt
writing top-level names to FALCONN.egg-info\top_level.txt
reading manifest file 'FALCONN.egg-info\SOURCES.txt'
reading manifest template 'MANIFEST.in'
warning: no files found matching 'LICENSE.txt'
warning: no files found matching 'CONTRIBUTORS.md'
warning: no files found matching 'internal\python_wrapper.cc'
warning: no files found matching '*' under directory 'include'
warning: no files found matching '*' under directory 'external'
writing manifest file 'FALCONN.egg-info\SOURCES.txt'
running build_ext
building '_falconn' extension
Traceback (most recent call last):
  File "setup.py", line 41, in <module>
    ext_modules=[module])
  File "C:\Users\admin\AppData\Local\Programs\Python\Python37\lib\site-packages\setuptools\__init__.py", line 144, in setup
    return distutils.core.setup(**attrs)
  File "C:\Users\admin\AppData\Local\Programs\Python\Python37\lib\distutils\core.py", line 148, in setup
    dist.run_commands()
  File "C:\Users\admin\AppData\Local\Programs\Python\Python37\lib\distutils\dist.py", line 966, in run_commands
    self.run_command(cmd)
  File "C:\Users\admin\AppData\Local\Programs\Python\Python37\lib\distutils\dist.py", line 985, in run_command
    cmd_obj.run()
  File "C:\Users\admin\AppData\Local\Programs\Python\Python37\lib\site-packages\setuptools\command\install_lib.py", line 11, in run
    self.build()
  File "C:\Users\admin\AppData\Local\Programs\Python\Python37\lib\distutils\command\install_lib.py", line 107, in build
    self.run_command('build_ext')
  File "C:\Users\admin\AppData\Local\Programs\Python\Python37\lib\distutils\cmd.py", line 313, in run_command
    self.distribution.run_command(command)
  File "C:\Users\admin\AppData\Local\Programs\Python\Python37\lib\distutils\dist.py", line 985, in run_command
    cmd_obj.run()
  File "C:\Users\admin\AppData\Local\Programs\Python\Python37\lib\site-packages\setuptools\command\build_ext.py", line 87, in run
    _build_ext.run(self)
  File "F:\11爬虫\venv\lib\site-packages\Cython\Distutils\old_build_ext.py", line 186, in run
    _build_ext.build_ext.run(self)
  File "C:\Users\admin\AppData\Local\Programs\Python\Python37\lib\distutils\command\build_ext.py", line 340, in run
    self.build_extensions()
  File "F:\11爬虫\venv\lib\site-packages\Cython\Distutils\old_build_ext.py", line 195, in build_extensions
    _build_ext.build_ext.build_extensions(self)
  File "C:\Users\admin\AppData\Local\Programs\Python\Python37\lib\distutils\command\build_ext.py", line 449, in build_extensions
    self._build_extensions_serial()
  File "C:\Users\admin\AppData\Local\Programs\Python\Python37\lib\distutils\command\build_ext.py", line 474, in _build_extensions_serial
    self.build_extension(ext)
  File "C:\Users\admin\AppData\Local\Programs\Python\Python37\lib\site-packages\setuptools\command\build_ext.py", line 208, in build_extension
    _build_ext.build_extension(self, ext)
  File "C:\Users\admin\AppData\Local\Programs\Python\Python37\lib\distutils\command\build_ext.py", line 534, in build_extension
    depends=ext.depends)
  File "C:\Users\admin\AppData\Local\Programs\Python\Python37\lib\distutils\_msvccompiler.py", line 346, in compile
    self.initialize()
  File "C:\Users\admin\AppData\Local\Programs\Python\Python37\lib\distutils\_msvccompiler.py", line 239, in initialize
    vc_env = _get_vc_env(plat_spec)
  File "C:\Users\admin\AppData\Local\Programs\Python\Python37\lib\site-packages\setuptools\msvc.py", line 314, in msvc14_get_vc_env
    return _msvc14_get_vc_env(plat_spec)
  File "C:\Users\admin\AppData\Local\Programs\Python\Python37\lib\site-packages\setuptools\msvc.py", line 275, in _msvc14_get_vc_env
    stderr=subprocess.STDOUT,
  File "C:\Users\admin\AppData\Local\Programs\Python\Python37\lib\subprocess.py", line 395, in check_output
    **kwargs).stdout
  File "C:\Users\admin\AppData\Local\Programs\Python\Python37\lib\subprocess.py", line 474, in run
    stdout, stderr = process.communicate(input, timeout=timeout)
  File "C:\Users\admin\AppData\Local\Programs\Python\Python37\lib\subprocess.py", line 927, in communicate
    stdout = self.stdout.read()
  File "C:\Users\admin\AppData\Local\Programs\Python\Python37\lib\codecs.py", line 322, in decode
    (result, consumed) = self._buffer_decode(data, self.errors, final)
UnicodeDecodeError: 'utf-8' codec can't decode byte 0x86 in position 8749: invalid start byte

1条回答 默认 最新

相关推荐 更多相似问题