ImportError: No module named stdio, any way to start fresh with python?
<p>I'm getting the error </p>

<pre><code>Traceback (most recent call last):
  File "ghs.py", line 1, in &lt;module&gt;
    import stdio
ImportError: No module named stdio
</code></pre>

<p>When I try to run my script. I can run my script on other machines just fine. I have installed python using homebrew. And I've tried everything I can think of to get it to recognize my modules! I've uninstalled and reinstalled using brew. I've tried changing the path (though I don't fully understand this). I get no issues using brew doctor. </p>

<p>I've also tried using a python virtual environment but to no avail.</p>

<p>Any ideas on how to fix this issue or else 'start fresh' from a fresh version of python?</p>

<p>When you import a module, Python looks for it at the directory your code is, and the directory in which the built-in libraries are (C:\Users\pc\AppData\Local\Programs\Python\Python35-32\Lib in my case, I'm using Windows 10 and Python 3.5). If it can't find it, it raises ImportError.</p>

<p>I couldn't find a module named stdio in my computer. I also know some C++ and as far as I know, stdio is the library for inputs and outputs(prints). In python, there is no need to import such a library.</p>

<p>You can use try,except statement to test if your code works without importing the module like this.</p>

<pre><code>try:
    import stdio
except:
    #rest of your code goes here
</code></pre>

<p>You will need to indent your whole code however this can be done easily with a text editor in which you can edit more than one line at a time.</p>

python