title: Is there a way to get PyCharm to create a virtualenv for a project in a project when creating a project?
body: <p>I want my working areas to be self-contained and independent.  For this reason, I'd like to be able to set up a virtualenv inside a project directory and have the project use it as I'm creating the project.</p>
  
  <p>Is this possible?</p>
  
  <p>To answer my own question: yes sort of. Here's the procedure I came up with:</p>
  
  <ol>
  <li><p>Select "Create New Project"</p></li>
  <li><p>Select "Create VirtualEnv" from the interpreter menu.</p></li>
  <li><p>Open a file browser to select the virtualenv location.</p></li>
  <li><p>Browse to the directory to contain the new <strong>project</strong>.</p></li>
  <li><p>Create a new directory. This will be the project directory.</p></li>
  <li><p>Create a new directory for the virtialenv</p></li>
  <li><p>Click OK</p></li>
  <li><p>Select the parent of the virtualenv as the project directory.</p></li>
  <li><p>Click Create</p></li>
  <li><p>PyCharm complains that the directory isn't empty and offers to use existing sources.</p></li>
  <li><p>Select "No".</p></li>
  </ol>
  
  <p>At that point, there's a new project containing the virtualenv.</p>
  
  <p>I guess this isn't too bad, but I wonder if there's a better way.</p>