在 python 终端中使用路径时出现问题
Problem when using a path in python terminal
我正在尝试使用 PyInstaller,但我 运行 在使用我的路径时遇到了一些问题。我的路径是C:\Users00036755\OneDrive - Fulton County Schools\Documents\Code\Python\PyGame\snake.py
。每次我尝试将路径输入终端时,我都会得到这个结果。
~/C:\Users00036755\OneDrive : The term '~/C:\Users00036755\OneDrive' is not
recognized as the name of a cmdlet, function, script file, or operable program.
Check the spelling of the name, or if a path was included, verify that the path is
correct and try again.
At line:1 char:1
+ ~/C:\Users00036755\OneDrive - Fulton County Schools\Documents\Code ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (~/C:\Users00036755\OneDrive:Strin
g) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
路径走不通,也不能改名。有解决办法吗?我使用的命令是 cd C:\Users...
如果路径中有空格,请用引号括起来
cd "C:\Users00036755\OneDrive - Fulton County Schools\Documents\Code\Python\PyGame\snake.py"
我正在尝试使用 PyInstaller,但我 运行 在使用我的路径时遇到了一些问题。我的路径是C:\Users00036755\OneDrive - Fulton County Schools\Documents\Code\Python\PyGame\snake.py
。每次我尝试将路径输入终端时,我都会得到这个结果。
~/C:\Users00036755\OneDrive : The term '~/C:\Users00036755\OneDrive' is not
recognized as the name of a cmdlet, function, script file, or operable program.
Check the spelling of the name, or if a path was included, verify that the path is
correct and try again.
At line:1 char:1
+ ~/C:\Users00036755\OneDrive - Fulton County Schools\Documents\Code ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (~/C:\Users00036755\OneDrive:Strin
g) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
路径走不通,也不能改名。有解决办法吗?我使用的命令是 cd C:\Users...
如果路径中有空格,请用引号括起来
cd "C:\Users00036755\OneDrive - Fulton County Schools\Documents\Code\Python\PyGame\snake.py"