c# .net Adsense ADO.NET Linq Viruses/security asp.net MVC JQuery Angular-js Node-js SEO Java C++ SQL API Networking vb.net .Net Css JavaScript Generics c#.Net entity framework HTML Website host Website Construction Guide HTTP tutorial W3C tutorial Web Services JSON Psychology Ionic framework Angular ReactJS Python Computer Android
Python

ModuleNotFoundError: No module named 'whois' in Python GoviralHost Without Terminal

| | python

I got the following error while running the website. "ModuleNotFoundError: No module named 'whois' "

SOLUTION:

pip install python-whois

I m using goviralhost shared hosting. I don't have assess for terminal. So I created a file named "install_pyScript.py" and run the command.


import subprocess


try:
# Run the pip install command
subprocess.check_call(['pip', 'install', 'python-whois'])
print("Installed successfully.")
except Exception as e:
print(f"Error installing whois: {e}")

VIDEO GUIDE: