请问在pipenv install -r requirements.txt
这一步报错要怎么解决?网上搜了半天一点有关的都没搜到
报错信息如下:
C:\swordbot-main>pipenv install -r requirements.txt
Traceback (most recent call last):
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python311\Lib\site-
packages\pipenv\vendor\click\core.py", line 1053, in main
rv = self.invoke(ctx)
^^^^^^^^^^^^^^^^
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python311\Lib\site-
packages\pipenv\vendor\click\core.py", line 1659, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python311\Lib\site-
packages\pipenv\vendor\click\core.py", line 1395, in invoke
return ctx.invoke(self.callback, **ctx.params)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python311\Lib\site-
packages\pipenv\vendor\click\core.py", line 754, in invoke
return __callback(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python311\Lib\site-
packages\pipenv\vendor\click\decorators.py", line 84, in new_func
return ctx.invoke(f, obj, *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python311\Lib\site-
packages\pipenv\vendor\click\core.py", line 754, in invoke
return __callback(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python311\Lib\site-
packages\pipenv\cli\command.py", line 239, in install
do_install(
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python311\Lib\site-
packages\pipenv\core.py", line 2144, in do_install
ensure_project(
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python311\Lib\site-
packages\pipenv\core.py", line 584, in ensure_project
ensure_pipfile(
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python311\Lib\site-
packages\pipenv\core.py", line 236, in ensure_pipfile
raise exceptions.PipenvOptionsError(
pipenv.exceptions.PipenvOptionsError: ERROR:: --system is intended to be used fo
r pre-existing Pipfile installation, not installation of specific packages. Abor
ting.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "<frozen runpy>", line 198, in _run_module_as_main
File "<frozen runpy>", line 88, in _run_code
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python311\Scripts\p
ipenv.exe\__main__.py", line 7, in <module>
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python311\Lib\site-
packages\pipenv\vendor\click\core.py", line 1128, in __call__
return self.main(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python311\Lib\site-
packages\pipenv\cli\options.py", line 57, in main
return super().main(*args, **kwargs, windows_expand_args=False)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python311\Lib\site-
packages\pipenv\vendor\click\core.py", line 1070, in main
e.show()
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python311\Lib\site-
packages\pipenv\exceptions.py", line 172, in show
click.echo(self.ctx.get_usage() + "\n%s" % hint, file=file, color=color)
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python311\Lib\site-
packages\pipenv\vendor\click\utils.py", line 298, in echo
file.write(out) # type: ignore
^^^^^^^^^^^^^^^
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python311\Lib\site-
packages\pipenv\vendor\vistir\misc.py", line 994, in write
return io.TextIOWrapper.write(self, to_text(x, errors=self._errors))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
io.UnsupportedOperation: not writable
C:\swordbot-main>pipenv install -r requirements.txt
Traceback (most recent call last):
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python311\Lib\site-
packages\pipenv\vendor\click\core.py", line 1053, in main
rv = self.invoke(ctx)
^^^^^^^^^^^^^^^^
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python311\Lib\site-
packages\pipenv\vendor\click\core.py", line 1659, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python311\Lib\site-
packages\pipenv\vendor\click\core.py", line 1395, in invoke
return ctx.invoke(self.callback, **ctx.params)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python311\Lib\site-
packages\pipenv\vendor\click\core.py", line 754, in invoke
return __callback(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python311\Lib\site-
packages\pipenv\vendor\click\decorators.py", line 84, in new_func
return ctx.invoke(f, obj, *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python311\Lib\site-
packages\pipenv\vendor\click\core.py", line 754, in invoke
return __callback(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python311\Lib\site-
packages\pipenv\cli\command.py", line 239, in install
do_install(
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python311\Lib\site-
packages\pipenv\core.py", line 2144, in do_install
ensure_project(
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python311\Lib\site-
packages\pipenv\core.py", line 584, in ensure_project
ensure_pipfile(
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python311\Lib\site-
packages\pipenv\core.py", line 236, in ensure_pipfile
raise exceptions.PipenvOptionsError(
pipenv.exceptions.PipenvOptionsError: ERROR:: --system is intended to be used fo
r pre-existing Pipfile installation, not installation of specific packages. Abor
ting.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "<frozen runpy>", line 198, in _run_module_as_main
File "<frozen runpy>", line 88, in _run_code
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python311\Scripts\p
ipenv.exe\__main__.py", line 7, in <module>
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python311\Lib\site-
packages\pipenv\vendor\click\core.py", line 1128, in __call__
return self.main(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python311\Lib\site-
packages\pipenv\cli\options.py", line 57, in main
return super().main(*args, **kwargs, windows_expand_args=False)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python311\Lib\site-
packages\pipenv\vendor\click\core.py", line 1070, in main
e.show()
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python311\Lib\site-
packages\pipenv\exceptions.py", line 172, in show
click.echo(self.ctx.get_usage() + "\n%s" % hint, file=file, color=color)
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python311\Lib\site-
packages\pipenv\vendor\click\utils.py", line 298, in echo
file.write(out) # type: ignore
^^^^^^^^^^^^^^^
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python311\Lib\site-
packages\pipenv\vendor\vistir\misc.py", line 994, in write
return io.TextIOWrapper.write(self, to_text(x, errors=self._errors))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
io.UnsupportedOperation: not writable
C:\swordbot-main>pipenv install -r requirements.txt
Traceback (most recent call last):
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python311\Lib\site-
packages\pipenv\vendor\click\core.py", line 1053, in main
rv = self.invoke(ctx)
^^^^^^^^^^^^^^^^
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python311\Lib\site-
packages\pipenv\vendor\click\core.py", line 1659, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python311\Lib\site-
packages\pipenv\vendor\click\core.py", line 1395, in invoke
return ctx.invoke(self.callback, **ctx.params)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python311\Lib\site-
packages\pipenv\vendor\click\core.py", line 754, in invoke
return __callback(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python311\Lib\site-
packages\pipenv\vendor\click\decorators.py", line 84, in new_func
return ctx.invoke(f, obj, *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python311\Lib\site-
packages\pipenv\vendor\click\core.py", line 754, in invoke
return __callback(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python311\Lib\site-
packages\pipenv\cli\command.py", line 239, in install
do_install(
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python311\Lib\site-
packages\pipenv\core.py", line 2144, in do_install
ensure_project(
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python311\Lib\site-
packages\pipenv\core.py", line 584, in ensure_project
ensure_pipfile(
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python311\Lib\site-
packages\pipenv\core.py", line 236, in ensure_pipfile
raise exceptions.PipenvOptionsError(
pipenv.exceptions.PipenvOptionsError: ERROR:: --system is intended to be used fo
r pre-existing Pipfile installation, not installation of specific packages. Abor
ting.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "<frozen runpy>", line 198, in _run_module_as_main
File "<frozen runpy>", line 88, in _run_code
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python311\Scripts\p
ipenv.exe\__main__.py", line 7, in <module>
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python311\Lib\site-
packages\pipenv\vendor\click\core.py", line 1128, in __call__
return self.main(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python311\Lib\site-
packages\pipenv\cli\options.py", line 57, in main
return super().main(*args, **kwargs, windows_expand_args=False)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python311\Lib\site-
packages\pipenv\vendor\click\core.py", line 1070, in main
e.show()
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python311\Lib\site-
packages\pipenv\exceptions.py", line 172, in show
click.echo(self.ctx.get_usage() + "\n%s" % hint, file=file, color=color)
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python311\Lib\site-
packages\pipenv\vendor\click\utils.py", line 298, in echo
file.write(out) # type: ignore
^^^^^^^^^^^^^^^
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python311\Lib\site-
packages\pipenv\vendor\vistir\misc.py", line 994, in write
return io.TextIOWrapper.write(self, to_text(x, errors=self._errors))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
io.UnsupportedOperation: not writable
Python版本是3.11
麻烦大佬看一下