We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
jieba通过PIP安装报错, python3.8 操作系统:OpenKylin1.0.2 求解决,感谢感谢
ERROR: Command errored out with exit status 1: command: /usr/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-0djclec8/jieba/setup.py'"'"'; __file__='"'"'/tmp/pip-install-0djclec8/jieba/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d /tmp/pip-wheel-ecmrmns6 cwd: /tmp/pip-install-0djclec8/jieba/ Complete output (111 lines): running bdist_wheel running build running build_py creating build creating build/lib creating build/lib/jieba copying jieba/_compat.py -> build/lib/jieba copying jieba/__main__.py -> build/lib/jieba copying jieba/__init__.py -> build/lib/jieba copying jieba/dict.txt -> build/lib/jieba creating build/lib/jieba/finalseg copying jieba/finalseg/prob_trans.p -> build/lib/jieba/finalseg copying jieba/finalseg/prob_trans.py -> build/lib/jieba/finalseg copying jieba/finalseg/prob_emit.p -> build/lib/jieba/finalseg copying jieba/finalseg/prob_start.p -> build/lib/jieba/finalseg copying jieba/finalseg/prob_start.py -> build/lib/jieba/finalseg copying jieba/finalseg/__init__.py -> build/lib/jieba/finalseg copying jieba/finalseg/prob_emit.py -> build/lib/jieba/finalseg creating build/lib/jieba/analyse copying jieba/analyse/analyzer.py -> build/lib/jieba/analyse copying jieba/analyse/idf.txt -> build/lib/jieba/analyse copying jieba/analyse/tfidf.py -> build/lib/jieba/analyse copying jieba/analyse/textrank.py -> build/lib/jieba/analyse copying jieba/analyse/__init__.py -> build/lib/jieba/analyse creating build/lib/jieba/posseg copying jieba/posseg/prob_trans.p -> build/lib/jieba/posseg copying jieba/posseg/prob_trans.py -> build/lib/jieba/posseg copying jieba/posseg/char_state_tab.p -> build/lib/jieba/posseg copying jieba/posseg/viterbi.py -> build/lib/jieba/posseg copying jieba/posseg/prob_emit.p -> build/lib/jieba/posseg copying jieba/posseg/prob_start.p -> build/lib/jieba/posseg copying jieba/posseg/prob_start.py -> build/lib/jieba/posseg copying jieba/posseg/char_state_tab.py -> build/lib/jieba/posseg copying jieba/posseg/__init__.py -> build/lib/jieba/posseg copying jieba/posseg/prob_emit.py -> build/lib/jieba/posseg creating build/lib/jieba/lac_small copying jieba/lac_small/predict.py -> build/lib/jieba/lac_small copying jieba/lac_small/reader_small.py -> build/lib/jieba/lac_small copying jieba/lac_small/creator.py -> build/lib/jieba/lac_small copying jieba/lac_small/nets.py -> build/lib/jieba/lac_small copying jieba/lac_small/utils.py -> build/lib/jieba/lac_small copying jieba/lac_small/__init__.py -> build/lib/jieba/lac_small copying jieba/lac_small/word.dic -> build/lib/jieba/lac_small copying jieba/lac_small/tag.dic -> build/lib/jieba/lac_small creating build/lib/jieba/lac_small/model_baseline copying jieba/lac_small/model_baseline/gru_2.b_0 -> build/lib/jieba/lac_small/model_baseline copying jieba/lac_small/model_baseline/fc_1.b_0 -> build/lib/jieba/lac_small/model_baseline copying jieba/lac_small/model_baseline/fc_4.b_0 -> build/lib/jieba/lac_small/model_baseline copying jieba/lac_small/model_baseline/fc_3.b_0 -> build/lib/jieba/lac_small/model_baseline copying jieba/lac_small/model_baseline/gru_3.w_0 -> build/lib/jieba/lac_small/model_baseline copying jieba/lac_small/model_baseline/fc_3.w_0 -> build/lib/jieba/lac_small/model_baseline copying jieba/lac_small/model_baseline/fc_0.b_0 -> build/lib/jieba/lac_small/model_baseline copying jieba/lac_small/model_baseline/gru_1.w_0 -> build/lib/jieba/lac_small/model_baseline copying jieba/lac_small/model_baseline/word_emb -> build/lib/jieba/lac_small/model_baseline copying jieba/lac_small/model_baseline/fc_1.w_0 -> build/lib/jieba/lac_small/model_baseline copying jieba/lac_small/model_baseline/gru_0.b_0 -> build/lib/jieba/lac_small/model_baseline copying jieba/lac_small/model_baseline/gru_1.b_0 -> build/lib/jieba/lac_small/model_baseline copying jieba/lac_small/model_baseline/fc_4.w_0 -> build/lib/jieba/lac_small/model_baseline copying jieba/lac_small/model_baseline/fc_2.w_0 -> build/lib/jieba/lac_small/model_baseline copying jieba/lac_small/model_baseline/fc_0.w_0 -> build/lib/jieba/lac_small/model_baseline copying jieba/lac_small/model_baseline/gru_0.w_0 -> build/lib/jieba/lac_small/model_baseline copying jieba/lac_small/model_baseline/fc_2.b_0 -> build/lib/jieba/lac_small/model_baseline copying jieba/lac_small/model_baseline/crfw -> build/lib/jieba/lac_small/model_baseline copying jieba/lac_small/model_baseline/gru_2.w_0 -> build/lib/jieba/lac_small/model_baseline copying jieba/lac_small/model_baseline/gru_3.b_0 -> build/lib/jieba/lac_small/model_baseline /usr/lib/python3/dist-packages/setuptools/command/install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools. warnings.warn( installing to build/bdist.linux-x86_64/wheel running install running install_lib Traceback (most recent call last): File "<string>", line 1, in <module> File "/tmp/pip-install-0djclec8/jieba/setup.py", line 45, in <module> setup(name='jieba', File "/usr/lib/python3/dist-packages/setuptools/_distutils/core.py", line 185, in setup return run_commands(dist) File "/usr/lib/python3/dist-packages/setuptools/_distutils/core.py", line 201, in run_commands dist.run_commands() File "/usr/lib/python3/dist-packages/setuptools/_distutils/dist.py", line 973, in run_commands self.run_command(cmd) File "/usr/lib/python3/dist-packages/setuptools/dist.py", line 1217, in run_command super().run_command(command) File "/usr/lib/python3/dist-packages/setuptools/_distutils/dist.py", line 992, in run_command cmd_obj.run() File "/usr/lib/python3/dist-packages/wheel/bdist_wheel.py", line 259, in run self.run_command('install') File "/usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py", line 319, in run_command self.distribution.run_command(command) File "/usr/lib/python3/dist-packages/setuptools/dist.py", line 1217, in run_command super().run_command(command) File "/usr/lib/python3/dist-packages/setuptools/_distutils/dist.py", line 992, in run_command cmd_obj.run() File "/usr/lib/python3/dist-packages/setuptools/command/install.py", line 68, in run return orig.install.run(self) File "/usr/lib/python3/dist-packages/setuptools/_distutils/command/install.py", line 709, in run self.run_command(cmd_name) File "/usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py", line 319, in run_command self.distribution.run_command(command) File "/usr/lib/python3/dist-packages/setuptools/dist.py", line 1217, in run_command super().run_command(command) File "/usr/lib/python3/dist-packages/setuptools/_distutils/dist.py", line 991, in run_command cmd_obj.ensure_finalized() File "/usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py", line 109, in ensure_finalized self.finalize_options() File "/usr/lib/python3/dist-packages/setuptools/command/install_lib.py", line 17, in finalize_options self.set_undefined_options('install',('install_layout','install_layout')) File "/usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py", line 297, in set_undefined_options setattr(self, dst_option, getattr(src_cmd_obj, src_option)) File "/usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py", line 105, in __getattr__ raise AttributeError(attr) AttributeError: install_layout ---------------------------------------- ERROR: Failed building wheel for jieba Running setup.py clean for jieba Failed to build jieba Installing collected packages: jieba Running setup.py install for jieba ... error ERROR: Command errored out with exit status 1: command: /usr/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-0djclec8/jieba/setup.py'"'"'; __file__='"'"'/tmp/pip-install-0djclec8/jieba/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-pnq6sswu/install-record.txt --single-version-externally-managed --user --prefix= --compile --install-headers /home/eric/.local/include/python3.8/jieba cwd: /tmp/pip-install-0djclec8/jieba/ Complete output (101 lines): running install /usr/lib/python3/dist-packages/setuptools/command/install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools. warnings.warn( running build running build_py creating build creating build/lib creating build/lib/jieba copying jieba/_compat.py -> build/lib/jieba copying jieba/__main__.py -> build/lib/jieba copying jieba/__init__.py -> build/lib/jieba copying jieba/dict.txt -> build/lib/jieba creating build/lib/jieba/finalseg copying jieba/finalseg/prob_trans.p -> build/lib/jieba/finalseg copying jieba/finalseg/prob_trans.py -> build/lib/jieba/finalseg copying jieba/finalseg/prob_emit.p -> build/lib/jieba/finalseg copying jieba/finalseg/prob_start.p -> build/lib/jieba/finalseg copying jieba/finalseg/prob_start.py -> build/lib/jieba/finalseg copying jieba/finalseg/__init__.py -> build/lib/jieba/finalseg copying jieba/finalseg/prob_emit.py -> build/lib/jieba/finalseg creating build/lib/jieba/analyse copying jieba/analyse/analyzer.py -> build/lib/jieba/analyse copying jieba/analyse/idf.txt -> build/lib/jieba/analyse copying jieba/analyse/tfidf.py -> build/lib/jieba/analyse copying jieba/analyse/textrank.py -> build/lib/jieba/analyse copying jieba/analyse/__init__.py -> build/lib/jieba/analyse creating build/lib/jieba/posseg copying jieba/posseg/prob_trans.p -> build/lib/jieba/posseg copying jieba/posseg/prob_trans.py -> build/lib/jieba/posseg copying jieba/posseg/char_state_tab.p -> build/lib/jieba/posseg copying jieba/posseg/viterbi.py -> build/lib/jieba/posseg copying jieba/posseg/prob_emit.p -> build/lib/jieba/posseg copying jieba/posseg/prob_start.p -> build/lib/jieba/posseg copying jieba/posseg/prob_start.py -> build/lib/jieba/posseg copying jieba/posseg/char_state_tab.py -> build/lib/jieba/posseg copying jieba/posseg/__init__.py -> build/lib/jieba/posseg copying jieba/posseg/prob_emit.py -> build/lib/jieba/posseg creating build/lib/jieba/lac_small copying jieba/lac_small/predict.py -> build/lib/jieba/lac_small copying jieba/lac_small/reader_small.py -> build/lib/jieba/lac_small copying jieba/lac_small/creator.py -> build/lib/jieba/lac_small copying jieba/lac_small/nets.py -> build/lib/jieba/lac_small copying jieba/lac_small/utils.py -> build/lib/jieba/lac_small copying jieba/lac_small/__init__.py -> build/lib/jieba/lac_small copying jieba/lac_small/word.dic -> build/lib/jieba/lac_small copying jieba/lac_small/tag.dic -> build/lib/jieba/lac_small creating build/lib/jieba/lac_small/model_baseline copying jieba/lac_small/model_baseline/gru_2.b_0 -> build/lib/jieba/lac_small/model_baseline copying jieba/lac_small/model_baseline/fc_1.b_0 -> build/lib/jieba/lac_small/model_baseline copying jieba/lac_small/model_baseline/fc_4.b_0 -> build/lib/jieba/lac_small/model_baseline copying jieba/lac_small/model_baseline/fc_3.b_0 -> build/lib/jieba/lac_small/model_baseline copying jieba/lac_small/model_baseline/gru_3.w_0 -> build/lib/jieba/lac_small/model_baseline copying jieba/lac_small/model_baseline/fc_3.w_0 -> build/lib/jieba/lac_small/model_baseline copying jieba/lac_small/model_baseline/fc_0.b_0 -> build/lib/jieba/lac_small/model_baseline copying jieba/lac_small/model_baseline/gru_1.w_0 -> build/lib/jieba/lac_small/model_baseline copying jieba/lac_small/model_baseline/word_emb -> build/lib/jieba/lac_small/model_baseline copying jieba/lac_small/model_baseline/fc_1.w_0 -> build/lib/jieba/lac_small/model_baseline copying jieba/lac_small/model_baseline/gru_0.b_0 -> build/lib/jieba/lac_small/model_baseline copying jieba/lac_small/model_baseline/gru_1.b_0 -> build/lib/jieba/lac_small/model_baseline copying jieba/lac_small/model_baseline/fc_4.w_0 -> build/lib/jieba/lac_small/model_baseline copying jieba/lac_small/model_baseline/fc_2.w_0 -> build/lib/jieba/lac_small/model_baseline copying jieba/lac_small/model_baseline/fc_0.w_0 -> build/lib/jieba/lac_small/model_baseline copying jieba/lac_small/model_baseline/gru_0.w_0 -> build/lib/jieba/lac_small/model_baseline copying jieba/lac_small/model_baseline/fc_2.b_0 -> build/lib/jieba/lac_small/model_baseline copying jieba/lac_small/model_baseline/crfw -> build/lib/jieba/lac_small/model_baseline copying jieba/lac_small/model_baseline/gru_2.w_0 -> build/lib/jieba/lac_small/model_baseline copying jieba/lac_small/model_baseline/gru_3.b_0 -> build/lib/jieba/lac_small/model_baseline running install_lib Traceback (most recent call last): File "<string>", line 1, in <module> File "/tmp/pip-install-0djclec8/jieba/setup.py", line 45, in <module> setup(name='jieba', File "/usr/lib/python3/dist-packages/setuptools/_distutils/core.py", line 185, in setup return run_commands(dist) File "/usr/lib/python3/dist-packages/setuptools/_distutils/core.py", line 201, in run_commands dist.run_commands() File "/usr/lib/python3/dist-packages/setuptools/_distutils/dist.py", line 973, in run_commands self.run_command(cmd) File "/usr/lib/python3/dist-packages/setuptools/dist.py", line 1217, in run_command super().run_command(command) File "/usr/lib/python3/dist-packages/setuptools/_distutils/dist.py", line 992, in run_command cmd_obj.run() File "/usr/lib/python3/dist-packages/setuptools/command/install.py", line 68, in run return orig.install.run(self) File "/usr/lib/python3/dist-packages/setuptools/_distutils/command/install.py", line 709, in run self.run_command(cmd_name) File "/usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py", line 319, in run_command self.distribution.run_command(command) File "/usr/lib/python3/dist-packages/setuptools/dist.py", line 1217, in run_command super().run_command(command) File "/usr/lib/python3/dist-packages/setuptools/_distutils/dist.py", line 991, in run_command cmd_obj.ensure_finalized() File "/usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py", line 109, in ensure_finalized self.finalize_options() File "/usr/lib/python3/dist-packages/setuptools/command/install_lib.py", line 17, in finalize_options self.set_undefined_options('install',('install_layout','install_layout')) File "/usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py", line 297, in set_undefined_options setattr(self, dst_option, getattr(src_cmd_obj, src_option)) File "/usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py", line 105, in __getattr__ raise AttributeError(attr) AttributeError: install_layout ---------------------------------------- ERROR: Command errored out with exit status 1: /usr/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-0djclec8/jieba/setup.py'"'"'; __file__='"'"'/tmp/pip-install-0djclec8/jieba/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-pnq6sswu/install-record.txt --single-version-externally-managed --user --prefix= --compile --install-headers /home/eric/.local/include/python3.8/jieba Check the logs for full command output.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
jieba通过PIP安装报错,
python3.8
操作系统:OpenKylin1.0.2
求解决,感谢感谢
The text was updated successfully, but these errors were encountered: