Microsoft Windows [版本 10.0.18363.1256]
(c) 2019 Microsoft Corporation. 著作權所有,並保留一切權利。
(Line_K) C:\Users\William\PycharmProjects\Line_K>pipenv update
Courtesy Notice: Pipenv found itself running within a virtual environment, so it will automatically use that environment, instead of creating its own for any project. You can set PIPENV
_IGNORE_VIRTUALENVS=1 to force pipenv to ignore that environment and create its own instead. You can set PIPENV_VERBOSITY=-1 to suppress this warning.
Running $ pipenv lock then $ pipenv sync.
Traceback (most recent call last):
File "c:\users\william\appdata\local\programs\python\python37\lib\site-packages\pipenv\project.py", line 567, in _parse_pipfile
return tomlkit.parse(contents)
File "c:\users\william\appdata\local\programs\python\python37\lib\site-packages\pipenv\vendor\tomlkit\api.py", line 49, in parse
return Parser(string).parse()
File "c:\users\william\appdata\local\programs\python\python37\lib\site-packages\pipenv\vendor\tomlkit\parser.py", line 146, in parse
key, value = self._parse_table()
File "c:\users\william\appdata\local\programs\python\python37\lib\site-packages\pipenv\vendor\tomlkit\parser.py", line 1056, in _parse_table
table.raw_append(_key, item)
File "c:\users\william\appdata\local\programs\python\python37\lib\site-packages\pipenv\vendor\tomlkit\items.py", line 937, in raw_append
self._value.append(key, _item)
File "c:\users\william\appdata\local\programs\python\python37\lib\site-packages\pipenv\vendor\tomlkit\container.py", line 144, in append
raise KeyAlreadyPresent(key)
tomlkit.exceptions.KeyAlreadyPresent: Key "'matplotlib'" already exists.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "c:\users\william\appdata\local\programs\python\python37\lib\site-packages\pipenv\vendor\toml\decoder.py", line 511, in loads
multibackslash)
File "c:\users\william\appdata\local\programs\python\python37\lib\site-packages\pipenv\vendor\toml\decoder.py", line 780, in load_line
raise ValueError("Duplicate keys!")
ValueError: Duplicate keys!
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "c:\users\william\appdata\local\programs\python\python37\lib\runpy.py", line 193, in _run_module_as_main
"main", mod_spec)
File "c:\users\william\appdata\local\programs\python\python37\lib\runpy.py", line 85, in run_code
exec(code, run_globals)
File "C:\Users\William\AppData\Local\Programs\Python\Python37\Scripts\pipenv.exe_main.py", line 7, in
File "c:\users\william\appdata\local\programs\python\python37\lib\site-packages\pipenv\vendor\click\core.py", line 829, in call
return self.main(*args, **kwargs)
File "c:\users\william\appdata\local\programs\python\python37\lib\site-packages\pipenv\vendor\click\core.py", line 782, in main
rv = self.invoke(ctx)
File "c:\users\william\appdata\local\programs\python\python37\lib\site-packages\pipenv\vendor\click\core.py", line 1259, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "c:\users\william\appdata\local\programs\python\python37\lib\site-packages\pipenv\vendor\click\core.py", line 1066, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "c:\users\william\appdata\local\programs\python\python37\lib\site-packages\pipenv\vendor\click\core.py", line 610, in invoke
return callback(*args, **kwargs)
File "c:\users\william\appdata\local\programs\python\python37\lib\site-packages\pipenv\vendor\click\decorators.py", line 73, in new_func
return ctx.invoke(f, obj, *args, **kwargs)
File "c:\users\william\appdata\local\programs\python\python37\lib\site-packages\pipenv\vendor\click\core.py", line 610, in invoke
return callback(*args, **kwargs)
File "c:\users\william\appdata\local\programs\python\python37\lib\site-packages\pipenv\vendor\click\decorators.py", line 21, in new_func
return f(get_current_context(), *args, **kwargs)
File "c:\users\william\appdata\local\programs\python\python37\lib\site-packages\pipenv\cli\command.py", line 591, in update
write=not state.quiet,
File "c:\users\william\appdata\local\programs\python\python37\lib\site-packages\pipenv\core.py", line 1064, in do_lock
pre = project.settings.get("allow_prereleases")
File "c:\users\william\appdata\local\programs\python\python37\lib\site-packages\pipenv\project.py", line 601, in settings
return self.parsed_pipfile.get("pipenv", {})
File "c:\users\william\appdata\local\programs\python\python37\lib\site-packages\pipenv\project.py", line 544, in parsed_pipfile
parsed = self._parse_pipfile(contents)
File "c:\users\william\appdata\local\programs\python\python37\lib\site-packages\pipenv\project.py", line 571, in _parse_pipfile
return toml.loads(contents)
File "c:\users\william\appdata\local\programs\python\python37\lib\site-packages\pipenv\vendor\toml\decoder.py", line 513, in loads
raise TomlDecodeError(str(err), original, pos)
toml.decoder.TomlDecodeError: Duplicate keys! (line 14 column 1 char 165)
(Line_K) C:\Users\William\PycharmProjects\Line_K>