We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
python
If using the DDP distributed_backend, the program breaks if python refers to python2 or does not exist.
python2
Steps to reproduce the behavior:
python3
The problem lies at https://github.com/PyTorchLightning/pytorch-lightning/blob/0697dd306d578f0cd3c4d23b768da0106e54a095/pytorch_lightning/trainer/distrib_data_parallel.py#L422 The python command is hardcoded here. On many systems, python is a symlink to python2, or does not exist.
The text was updated successfully, but these errors were encountered:
Hi! thanks for your contribution!, great first issue!
Sorry, something went wrong.
Same question!!!!!
it is based on your default python... @kl0211 @RitchieAlpha mind send a Pr which updating the actual python interpreter? cc: @williamFalcon
@Borda I just saw #2482. Using sys.executable is exactly what I was going to suggest. According to https://www.python.org/dev/peps/pep-0394/#for-python-script-publishers, this should ensure the same interpreter is used to spawn the child processes.
sys.executable
Thanks for the quick change!
Successfully merging a pull request may close this issue.
🐛 Bug
If using the DDP distributed_backend, the program breaks if
python
refers topython2
or does not exist.To Reproduce
Steps to reproduce the behavior:
python
command does not link topython3
, such as on Ubuntu 18.04.Additional context
The problem lies at https://github.com/PyTorchLightning/pytorch-lightning/blob/0697dd306d578f0cd3c4d23b768da0106e54a095/pytorch_lightning/trainer/distrib_data_parallel.py#L422 The
python
command is hardcoded here. On many systems,python
is a symlink topython2
, or does not exist.The text was updated successfully, but these errors were encountered: