I recently got the code of a Pycharm project from my classmate, and then opened it on my computer and reported an error: Cannot load module file xxx.iml: File xxx.iml doed not exist. Would you like to remove module’xxxx’ from the project? At this time, the directory structure of the entire project is incomplete, and some files cannot be displayed. The reason for the correction may be that the project name was changed by the classmate when he gave me the project, or the project he gave me was not at the same level as the project directory he used (for example, what he copied to me was under a large project code Subprojects), causing problems.
There are two final solutions:
One way is to click File in the upper left corner of the Pycharm software, then click Invalidate Caches / Restart…, and then click Invalidate and Restart after the pop-up dialog box to wait for the project to reload, the problem is solved.
Another method is to delete the .idea folder in the project directory when the project is closed, and then reopen the problem with Pycharm to solve the problem. In addition, some friends may use Pycharm under the Linux platform. The .idea folder is hidden and cannot be seen directly. Then you can use the la command to view the files under the project, and then execute the command rm -r .idea.
Read More:
- Failed to load bundle…Unable to resolve module `xxx` from xxx: Module `xx` does not exist
- [unable to read project file xxxxx, XXX failed to load project file, name cannot start with “<" character (hex value 0x3c)] exception handling method
- The processing method after deleting idea’s. IML file by mistake
- R load(xxx.Rdata) Error bad restore file magic number (file may be corrupted) — no data loaded
- [Solved] KEIL Error: source file ‘.XXX.o‘ – object file renamed from ‘XXX.o‘ to …
- [solution] a perfect solution to the problem of failed to load module “Canberra GTK module” in Ubuntu
- (EE) Failed to load module “fbdev” (module does not exist, 0)
- How to Fix Gtk-Message: Failed to load module “canberra-gtk-module”
- Memtrack: couldn’t load memtrack module (no such file or directory)
- Chrome console reports Failed to load resource: net::ERR_BLOCKED_BY_CLIENT one of the solutions
- Solutions to the failure of importing Python 3.7 SSL module
- As Error:Failed to find configured root that contains /storage/emulated/0/xxx/xxx/xxx.png
- After Android studio is installed, open a pop-up window to prompt failed to load JVM DLL XXX
- Failed to load image from file “* * *. Png“
- tensorflow import error: DLL load failed: The specified module could not be found (DLL load failed: The specified module could not be found)
- Typescript error “Cannot write file xxx because it would overwrite input file
- ModuleNotFoundError: No module named xxx
- Securityerror: error ᦇ 2148: SWF file XXX cannot access local resources, only file system only
- Vue project startup error: cannot find module XXX
- ImportError: DLL load failed while importing xxx: The specified program could not be found.