报错内容如下:
Command /usr/bin/python3 -c "import setuptools, tokenize;__file__='/tmp/pip_build_root/bcrypt/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-wn7jau8c-record/install-record.txt
--single-version-externally-managed --compile failed with error code 1 in /tmp/pip_build_root/bcrypt
Exception information:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/pip/basecommand.py", line 122, in main
status = self.run(options, args)
File "/usr/lib/python3/dist-packages/pip/commands/install.py", line 283, in run
requirement_set.install(install_options, global_options, root=options.root_path)
File "/usr/lib/python3/dist-packages/pip/req.py", line 1435, in install
requirement.install(install_options, global_options, *args, **kwargs)
File "/usr/lib/python3/dist-packages/pip/req.py", line 706, in install
cwd=self.source_dir, filter_stdout=self._filter_install, show_stdout=False)
File "/usr/lib/python3/dist-packages/pip/util.py", line 697, in call_subprocess
% (command_desc, proc.returncode, cwd))
pip.exceptions.InstallationError: Command /usr/bin/python3 -c "import setuptools, tokenize;__file__='/tmp/pip_build_root/bcrypt/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record
/tmp/pip-wn7jau8c-record/install-record.txt --single-version-externally-managed --compile failed with error code 1 in /tmp/pip_build_root/bcrypt
flask-bcrypt是提示需要先安装py-bcrypt
最后 安装python3-bycrypt 解决
在尝试安装flask-bcrypt时遇到错误,错误代码为1。问题源于缺少py-bcrypt依赖。通过安装python3-bcrypt成功解决了安装问题。
791

被折叠的 条评论
为什么被折叠?



