gpt4 book ai didi

python-3.x - 为 python 3.6 安装包时 Pipenv 失败

转载 作者:行者123 更新时间:2023-12-05 02:05:05 26 4
gpt4 key购买 nike

我正在从事一个需要 pipenv 和 python 3.6 的项目。当我运行 pipenv sync 时,我收到了错误消息

An error occurred while installing django-markdown-deux==1.0.5 --hash=sha256:5b4a3cd9454af5b4cec0e19151b41d98d09400ddae0688afb81dbf62a4edafff! Will try again.
An error occurred while installing easy-thumbnails==2.7 --hash=sha256:e4e7a0dd4001f56bfd4058428f2c91eafe27d33ef3b8b33ac4e013b159b9ff91! Will try again.

以及出于隐私原因保留的私有(private)维护的库(我试图删除它,它没有帮助。)pipenv 然后尝试“安装最初失败的依赖项......”,然后喷出一堵类似的错误

[InstallError]:       retcode = do_sync(
[InstallError]: File "/usr/local/lib/python3.8/dist-packages/pipenv/core.py", line 2884, in do_sync
[InstallError]: do_init(
[InstallError]: File "/usr/local/lib/python3.8/dist-packages/pipenv/core.py", line 1305, in do_init
[InstallError]: do_install_dependencies(
[InstallError]: File "/usr/local/lib/python3.8/dist-packages/pipenv/core.py", line 899, in do_install_dependencies
[InstallError]: batch_install(
[InstallError]: File "/usr/local/lib/python3.8/dist-packages/pipenv/core.py", line 796, in batch_install
[InstallError]: _cleanup_procs(procs, failed_deps_queue, retry=retry)
[InstallError]: File "/usr/local/lib/python3.8/dist-packages/pipenv/core.py", line 703, in _cleanup_procs
[InstallError]: raise exceptions.InstallError(c.dep.name, extra=err_lines)
[pipenv.exceptions.InstallError]: Looking in indexes: https://pypi.python.org/simple
[pipenv.exceptions.InstallError]: Collecting django-markdown-deux==1.0.5
[pipenv.exceptions.InstallError]: Using cached django-markdown-deux-1.0.5.zip (16 kB)
[pipenv.exceptions.InstallError]: Building wheels for collected packages: django-markdown-deux
[pipenv.exceptions.InstallError]: Building wheel for django-markdown-deux (setup.py): started
[pipenv.exceptions.InstallError]: Building wheel for django-markdown-deux (setup.py): finished with status 'error'
[pipenv.exceptions.InstallError]: ERROR: Command errored out with exit status 1:
[pipenv.exceptions.InstallError]: command: /home/martin/.local/share/virtualenvs/nablaweb-2TimVObB/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-7100f1_i/django-markdown-deux/setup.py'"'"'; __file__='"'"'/tmp/pip-install-7100f1_i/django-markdown-deux/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-b1rphrl8
[pipenv.exceptions.InstallError]: cwd: /tmp/pip-install-7100f1_i/django-markdown-deux/
[pipenv.exceptions.InstallError]: Complete output (64 lines):
[pipenv.exceptions.InstallError]: running bdist_wheel
[pipenv.exceptions.InstallError]: running build
[pipenv.exceptions.InstallError]: running build_py
[pipenv.exceptions.InstallError]: creating build
[pipenv.exceptions.InstallError]: creating build/lib
[pipenv.exceptions.InstallError]: creating build/lib/markdown_deux
[pipenv.exceptions.InstallError]: copying lib/markdown_deux/__init__.py -> build/lib/markdown_deux
[pipenv.exceptions.InstallError]: running egg_info
[pipenv.exceptions.InstallError]: writing lib/django_markdown_deux.egg-info/PKG-INFO
[pipenv.exceptions.InstallError]: writing dependency_links to lib/django_markdown_deux.egg-info/dependency_links.txt
[pipenv.exceptions.InstallError]: writing requirements to lib/django_markdown_deux.egg-info/requires.txt
[pipenv.exceptions.InstallError]: writing top-level names to lib/django_markdown_deux.egg-info/top_level.txt
[pipenv.exceptions.InstallError]: reading manifest file 'lib/django_markdown_deux.egg-info/SOURCES.txt'
[pipenv.exceptions.InstallError]: reading manifest template 'MANIFEST.in'
[pipenv.exceptions.InstallError]: writing manifest file 'lib/django_markdown_deux.egg-info/SOURCES.txt'
[pipenv.exceptions.InstallError]: creating build/lib/markdown_deux/conf
[pipenv.exceptions.InstallError]: copying lib/markdown_deux/conf/__init__.py -> build/lib/markdown_deux/conf
[pipenv.exceptions.InstallError]: copying lib/markdown_deux/conf/settings.py -> build/lib/markdown_deux/conf
[pipenv.exceptions.InstallError]: creating build/lib/markdown_deux/templates
[pipenv.exceptions.InstallError]: creating build/lib/markdown_deux/templates/markdown_deux
[pipenv.exceptions.InstallError]: copying lib/markdown_deux/templates/markdown_deux/markdown_cheatsheet.html -> build/lib/markdown_deux/templates/markdown_deux
[pipenv.exceptions.InstallError]: creating build/lib/markdown_deux/templatetags
[pipenv.exceptions.InstallError]: copying lib/markdown_deux/templatetags/__init__.py -> build/lib/markdown_deux/templatetags
[pipenv.exceptions.InstallError]: copying lib/markdown_deux/templatetags/markdown_deux_tags.py -> build/lib/markdown_deux/templatetags
[pipenv.exceptions.InstallError]: warning: build_py: byte-compiling is disabled, skipping.
[pipenv.exceptions.InstallError]:
[pipenv.exceptions.InstallError]: installing to build/bdist.linux-x86_64/wheel
[pipenv.exceptions.InstallError]: running install
[pipenv.exceptions.InstallError]: running install_lib
[pipenv.exceptions.InstallError]: Traceback (most recent call last):
[pipenv.exceptions.InstallError]: File "<string>", line 1, in <module>
[pipenv.exceptions.InstallError]: File "/tmp/pip-install-7100f1_i/django-markdown-deux/setup.py", line 42, in <module>
[pipenv.exceptions.InstallError]: zip_safe=False,
[pipenv.exceptions.InstallError]: File "/home/martin/.local/share/virtualenvs/nablaweb-2TimVObB/lib/python3.6/site-packages/setuptools/__init__.py", line 145, in setup
[pipenv.exceptions.InstallError]: return distutils.core.setup(**attrs)
[pipenv.exceptions.InstallError]: File "/home/martin/anaconda3/lib/python3.6/distutils/core.py", line 148, in setup
[pipenv.exceptions.InstallError]: dist.run_commands()
[pipenv.exceptions.InstallError]: File "/home/martin/anaconda3/lib/python3.6/distutils/dist.py", line 955, in run_commands
[pipenv.exceptions.InstallError]: self.run_command(cmd)
[pipenv.exceptions.InstallError]: File "/home/martin/anaconda3/lib/python3.6/distutils/dist.py", line 974, in run_command
[pipenv.exceptions.InstallError]: cmd_obj.run()
[pipenv.exceptions.InstallError]: File "/home/martin/.local/share/virtualenvs/nablaweb-2TimVObB/lib/python3.6/site-packages/wheel/bdist_wheel.py", line 259, in run
[pipenv.exceptions.InstallError]: self.run_command('install')
[pipenv.exceptions.InstallError]: File "/home/martin/anaconda3/lib/python3.6/distutils/cmd.py", line 313, in run_command
[pipenv.exceptions.InstallError]: self.distribution.run_command(command)
[pipenv.exceptions.InstallError]: File "/home/martin/anaconda3/lib/python3.6/distutils/dist.py", line 974, in run_command
[pipenv.exceptions.InstallError]: cmd_obj.run()
[pipenv.exceptions.InstallError]: File "/home/martin/.local/share/virtualenvs/nablaweb-2TimVObB/lib/python3.6/site-packages/setuptools/command/install.py", line 61, in run
[pipenv.exceptions.InstallError]: return orig.install.run(self)
[pipenv.exceptions.InstallError]: File "/home/martin/anaconda3/lib/python3.6/distutils/command/install.py", line 557, in run
[pipenv.exceptions.InstallError]: self.run_command(cmd_name)
[pipenv.exceptions.InstallError]: File "/home/martin/anaconda3/lib/python3.6/distutils/cmd.py", line 313, in run_command
[pipenv.exceptions.InstallError]: self.distribution.run_command(command)
[pipenv.exceptions.InstallError]: File "/home/martin/anaconda3/lib/python3.6/distutils/dist.py", line 973, in run_command
[pipenv.exceptions.InstallError]: cmd_obj.ensure_finalized()
[pipenv.exceptions.InstallError]: File "/home/martin/anaconda3/lib/python3.6/distutils/cmd.py", line 107, in ensure_finalized
[pipenv.exceptions.InstallError]: self.finalize_options()
[pipenv.exceptions.InstallError]: File "/home/martin/.local/share/virtualenvs/nablaweb-2TimVObB/lib/python3.6/site-packages/setuptools/command/install_lib.py", line 17, in finalize_options
[pipenv.exceptions.InstallError]: self.set_undefined_options('install',('install_layout','install_layout'))
[pipenv.exceptions.InstallError]: File "/home/martin/anaconda3/lib/python3.6/distutils/cmd.py", line 290, in set_undefined_options
[pipenv.exceptions.InstallError]: setattr(self, dst_option, getattr(src_cmd_obj, src_option))
[pipenv.exceptions.InstallError]: File "/home/martin/anaconda3/lib/python3.6/distutils/cmd.py", line 103, in __getattr__
[pipenv.exceptions.InstallError]: raise AttributeError(attr)
[pipenv.exceptions.InstallError]: AttributeError: install_layout
[pipenv.exceptions.InstallError]: ----------------------------------------
[pipenv.exceptions.InstallError]: ERROR: Failed building wheel for django-markdown-deux
[pipenv.exceptions.InstallError]: Running setup.py clean for django-markdown-deux
[pipenv.exceptions.InstallError]: Failed to build django-markdown-deux
[pipenv.exceptions.InstallError]: Installing collected packages: django-markdown-deux
[pipenv.exceptions.InstallError]: Running setup.py install for django-markdown-deux: started
[pipenv.exceptions.InstallError]: Running setup.py install for django-markdown-deux: finished with status 'error'
[pipenv.exceptions.InstallError]: ERROR: Command errored out with exit status 1:
[pipenv.exceptions.InstallError]: command: /home/martin/.local/share/virtualenvs/nablaweb-2TimVObB/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-7100f1_i/django-markdown-deux/setup.py'"'"'; __file__='"'"'/tmp/pip-install-7100f1_i/django-markdown-deux/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-_v1a0e1f/install-record.txt --single-version-externally-managed --compile --install-headers /home/martin/.local/share/virtualenvs/nablaweb-2TimVObB/include/site/python3.6/django-markdown-deux
[pipenv.exceptions.InstallError]: cwd: /tmp/pip-install-7100f1_i/django-markdown-deux/
[pipenv.exceptions.InstallError]: Complete output (56 lines):
[pipenv.exceptions.InstallError]: running install
[pipenv.exceptions.InstallError]: running build
[pipenv.exceptions.InstallError]: running build_py
[pipenv.exceptions.InstallError]: creating build
[pipenv.exceptions.InstallError]: creating build/lib
[pipenv.exceptions.InstallError]: creating build/lib/markdown_deux
[pipenv.exceptions.InstallError]: copying lib/markdown_deux/__init__.py -> build/lib/markdown_deux
[pipenv.exceptions.InstallError]: running egg_info
[pipenv.exceptions.InstallError]: writing lib/django_markdown_deux.egg-info/PKG-INFO
[pipenv.exceptions.InstallError]: writing dependency_links to lib/django_markdown_deux.egg-info/dependency_links.txt
[pipenv.exceptions.InstallError]: writing requirements to lib/django_markdown_deux.egg-info/requires.txt
[pipenv.exceptions.InstallError]: writing top-level names to lib/django_markdown_deux.egg-info/top_level.txt
[pipenv.exceptions.InstallError]: reading manifest file 'lib/django_markdown_deux.egg-info/SOURCES.txt'
[pipenv.exceptions.InstallError]: reading manifest template 'MANIFEST.in'
[pipenv.exceptions.InstallError]: writing manifest file 'lib/django_markdown_deux.egg-info/SOURCES.txt'
[pipenv.exceptions.InstallError]: creating build/lib/markdown_deux/conf
[pipenv.exceptions.InstallError]: copying lib/markdown_deux/conf/__init__.py -> build/lib/markdown_deux/conf
[pipenv.exceptions.InstallError]: copying lib/markdown_deux/conf/settings.py -> build/lib/markdown_deux/conf
[pipenv.exceptions.InstallError]: creating build/lib/markdown_deux/templates
[pipenv.exceptions.InstallError]: creating build/lib/markdown_deux/templates/markdown_deux
[pipenv.exceptions.InstallError]: copying lib/markdown_deux/templates/markdown_deux/markdown_cheatsheet.html -> build/lib/markdown_deux/templates/markdown_deux
[pipenv.exceptions.InstallError]: creating build/lib/markdown_deux/templatetags
[pipenv.exceptions.InstallError]: copying lib/markdown_deux/templatetags/__init__.py -> build/lib/markdown_deux/templatetags
[pipenv.exceptions.InstallError]: copying lib/markdown_deux/templatetags/markdown_deux_tags.py -> build/lib/markdown_deux/templatetags
[pipenv.exceptions.InstallError]: warning: build_py: byte-compiling is disabled, skipping.
[pipenv.exceptions.InstallError]:
[pipenv.exceptions.InstallError]: running install_lib
[pipenv.exceptions.InstallError]: Traceback (most recent call last):
[pipenv.exceptions.InstallError]: File "<string>", line 1, in <module>
[pipenv.exceptions.InstallError]: File "/tmp/pip-install-7100f1_i/django-markdown-deux/setup.py", line 42, in <module>
[pipenv.exceptions.InstallError]: zip_safe=False,
[pipenv.exceptions.InstallError]: File "/home/martin/.local/share/virtualenvs/nablaweb-2TimVObB/lib/python3.6/site-packages/setuptools/__init__.py", line 145, in setup
[pipenv.exceptions.InstallError]: return distutils.core.setup(**attrs)
[pipenv.exceptions.InstallError]: File "/home/martin/anaconda3/lib/python3.6/distutils/core.py", line 148, in setup
[pipenv.exceptions.InstallError]: dist.run_commands()
[pipenv.exceptions.InstallError]: File "/home/martin/anaconda3/lib/python3.6/distutils/dist.py", line 955, in run_commands
[pipenv.exceptions.InstallError]: self.run_command(cmd)
[pipenv.exceptions.InstallError]: File "/home/martin/anaconda3/lib/python3.6/distutils/dist.py", line 974, in run_command
[pipenv.exceptions.InstallError]: cmd_obj.run()
[pipenv.exceptions.InstallError]: File "/home/martin/.local/share/virtualenvs/nablaweb-2TimVObB/lib/python3.6/site-packages/setuptools/command/install.py", line 61, in run
[pipenv.exceptions.InstallError]: return orig.install.run(self)
[pipenv.exceptions.InstallError]: File "/home/martin/anaconda3/lib/python3.6/distutils/command/install.py", line 557, in run
[pipenv.exceptions.InstallError]: self.run_command(cmd_name)
[pipenv.exceptions.InstallError]: File "/home/martin/anaconda3/lib/python3.6/distutils/cmd.py", line 313, in run_command
[pipenv.exceptions.InstallError]: self.distribution.run_command(command)
[pipenv.exceptions.InstallError]: File "/home/martin/anaconda3/lib/python3.6/distutils/dist.py", line 973, in run_command
[pipenv.exceptions.InstallError]: cmd_obj.ensure_finalized()
[pipenv.exceptions.InstallError]: File "/home/martin/anaconda3/lib/python3.6/distutils/cmd.py", line 107, in ensure_finalized
[pipenv.exceptions.InstallError]: self.finalize_options()
[pipenv.exceptions.InstallError]: File "/home/martin/.local/share/virtualenvs/nablaweb-2TimVObB/lib/python3.6/site-packages/setuptools/command/install_lib.py", line 17, in finalize_options
[pipenv.exceptions.InstallError]: self.set_undefined_options('install',('install_layout','install_layout'))
[pipenv.exceptions.InstallError]: File "/home/martin/anaconda3/lib/python3.6/distutils/cmd.py", line 290, in set_undefined_options
[pipenv.exceptions.InstallError]: setattr(self, dst_option, getattr(src_cmd_obj, src_option))
[pipenv.exceptions.InstallError]: File "/home/martin/anaconda3/lib/python3.6/distutils/cmd.py", line 103, in __getattr__
[pipenv.exceptions.InstallError]: raise AttributeError(attr)
[pipenv.exceptions.InstallError]: AttributeError: install_layout
[pipenv.exceptions.InstallError]: ----------------------------------------
[pipenv.exceptions.InstallError]: ERROR: Command errored out with exit status 1: /home/martin/.local/share/virtualenvs/nablaweb-2TimVObB/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-7100f1_i/django-markdown-deux/setup.py'"'"'; __file__='"'"'/tmp/pip-install-7100f1_i/django-markdown-deux/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-_v1a0e1f/install-record.txt --single-version-externally-managed --compile --install-headers /home/martin/.local/share/virtualenvs/nablaweb-2TimVObB/include/site/python3.6/django-markdown-deux Check the logs for full command output.

当尝试通过 pipenv 安装 easy-thumbnails 时,也会出现此错误消息,格式略有不同。

Error text: Looking in indexes: https://pypi.python.org/simple
Collecting easy-thumbnails
Using cached easy-thumbnails-2.7.tar.gz (66 kB)
Requirement already satisfied, skipping upgrade: django<4.0,>=1.11 in /home/martin/.local/share/virtualenvs/nablaweb-2TimVObB/lib/python3.6/site-packages (from easy-thumbnails->-r /tmp/pipenv-9cou5x98-requirements/pipenv-phwkyn6c-requirement.txt (line 1)) (3.0.7)
Requirement already satisfied, skipping upgrade: pillow in /home/martin/.local/share/virtualenvs/nablaweb-2TimVObB/lib/python3.6/site-packages (from easy-thumbnails->-r /tmp/pipenv-9cou5x98-requirements/pipenv-phwkyn6c-requirement.txt (line 1)) (7.2.0)
Requirement already satisfied, skipping upgrade: asgiref~=3.2 in /home/martin/.local/share/virtualenvs/nablaweb-2TimVObB/lib/python3.6/site-packages (from django<4.0,>=1.11->easy-thumbnails->-r /tmp/pipenv-9cou5x98-requirements/pipenv-phwkyn6c-requirement.txt (line 1)) (3.2.10)
Requirement already satisfied, skipping upgrade: sqlparse>=0.2.2 in /home/martin/.local/share/virtualenvs/nablaweb-2TimVObB/lib/python3.6/site-packages (from django<4.0,>=1.11->easy-thumbnails->-r /tmp/pipenv-9cou5x98-requirements/pipenv-phwkyn6c-requirement.txt (line 1)) (0.3.1)
Requirement already satisfied, skipping upgrade: pytz in /home/martin/.local/share/virtualenvs/nablaweb-2TimVObB/lib/python3.6/site-packages (from django<4.0,>=1.11->easy-thumbnails->-r /tmp/pipenv-9cou5x98-requirements/pipenv-phwkyn6c-requirement.txt (line 1)) (2020.1)
Building wheels for collected packages: easy-thumbnails
Building wheel for easy-thumbnails (setup.py): started
Building wheel for easy-thumbnails (setup.py): finished with status 'error'
Running setup.py clean for easy-thumbnails
Failed to build easy-thumbnails
Installing collected packages: easy-thumbnails
Running setup.py install for easy-thumbnails: started
Running setup.py install for easy-thumbnails: finished with status 'error'

ERROR: Command errored out with exit status 1:
command: /home/martin/.local/share/virtualenvs/nablaweb-2TimVObB/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-042_z1b9/easy-thumbnails/setup.py'"'"'; __file__='"'"'/tmp/pip-install-042_z1b9/easy-thumbnails/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-bx7dcid2
cwd: /tmp/pip-install-042_z1b9/easy-thumbnails/
Complete output (110 lines):
running bdist_wheel
running build
running build_py
creating build
creating build/lib
creating build/lib/easy_thumbnails
copying easy_thumbnails/namers.py -> build/lib/easy_thumbnails
copying easy_thumbnails/get_version.py -> build/lib/easy_thumbnails
copying easy_thumbnails/signal_handlers.py -> build/lib/easy_thumbnails
copying easy_thumbnails/exceptions.py -> build/lib/easy_thumbnails
copying easy_thumbnails/alias.py -> build/lib/easy_thumbnails
copying easy_thumbnails/fields.py -> build/lib/easy_thumbnails
copying easy_thumbnails/__init__.py -> build/lib/easy_thumbnails
copying easy_thumbnails/models.py -> build/lib/easy_thumbnails
copying easy_thumbnails/utils.py -> build/lib/easy_thumbnails
copying easy_thumbnails/storage.py -> build/lib/easy_thumbnails
copying easy_thumbnails/widgets.py -> build/lib/easy_thumbnails
copying easy_thumbnails/source_generators.py -> build/lib/easy_thumbnails
copying easy_thumbnails/signals.py -> build/lib/easy_thumbnails
copying easy_thumbnails/processors.py -> build/lib/easy_thumbnails

... Character limit reached ....

copying easy_thumbnails/templatetags/__init__.py -> build/lib/easy_thumbnails/templatetags
copying easy_thumbnails/templatetags/thumbnail.py -> build/lib/easy_thumbnails/templatetags
creating build/lib/easy_thumbnails/optimize
copying easy_thumbnails/optimize/post_processor.py -> build/lib/easy_thumbnails/optimize
copying easy_thumbnails/optimize/__init__.py -> build/lib/easy_thumbnails/optimize
copying easy_thumbnails/optimize/conf.py -> build/lib/easy_thumbnails/optimize
creating build/lib/easy_thumbnails/tests
copying easy_thumbnails/tests/test_widgets.py -> build/lib/easy_thumbnails/tests
copying easy_thumbnails/tests/test_files.py -> build/lib/easy_thumbnails/tests
copying easy_thumbnails/tests/test_templatetags.py -> build/lib/easy_thumbnails/tests
copying easy_thumbnails/tests/test_aliases.py -> build/lib/easy_thumbnails/tests
copying easy_thumbnails/tests/mockoptim_fail.py -> build/lib/easy_thumbnails/tests
copying easy_thumbnails/tests/test_management.py -> build/lib/easy_thumbnails/tests
copying easy_thumbnails/tests/mockoptim.py -> build/lib/easy_thumbnails/tests
copying easy_thumbnails/tests/__init__.py -> build/lib/easy_thumbnails/tests
copying easy_thumbnails/tests/models.py -> build/lib/easy_thumbnails/tests
copying easy_thumbnails/tests/test_source_generators.py -> build/lib/easy_thumbnails/tests
copying easy_thumbnails/tests/test_engine.py -> build/lib/easy_thumbnails/tests
copying easy_thumbnails/tests/test_models.py -> build/lib/easy_thumbnails/tests
copying easy_thumbnails/tests/utils.py -> build/lib/easy_thumbnails/tests
copying easy_thumbnails/tests/settings.py -> build/lib/easy_thumbnails/tests
copying easy_thumbnails/tests/test_fields.py -> build/lib/easy_thumbnails/tests
copying easy_thumbnails/tests/test_processors.py -> build/lib/easy_thumbnails/tests
copying easy_thumbnails/tests/test_namers.py -> build/lib/easy_thumbnails/tests
copying easy_thumbnails/tests/apps.py -> build/lib/easy_thumbnails/tests
creating build/lib/easy_thumbnails/management
copying easy_thumbnails/management/__init__.py -> build/lib/easy_thumbnails/management
creating build/lib/easy_thumbnails/migrations
copying easy_thumbnails/migrations/__init__.py -> build/lib/easy_thumbnails/migrations
copying easy_thumbnails/migrations/0001_initial.py -> build/lib/easy_thumbnails/migrations
copying easy_thumbnails/migrations/0002_thumbnaildimensions.py -> build/lib/easy_thumbnails/migrations
creating build/lib/easy_thumbnails/management/commands
copying easy_thumbnails/management/commands/thumbnail_cleanup.py -> build/lib/easy_thumbnails/management/commands
copying easy_thumbnails/management/commands/__init__.py -> build/lib/easy_thumbnails/management/commands
running egg_info
writing easy_thumbnails.egg-info/PKG-INFO
writing dependency_links to easy_thumbnails.egg-info/dependency_links.txt
writing requirements to easy_thumbnails.egg-info/requires.txt
writing top-level names to easy_thumbnails.egg-info/top_level.txt
reading manifest file 'easy_thumbnails.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
warning: no files found matching 'AUTHORS'
no previously-included directories found matching 'docs/_build'
writing manifest file 'easy_thumbnails.egg-info/SOURCES.txt'
warning: build_py: byte-compiling is disabled, skipping.

running install_lib
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tmp/pip-install-042_z1b9/easy-thumbnails/setup.py", line 76, in <module>
zip_safe=False,
File "/home/martin/.local/share/virtualenvs/nablaweb-2TimVObB/lib/python3.6/site-packages/setuptools/__init__.py", line 145, in setup
return distutils.core.setup(**attrs)
File "/home/martin/anaconda3/lib/python3.6/distutils/core.py", line 148, in setup
dist.run_commands()
File "/home/martin/anaconda3/lib/python3.6/distutils/dist.py", line 955, in run_commands
self.run_command(cmd)
File "/home/martin/anaconda3/lib/python3.6/distutils/dist.py", line 974, in run_command
cmd_obj.run()
File "/home/martin/.local/share/virtualenvs/nablaweb-2TimVObB/lib/python3.6/site-packages/setuptools/command/install.py", line 61, in run
return orig.install.run(self)
File "/home/martin/anaconda3/lib/python3.6/distutils/command/install.py", line 557, in run
self.run_command(cmd_name)
File "/home/martin/anaconda3/lib/python3.6/distutils/cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "/home/martin/anaconda3/lib/python3.6/distutils/dist.py", line 973, in run_command
cmd_obj.ensure_finalized()
File "/home/martin/anaconda3/lib/python3.6/distutils/cmd.py", line 107, in ensure_finalized
self.finalize_options()
File "/home/martin/.local/share/virtualenvs/nablaweb-2TimVObB/lib/python3.6/site-packages/setuptools/command/install_lib.py", line 17, in finalize_options
self.set_undefined_options('install',('install_layout','install_layout'))
File "/home/martin/anaconda3/lib/python3.6/distutils/cmd.py", line 290, in set_undefined_options
setattr(self, dst_option, getattr(src_cmd_obj, src_option))
File "/home/martin/anaconda3/lib/python3.6/distutils/cmd.py", line 103, in __getattr__
raise AttributeError(attr)
AttributeError: install_layout
----------------------------------------
ERROR: Command errored out with exit status 1: /home/martin/.local/share/virtualenvs/nablaweb-2TimVObB/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-042_z1b9/easy-thumbnails/setup.py'"'"'; __file__='"'"'/tmp/pip-install-042_z1b9/easy-thumbnails/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-8t5srbd7/install-record.txt --single-version-externally-managed --compile --install-headers /home/martin/.local/share/virtualenvs/nablaweb-2TimVObB/include/site/python3.6/easy-thumbnails Check the logs for full command output.

我有 pipenv 版本 2020.8.13,并尝试通过 pyenv 和 conda 安装几个不同版本的 python 3.6(4、12、11)。同样的错误仍然存​​在,而我们无法在其他系统上重现该错误。我正在使用 Ubuntu

最佳答案

我一直在与 moto 依赖作斗争:

pipenv run pip install --upgrade setuptools 修复了这个问题。

然后 pipenv 安装 moto

关于python-3.x - 为 python 3.6 安装包时 Pipenv 失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/63818993/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com