P4D-Data-Sciences
P4D-Data-Sciences copied to clipboard
Enabling Progress in Pip.InstallOptions causes a PIP install error
Likely an issue with Lightweight-Python-Wrappers but discovered via this project which makes it easy to replicate
- Delete P4D-Data-Sciences\demos\PyTorch\PyTorchTransferLearning\bin\python directory (if it exists)
- Load P4D-Data-Sciences\demos\PyTorch\PyTorchTransferLearning\install\ThumbsUpDownPythonInstall.dproj
- Click on the PyTorch component
- Expand the Managers -> Pip -> InstallOptions branch
- Enable Progress
- Run
At this stage (1) exists so delete it to repeat.
It appears a file lock is placed on the executable after it breaks so recompilation requires removal of the compiled exe.
Relevant output sample
-> torch installation failed. Command error: 2 - Usage:
C:\DelphiComponents\P4D-Data-Sciences\demos\PyTorch\PyTorchTransferLearning\bin\python\3.8\python.exe -m pip install [options][package-index-options] ... C:\DelphiComponents\P4D-Data-Sciences\demos\PyTorch\PyTorchTransferLearning\bin\python\3.8\python.exe -m pip install [options] -r [package-index-options] ... C:\DelphiComponents\P4D-Data-Sciences\demos\PyTorch\PyTorchTransferLearning\bin\python\3.8\python.exe -m pip install [options] [-e] ... C:\DelphiComponents\P4D-Data-Sciences\demos\PyTorch\PyTorchTransferLearning\bin\python\3.8\python.exe -m pip install [options] [-e] ... C:\DelphiComponents\P4D-Data-Sciences\demos\PyTorch\PyTorchTransferLearning\bin\python\3.8\python.exe -m pip install [options] <archive url/path> ... option --progress-bar: invalid choice: '--extra-index-url' (choose from 'off', 'on', 'ascii', 'pretty', 'emoji')
Hi @peardox,
can you attach a sample application reproducing this issue?
@peardox, I'm able to reproduce your issue, then attaching a sample application is not necessary. I will investigate this case and give you a feedback.
Thanks @lmbelo