Open mantaionut opened 3 months ago
@mantaionut,
I see the same thing in my pytorch install. I don't it actually effects anything though because the file itself is not set as being executable (that's why there's a .exe file next to it with a similar name).
Are you experience actual difficulties using pytorch because of this? I will bring this up with the pytorch team too.
@travishathaway there is currently an issue https://github.com/pytorch/pytorch/issues/108602 opened. I also reproduce it, when trying to use the torchrun .exe I will get failed to create process
. The workaround was to change the shebang of the .py file.
@mantaionut,
Thanks for the link. We will try to work together with the pytorch team to resolve this. There's a chance this may not be a conda issue, but I will leave this issue open until that can be determined for sure.
hi @mantaionut could you please provide some details which project does torchrun-script.py
script comes from ? Do you have a link ?
hi @mantaionut could you please provide some details which project does
torchrun-script.py
script comes from ? Do you have a link ?
Hi it is generated from entry_points https://github.com/pytorch/pytorch/blob/main/setup.py#L1098 https://github.com/pytorch/pytorch/blob/main/setup.py#L1479 together with convert-caffe2-to-onnx and convert-onnx-to-caffe2 which also have the same issue.
Hi there, thank you for your contribution!
This issue has been automatically marked as stale because it has not had recent activity. It will be closed automatically if no further activity occurs.
If you would like this issue to remain open please:
NOTE: If this issue was closed prematurely, please leave a comment.
Thanks!
Checklist
What happened?
If I install PyTorch with
conda install pytorch cpuonly -c pytorch
, in the Scripts/torchrun-script.py the shebang line will be #!C:\cb\PYTORC~1_h_env\python.exe which does not exist. I've been trying to debug it but I am confused on how it works. Should this line be replaced when installing the package? Is this a conda issue or PyTorch issue?Conda Info
Conda Config
Conda list
Additional Context
No response