You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Nov 2, 2026. It is now read-only.
Repository navigation
This repository was archived by the owner on Nov 2, 2026. It is now read-only.
'cp' is not recognized as an internal or external command (on Windows) #644
Description:
When attempting to create a custom LoRA model using FaceChain on a Windows system, the process fails with the following error (train_style/demo.py):
'cp' is not recognized as an internal or external command, operable program or batch file.
This happens because FaceChain internally invokes a Python command like:
os.system('cp {} {}'.format(file_path, new_path))
However, the cp command is Unix/Linux specific and is not available in the Windows command prompt.
Expected Behavior:
The FaceChain process should copy files correctly and complete the creation of the custom LoRA model on any supported platform, including Windows.
Suggested Fix:
Update the code to use a cross-platform solution like Python’s shutil.copy instead of the cp shell command:
Activity