Open MandiYang opened 3 years ago
you are missing the library can you please check on that
I installed scikit-learn and there is no module named sklearn.ensemble.forest but a module named sklearn.ensemble._forest so use that module instead. Tell me what library I am missing.
Not sure what exactly you are missing but it is working fine in my machine
Hi I am facing the same issue. Did you resolve it @MandiYang ? and Could you tell me which version of python did you use @mohd-tanveer ?
I used python 3, pandas, scikt-learn,numpy
https://stackoverflow.com/questions/65758102/no-module-name-sklearn-ensemble-forest
sklearn.ensemble.forest
was renamed tosklearn.ensemble._forest
in 437ca05 on Oct 16, 2019. You need to install an oldersklearn
. Try version 0.21.3 released on Jul 30, 2019:pip install -U scikit-learn==0.21.3
Please be warned that the authors provided wheels up to Python 3.7. For 3.8 or 3.9 you will need to compile from sources.
['E:/C and C++ Projects/Hello World.c'] file selected [['E:/C and C++ Projects/Hello World.c']] []
[['E:/C and C++ Projects/Hello World.c']]
in for loop c.dlroW olleH/stcejorP ++C dna C/:E Hello World.c
['Hello World.c'] [['E:/C and C++ Projects/Hello World.c']] ['Name', 'NumberOfSections', 'TimeDateStamp', 'PointerToSymbolTable', 'NumberOfSymbols', 'Characteristics', 'AddressOfEntryPoint', 'BaseOfCode', 'BaseOfData', 'CheckSum', 'DllCharacteristics', 'FileAlignment', 'ImageBase', 'MajorImageVersion', 'MajorLinkerVersion', 'MajorOperatingSystemVersion', 'MajorSubsystemVersion', 'MinorImageVersion', 'MinorLinkerVersion', 'MinorOperatingSystemVersion', 'MinorSubsystemVersion', 'NumberOfRvaAndSizes', 'SectionAlignment', 'SizeOfCode', 'SizeOfHeaders', 'SizeOfHeapReserve', 'ImageBase', 'SizeOfInitializedData', 'SizeOfStackCommit', 'SizeOfStackReserve', 'SizeOfUninitializedData', 'Subsystem', 'e_cparhdr', 'e_lfarlc', 'e_oeminfo', 'e_maxalloc', 'e_ip', 'e_lfanew', 'e_csum', 'e_ovno', 'e_minalloc', 'e_cp', 'e_cblp', 'e_sp', 'IMAGE_FILE_RELOCS_STRIPPED', 'IMAGE_FILE_LINE_NUMS_STRIPPED', 'IMAGE_FILE_LOCAL_SYMS_STRIPPED', 'IMAGE_FILE_BYTES_REVERSED_LO', 'IMAGE_FILE_DEBUG_STRIPPED', 'IMAGE_FILE_DLL', 'IMAGE_FILE_BYTES_REVERSED_HI', 'mal']
could not extract features
[Done] exited with code=3221226505 in 113.018 seconds
What does this mean???
@suryaingithub
['E:/C and C++ Projects/Hello World.c'] file selected [['E:/C and C++ Projects/Hello World.c']] []
[['E:/C and C++ Projects/Hello World.c']]
in for loop c.dlroW olleH/stcejorP ++C dna C/:E Hello World.c
['Hello World.c'] [['E:/C and C++ Projects/Hello World.c']] ['Name', 'NumberOfSections', 'TimeDateStamp', 'PointerToSymbolTable', 'NumberOfSymbols', 'Characteristics', 'AddressOfEntryPoint', 'BaseOfCode', 'BaseOfData', 'CheckSum', 'DllCharacteristics', 'FileAlignment', 'ImageBase', 'MajorImageVersion', 'MajorLinkerVersion', 'MajorOperatingSystemVersion', 'MajorSubsystemVersion', 'MinorImageVersion', 'MinorLinkerVersion', 'MinorOperatingSystemVersion', 'MinorSubsystemVersion', 'NumberOfRvaAndSizes', 'SectionAlignment', 'SizeOfCode', 'SizeOfHeaders', 'SizeOfHeapReserve', 'ImageBase', 'SizeOfInitializedData', 'SizeOfStackCommit', 'SizeOfStackReserve', 'SizeOfUninitializedData', 'Subsystem', 'e_cparhdr', 'e_lfarlc', 'e_oeminfo', 'e_maxalloc', 'e_ip', 'e_lfanew', 'e_csum', 'e_ovno', 'e_minalloc', 'e_cp', 'e_cblp', 'e_sp', 'IMAGE_FILE_RELOCS_STRIPPED', 'IMAGE_FILE_LINE_NUMS_STRIPPED', 'IMAGE_FILE_LOCAL_SYMS_STRIPPED', 'IMAGE_FILE_BYTES_REVERSED_LO', 'IMAGE_FILE_DEBUG_STRIPPED', 'IMAGE_FILE_DLL', 'IMAGE_FILE_BYTES_REVERSED_HI', 'mal']
could not extract features
[Done] exited with code=3221226505 in 113.018 seconds
What does this mean???
How is this relevant to the issue???
Traceback (most recent call last): File "/home/mandi/Downloads/Malware-detection-using-Machine-Learning-Algorithms-main/home_window.py", line 116, in scanMethod pred=classify(0,self.file) File "/home/mandi/Downloads/Malware-detection-using-Machine-Learning-Algorithms-main/one.py", line 68, in classify pred=classifier(df) File "/home/mandi/Downloads/Malware-detection-using-Machine-Learning-Algorithms-main/classifier.py", line 20, in classifier classifier= cPickle.load(fid) ModuleNotFoundError: No module named 'sklearn.ensemble.forest'
No module named
sklearn.ensemble.forest,
solution to the problem it's to use thesklearn.ensemble._forest
module instead.