-
Notifications
You must be signed in to change notification settings - Fork 42
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ModuleNotFoundError #7
Comments
+1 |
not work |
我在win7中使用绿色安装的pthon37也出现这个问题(绿色安装过程大概与https://www.cnblogs.com/hester/p/11321884.html 一致),但是将lib目录复制到python的Lib\site-packages目录下就可以了,python的Lib\site-packages目录是pip默认安装的位置,推测某些情况下python在import的时候可能无法在项目目录下查找,仅在pip安装目录查找,导致的这个问题。由于对python不是很了解,所以这个查找的具体机制不是很清楚,不知道怎么更优雅的解决,希望这个问题能够优雅的解决一下。 |
I found a way to solve the problem,You can copy the lib directory under the project root directory to the Lib or Lib\site-packages directory of pip, which may generally be under the python installation directory. |
It is commonly caused by the PYTHONPATH env. You can find the solution here. |
I got the same error: WARNING | lib.controller.loader:loadModule:45 - Failed modules: [] |
┌──(root💀kali)-[~/pocsploit]
└─# python3 pocsploit.py -iS "https://testphp.vulnweb.com/" -r "modules/" -t 100 --poc
Traceback (most recent call last):
File "/root/pocsploit/pocsploit.py", line 3, in
from lib.cli import main
ModuleNotFoundError: No module named 'lib.cli'
How to fix it
The text was updated successfully, but these errors were encountered: