zshell pip can't find package autobahn[serialization]
<p>I was trying to install <code>serialization</code> variant of autobahn. However, when I do that in <code>zsh</code>, I get an error. </p>

<p><code>zsh: no matches found: autobahn[serialization]</code></p>

<p>However, as soon as I use <code>bash</code>, it works. Below is my command line log:</p>

<pre><code>kapil@kapil-linux ~                                                                                                                                                                                 

    [23:59:19] 
&gt; $ pip install autobahn[serialization]                                                                                                                                                                           
zsh: no matches found: autobahn[serialization]

kapil@kapil-linux ~                                                                                                                                                                                     [23:59:25] 
&gt; $ bash                                                                                                                                                                                                          
[kapil@kapil-linux ~]$ pip install autobahn[serialization]
Collecting autobahn[serialization]
  Using cached autobahn-0.16.0-py2.py3-none-any.whl
Requirement already satisfied (use --upgrade to upgrade): six&gt;=1.10.0 in ./anaconda2/lib/python2.7/site-packages (from autobahn[serialization])
Requirement already satisfied (use --upgrade to upgrade): txaio&gt;=2.5.1 in ./anaconda2/lib/python2.7/site-packages (from autobahn[serialization])
Requirement already satisfied (use --upgrade to upgrade): u-msgpack-python&gt;=2.1; extra == "serialization" in ./anaconda2/lib/python2.7/site-packages (from autobahn[serialization])
Requirement already satisfied (use --upgrade to upgrade): py-ubjson&gt;=0.8.4; extra == "serialization" in ./anaconda2/lib/python2.7/site-packages (from autobahn[serialization])
Requirement already satisfied (use --upgrade to upgrade): cbor&gt;=1.0.0; extra == "serialization" in ./anaconda2/lib/python2.7/site-packages (from autobahn[serialization])
Installing collected packages: autobahn
Successfully installed autobahn-0.16.0
[kapil@kapil-linux ~]$ pip install --upgrade --force-reinstall autobahn[serialization]
Collecting autobahn[serialization]
  Using cached autobahn-0.16.0-py2.py3-none-any.whl
Collecting six&gt;=1.10.0 (from autobahn[serialization])
  Using cached six-1.10.0-py2.py3-none-any.whl
Collecting txaio&gt;=2.5.1 (from autobahn[serialization])
  Using cached txaio-2.5.1-py2.py3-none-any.whl
Collecting u-msgpack-python&gt;=2.1; extra == "serialization" (from autobahn[serialization])
Collecting py-ubjson&gt;=0.8.4; extra == "serialization" (from autobahn[serialization])
Collecting cbor&gt;=1.0.0; extra == "serialization" (from autobahn[serialization])
Installing collected packages: six, txaio, u-msgpack-python, py-ubjson, cbor, autobahn
  Found existing installation: six 1.10.0
    Uninstalling six-1.10.0:
      Successfully uninstalled six-1.10.0
  Found existing installation: txaio 2.5.1
    Uninstalling txaio-2.5.1:
      Successfully uninstalled txaio-2.5.1
  Found existing installation: u-msgpack-python 2.1
    Uninstalling u-msgpack-python-2.1:
      Successfully uninstalled u-msgpack-python-2.1
  Found existing installation: py-ubjson 0.8.5
    Uninstalling py-ubjson-0.8.5:
      Successfully uninstalled py-ubjson-0.8.5
  Found existing installation: cbor 1.0.0
    Uninstalling cbor-1.0.0:
      Successfully uninstalled cbor-1.0.0
  Found existing installation: autobahn 0.16.0
    Uninstalling autobahn-0.16.0:
      Successfully uninstalled autobahn-0.16.0
Successfully installed autobahn-0.16.0 cbor-1.0.0 py-ubjson-0.8.5 six-1.10.0 txaio-2.5.1 u-msgpack-python-2.1
[kapil@kapil-linux ~]$ exit
exit

kapil@kapil-linux ~                                                                                                                                                                                      [0:00:27] 
&gt; $ pip install autobahn[serialization]                                                                                                                                                                           
zsh: no matches found: autobahn[serialization]
</code></pre>

<p>I don't understand what might be going on with zsh.</p>

<p>Also, here is the output of my <code>which pip</code>:</p>

<pre><code>&gt; $ which pip                                                                                                                                                                                                     
~/anaconda2/bin/pip                                                                                                                                                                                                                
kapil@kapil-linux ~                                                                                                                                                                                      [0:18:24] 
&gt; $ bash                                                                                                                                                                                                          
[kapil@kapil-linux ~]$ which pip
~/anaconda2/bin/pip
[kapil@kapil-linux ~]$ 
</code></pre>

<p>Square brackets are special characters in zsh, you can escape them with backslash:</p>

<pre><code>pip install autobahn\[serialization\]
</code></pre>

<p>Or <a href="http://kinopyo.com/en/blog/escape-square-bracket-by-default-in-zsh" rel="nofollow">escape square brackets by default in zsh</a>.</p>

python pip zsh autobahn msgpack