我正在使用Django和Pipenv,遇到了一个无法使用“ pipenv install [package_name]”安装的软件包。我要安装的软件包是django-dynamic-formset。我尝试从pipenv shell运行此程序:“ pipenv install -e git + https://github.com/elo80ka/django-dynamic-formset@v1.1#egg=django-dynamic-formset”。我收到以下错误:
https://github.com/elo80ka/django-dynamic-formset
(src) (.venv) C:\Users\username\Documents\src>pipenv install -e git+https://github.com/elo80ka/django-dynamic-formset@v1.1#egg=django-dynamic-formset
Installing -e git+https://github.com/elo80ka/django-dynamic-formset@v1.1#egg=django-dynamic-formset…
Adding django-dynamic-formset to Pipfile's [packages]…
Installation Succeeded
Pipfile.lock (706c4a) out of date, updating to (0db539)…
Locking [dev-packages] dependencies…
Success!
Locking [packages] dependencies…
[= ] Pinning VCS Packages...error: pathspec 'v1.1' did not match any file(s) known to git
Traceback (most recent call last):
File "c:\users\username\appdata\local\programs\python\python37\lib\runpy.py", line 193, in _run_module_as_main
"__main__", mod_spec)
File "c:\users\username\appdata\local\programs\python\python37\lib\runpy.py", line 85, in _run_code
exec(code, run_globals)
File "C:\Users\username\AppData\Local\Programs\Python\Python37\Scripts\pipenv.exe\__main__.py", line 9, in <module>
File "c:\users\username\appdata\local\programs\python\python37\lib\site-packages\pipenv\vendor\click\core.py", line 764, in __call__
return self.main(*args, **kwargs)
File "c:\users\username\appdata\local\programs\python\python37\lib\site-packages\pipenv\vendor\click\core.py", line 717, in main
rv = self.invoke(ctx)
File "c:\users\username\appdata\local\programs\python\python37\lib\site-packages\pipenv\vendor\click\core.py", line 1137, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "c:\users\username\appdata\local\programs\python\python37\lib\site-packages\pipenv\vendor\click\core.py", line 956, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "c:\users\username\appdata\local\programs\python\python37\lib\site-packages\pipenv\vendor\click\core.py", line 555, in invoke
return callback(*args, **kwargs)
File "c:\users\username\appdata\local\programs\python\python37\lib\site-packages\pipenv\vendor\click\decorators.py", line 64, in new_func
return ctx.invoke(f, obj, *args, **kwargs)
File "c:\users\username\appdata\local\programs\python\python37\lib\site-packages\pipenv\vendor\click\core.py", line 555, in invoke
return callback(*args, **kwargs)
File "c:\users\username\appdata\local\programs\python\python37\lib\site-packages\pipenv\vendor\click\decorators.py", line 17, in new_func
return f(get_current_context(), *args, **kwargs)
File "c:\users\username\appdata\local\programs\python\python37\lib\site-packages\pipenv\cli\command.py", line 254, in install
editable_packages=state.installstate.editables,
File "c:\users\username\appdata\local\programs\python\python37\lib\site-packages\pipenv\core.py", line 1992, in do_install
skip_lock=skip_lock,
File "c:\users\username\appdata\local\programs\python\python37\lib\site-packages\pipenv\core.py", line 1221, in do_init
pypi_mirror=pypi_mirror,
File "c:\users\username\appdata\local\programs\python\python37\lib\site-packages\pipenv\core.py", line 1068, in do_lock
lockfile=lockfile
File "c:\users\username\appdata\local\programs\python\python37\lib\site-packages\pipenv\utils.py", line 626, in venv_resolve_deps
dev=dev,
File "c:\users\username\appdata\local\programs\python\python37\lib\site-packages\pipenv\utils.py", line 1311, in get_vcs_deps
with locked_repository(requirement) as repo:
File "c:\users\username\appdata\local\programs\python\python37\lib\contextlib.py", line 112, in __enter__
return next(self.gen)
File "c:\users\username\appdata\local\programs\python\python37\lib\site-packages\pipenv\utils.py", line 1447, in locked_repository
with requirement.req.locked_vcs_repo(src_dir=src_dir) as repo:
File "c:\users\username\appdata\local\programs\python\python37\lib\contextlib.py", line 112, in __enter__
return next(self.gen)
File "c:\users\username\appdata\local\programs\python\python37\lib\site-packages\pipenv\vendor\requirementslib\models\requirements.py", line 840, in locked_vcs_repo
vcsrepo = self.get_vcs_repo(src_dir=src_dir)
File "c:\users\username\appdata\local\programs\python\python37\lib\site-packages\pipenv\vendor\requirementslib\models\requirements.py", line 802, in get_vcs_repo
vcsrepo.obtain()
File "c:\users\username\appdata\local\programs\python\python37\lib\site-packages\pipenv\vendor\requirementslib\models\vcs.py", line 37, in obtain
self.repo_instance.obtain(self.checkout_directory)
File "c:\users\username\appdata\local\programs\python\python37\lib\site-packages\pipenv\patched\notpip\_internal\vcs\__init__.py", line 332, in obtain
self.fetch_new(dest, url, rev_options)
File "c:\users\username\appdata\local\programs\python\python37\lib\site-packages\pipenv\patched\notpip\_internal\vcs\git.py", line 209, in fetch_new
self.run_command(cmd_args, cwd=dest)
File "c:\users\username\appdata\local\programs\python\python37\lib\site-packages\pipenv\patched\notpip\_internal\vcs\__init__.py", line 456, in run_command
spinner=spinner)
File "c:\users\username\appdata\local\programs\python\python37\lib\site-packages\pipenv\patched\notpip\_internal\utils\misc.py", line 705, in call_subprocess
% (command_desc, proc.returncode, cwd))
pipenv.patched.notpip._internal.exceptions.InstallationError: Command "git checkout -q v1.1" failed with error code 1 in C:\Users\username\AppData\Local\Temp\requirementslib2vdxvac6\django-dynamic-formset