Thanks for reaching out to us, could you please confirm you have install autotrain package successfully in your right environment?
Another possible reason is you may have same name with multiple folders which caused this issue. Something you can try is to create a New Environment (new_env),
Step1: Create a New Environment. Step2: Install the packages. Step3: Definitely it will work.
If you still have the same error, please check on below -
- Verify Existence: Confirm that "autotrain" is a legitimate line magic function and is part of the library you are using.
- Install and Load Extension: If "autotrain" is provided by an extension, ensure that you've installed the extension and loaded it into your notebook using
%load_ext
. For example: %load_ext myextension - Correct Environment: Make sure that the library providing "autotrain" is installed in the same Python environment that the notebook is using.
I hope this helps.
Regards,
Yutong
-Please kindly accept the answer if you feel helpful to support the community, thanks a lot.