Absolute python beginner. I ran some code that screwed my project.
import sys
sys.path.append("..")
I assume “sys.path” is the search path for modules because whenever I run
import requests
I get ModuleNotFoundError: No module named ‘requests’ even though it’s installed. I tried uninstalling and reinstalling the requests module which didn’t work.
So, my questions: How do I fix this? Is there a better way to install python like on a virtual machine?
New contributor
Baldi is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.