Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/python/339.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/windows/14.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Python sagetex:SyntaxError:(unicode错误)'UnicodeScape'编解码器无法解码位置2-3的字节:截断\UXXXXXXXX转义_Python_Windows_Command Line_Latex_Sage - Fatal编程技术网

Python sagetex:SyntaxError:(unicode错误)'UnicodeScape'编解码器无法解码位置2-3的字节:截断\UXXXXXXXX转义

Python sagetex:SyntaxError:(unicode错误)'UnicodeScape'编解码器无法解码位置2-3的字节:截断\UXXXXXXXX转义,python,windows,command-line,latex,sage,Python,Windows,Command Line,Latex,Sage,在Windows 10上,尝试执行以下命令时 "C:/Program Files/SageMath 9.1/runtime/bin/bash" -l "C:/Program Files/SageMath 9.1/runtime/opt/sagemath-9.1/sage" -c "os.chdir('C:\Users\Diaa\Desktop\Test'); load('testsagetex.sagetex.sage')" 我得到以

在Windows 10上,尝试执行以下命令时

"C:/Program Files/SageMath 9.1/runtime/bin/bash" -l "C:/Program Files/SageMath 9.1/runtime/opt/sagemath-9.1/sage" -c "os.chdir('C:\Users\Diaa\Desktop\Test'); load('testsagetex.sagetex.sage')"
我得到以下错误

SyntaxError:unicode错误“UnicodeScape”编解码器无法解码字节 在位置2-3:截断\uxxxxx转义

答案也帮不了我解决它


那么,如果知道可以找到完整的输出,那么这里有什么错误或遗漏。

您链接到的问题回答了这个问题。试试os.chdirr'C:\Users\Diaa\Desktop\Test'