Can't Find or create a new virtualenv
<p>I just got Python 3.5.2 and wanted to create a virtualenv.</p>

<p>I have done this before. Right now, I have a virtualenv on a Python2.7 project that I can still open with source bin/activate. </p>

<p>But try as I might, from /home, or from /path/to/virtualenv, or /path/to/virtualenv-$, with or without sudo and python prepended on the command line, I only get one response: no such file or directory.</p>

<p>This was with the -p flag so it would use 3.5.2, because 2.7.12 is still my default. If it is broken, why does the virtualenv I created for 2.7 still activate?</p>

<p>Then I tried pyvenv and venv (which I've never used before) from the 3.5.2 interpreter:</p>

<pre><code>&gt;&gt;&gt; pyvenv /home/malikarumi/Projects/aishah
Traceback (most recent call last):
File "&lt;stdin&gt;", line 1, in &lt;module&gt;
NameError: name 'pyvenv' is not defined
&gt;&gt;&gt; venv /home/malikarumi/Projects/aishah
Traceback (most recent call last):
File "&lt;stdin&gt;", line 1, in &lt;module&gt;
NameError: name 'venv' is not defined
</code></pre>

<p>and from bash:</p>

<pre><code>malikarumi@Tetuoan2:~$ malikarumi@Tetuoan2:/usr/local/bin$ python3.5    pyvenv ~/Projects/aishah
bash: malikarumi@Tetuoan2:/usr/local/bin$: No such file or directory
malikarumi@Tetuoan2:~$ malikarumi@Tetuoan2:/usr/local/bin$ python3.5 venv ~/Projects/aishah
bash: malikarumi@Tetuoan2:/usr/local/bin$: No such file or directory
</code></pre>

<p>What am I doing wrong?</p>

<h1>Using virtualenv</h1>

<p>First of all you should verify that virtualenv is really installed for Python 3.5:</p>

<p><code>python3.5 -m pip list</code></p>

<p>If it's not then install it either with the package manager of your distribution or by running <code>python3.5 -m pip install virtualenv</code>.</p>

<p>Then you can run <code>python3.5 -m virtualenv &lt;newvenv&gt;</code> and it should create a new virtualenv using Python 3.5 for you.</p>

<h1>Using venv that is already part of the standard library in Python 3.5</h1>

<p>Simply running <code>python3.5 -m venv &lt;newvenv&gt;</code> should do the job.</p>

python bash virtualenv python-venv