title: Python's Virtualenv
body: <p>I am using Virtualenv to learn Python. The author of the book I am reading wants no system wide access of Python available during learning, so we created a virtual environment via virtualenv. This is not built-in Python 3 virtual environment functionality, it is the pip virtualenv. It's an issue for me because I cannot figure out how to run a script while inside the virtualenv. Virtualenv's documentation reads that activation (or path naming) isn't required when running from within the virtual environment's directory and although I have moved my file both there and within the Scripts directory, I cannot run it while inside the virtualenv environment. Any help? I am using Python 3.6.1. The code I'm trying to run is:</p>
  
  <pre><code>def local():
      m=7
      print(m)
  
  m=5
  print(m)
  </code></pre>
  
  <p>I realize it's not even training wheel code, but what I'm trying to ultimately do is be able to run code from within the virtual environment to follow as the book suggests. I'm also using a fully updated Windows 10 OS.</p>
  
  <p>What happens when I run the script is this:</p>
  
  <pre><code>(.virtualenv) c:\users\aiii&gt; cd c:\users\aiii\desktop\learning.python\.virtualenv
  
  (.virtualenv) c:\users\aiii\desktop\learning.python\.lpvenv&gt;scopes1.py
  
  'scopes1.py' is not recognized as an internal or external command, operable program or batch file.
  
  (.virtualenv) c:\users\aiii\desktop\learning.python\.lpvenv&gt;python scopes1.py
  python: can't open file 'scopes1.py': [Errno 2] No such file or directory.
  
  (.virtualenv) c:\users\aiii\desktop\learning.python\.lpvenv&gt;
  </code></pre>
  
  <p>I have placed the script both directly in the learning.python folder where the environments are contained <code>c:\users\aiii\desktop\learning.python\.lpvenv</code> and inside the .lpvenv folder in the Scripts folder since that is where other scripts run from within the virtualenv pip are at <code>c:\users\aiii\Desktop\learning.python\.lpvenv\Scripts\</code></p>