0

我对 tinytex 有很大的问题。当我试图编织我的文档时,它说 R 找不到“pdflatex”。所以我试图重新安装它,但这让事情变得更糟!我现在什至无法正确安装 tinytex。

最近我安装了 Python 并在 PATH 中更改了一些内容。那么,也许问题就在这里?这是我的错误:

tlmgr search --file --global "/setspace.sty"
Use of uninitialized value $ver in scalar chomp at C:/Users/Fabi/AppData/Roaming/TinyTeX/tlpkg/TeXLive/TLWinGoo.pm line 194.
Use of uninitialized value $ver in substitution (s///) at C:/Users/Fabi/AppData/Roaming/TinyTeX/tlpkg/TeXLive/TLWinGoo.pm line 195.
Use of uninitialized value $ver in substitution (s///) at C:/Users/Fabi/AppData/Roaming/TinyTeX/tlpkg/TeXLive/TLWinGoo.pm line 195.
Can't spawn "cmd.exe": No such file or directory at C:/Users/Fabi/AppData/Roaming/TinyTeX/tlpkg/TeXLive/TLUtils.pm line 2708.
Setting up tar with C:/Users/Fabi/AppData/Roaming/TinyTeX/tlpkg/installer/tar.exe as C:\Users\Fabi\AppData\Roaming\TinyTeX\tlpkg\installer\tar.exe didn't work
Can't spawn "cmd.exe": No such file or directory at C:/Users/Fabi/AppData/Roaming/TinyTeX/tlpkg/TeXLive/TLUtils.pm line 2691.
Can't spawn "cmd.exe": No such file or directory at C:/Users/Fabi/AppData/Roaming/TinyTeX/tlpkg/TeXLive/TLUtils.pm line 2691.
Can't spawn "cmd.exe": No such file or directory at C:/Users/Fabi/AppData/Roaming/TinyTeX/tlpkg/TeXLive/TLUtils.pm line 2708.
Setting up curl with C:/Users/Fabi/AppData/Roaming/TinyTeX/tlpkg/installer/curl/curl.exe as C:\Users\Fabi\AppData\Roaming\TinyTeX\tlpkg\installer\curl\curl.exe didn't work
Can't spawn "cmd.exe": No such file or directory at C:/Users/Fabi/AppData/Roaming/TinyTeX/tlpkg/TeXLive/TLUtils.pm line 2691.
Can't spawn "cmd.exe": No such file or directory at C:/Users/Fabi/AppData/Roaming/TinyTeX/tlpkg/TeXLive/TLUtils.pm line 2708.
Setting up wget with C:/Users/Fabi/AppData/Roaming/TinyTeX/tlpkg/installer/wget/wget.exe as C:\Users\Fabi\AppData\Roaming\TinyTeX\tlpkg\installer\wget\wget.exe didn't work
Can't spawn "cmd.exe": No such file or directory at C:/Users/Fabi/AppData/Roaming/TinyTeX/tlpkg/TeXLive/TLUtils.pm line 2691.
Can't spawn "cmd.exe": No such file or directory at C:/Users/Fabi/AppData/Roaming/TinyTeX/tlpkg/TeXLive/TLUtils.pm line 2708.
Setting up lz4 with C:/Users/Fabi/AppData/Roaming/TinyTeX/tlpkg/installer/lz4/lz4.exe as C:\Users\Fabi\AppData\Roaming\TinyTeX\tlpkg\installer\lz4\lz4.exe didn't work
Can't spawn "cmd.exe": No such file or directory at C:/Users/Fabi/AppData/Roaming/TinyTeX/tlpkg/TeXLive/TLUtils.pm line 2691.
Can't spawn "cmd.exe": No such file or directory at C:/Users/Fabi/AppData/Roaming/TinyTeX/tlpkg/TeXLive/TLUtils.pm line 2691.
Can't spawn "cmd.exe": No such file or directory at C:/Users/Fabi/AppData/Roaming/TinyTeX/tlpkg/TeXLive/TLUtils.pm line 2708.
Setting up xz with C:/Users/Fabi/AppData/Roaming/TinyTeX/tlpkg/installer/xz/xz.exe as C:\Users\Fabi\AppData\Roaming\TinyTeX\tlpkg\installer\xz\xz.exe didn't work
cannot contact mirror.ctan.org, returning a backbone server!

C:\Users\Fabi\AppData\Roaming\TinyTeX\texmf-dist\scripts\texlive\tlmgr.pl: TLPDB::from_file could not initialize from: https://www.ctan.org/tex-archive/systems/texlive/tlnet/tlpkg/texlive.tlpdb
C:\Users\Fabi\AppData\Roaming\TinyTeX\texmf-dist\scripts\texlive\tlmgr.pl: Maybe the repository setting should be changed.
C:\Users\Fabi\AppData\Roaming\TinyTeX\texmf-dist\scripts\texlive\tlmgr.pl: More info: https://tug.org/texlive/acquire.html
! LaTeX Error: File `setspace.sty' not found.

! Emergency stop.
<read *>
4

1 回答 1

0

我发现了问题!这是环境变量中我的 PATH 的问题。我添加了 system32 的路径,tlmgr 可以启动 cmd 来下载所有丢失的包。

于 2021-06-17T17:33:06.000 回答