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
What directory are you attempting import from? Python automatically includes the current directory as a place it searches for packages, so if you are importing apex while you are directly in the apex directory (or even one level above I think) it may try to import directly from the repo folders instead of the install path. Make sure you are importing from a directory that is either several levels up or does not contain apex as a subdirectory. This gotcha can occur with any cloned repo containing Python code (including Pytorch itself, which happens to me occasionally).
Thank you for your reply.
After restarting Colab Notebook and deleting cloned repo, I succeeded to import apex.
It still fails if I just delete cloned repo. I don't know when it works or not...
Anyway, thank you for your advice.
I try to install apex for pytorch on Google Colab.
I followed the install directions as follows, and the install seem to succeed.
apex seem to be installed at:
but when I check sys.modules['apex'], this shows just namespace, not like other modules:
other modules show like this:
sys.path shows paths as follows:
Could someone help me out to set the right position to read apex?
The text was updated successfully, but these errors were encountered: