title: jupyter notebook setup failed with “TypeError: __call__() takes exactly 2 arguments (1 given)”
body: <p>I installed jupiter with pip and run </p>
  
  <pre><code>jupyter notebook
  </code></pre>
  
  <p>Then I got this mistakes:</p>
  
  <pre><code>Traceback (most recent call last):
    File "/usr/local/bin/jupyter-notebook", line 11, in &lt;module&gt;
      sys.exit(main())
    File "/Library/Python/2.7/site-packages/jupyter_core/application.py", line 267, in launch_instance
      return super(JupyterApp, cls).launch_instance(argv=argv, **kwargs)
    File "/Library/Python/2.7/site-packages/traitlets/config/application.py", line 657, in launch_instance
      app.initialize(argv)
    File "&lt;decorator-gen-7&gt;", line 2, in initialize
    File "/Library/Python/2.7/site-packages/traitlets/config/application.py", line 87, in catch_config_error
      return method(app, *args, **kwargs)
    File "/Library/Python/2.7/site-packages/notebook/notebookapp.py", line 1136, in initialize
      super(NotebookApp, self).initialize(argv)
    File "&lt;decorator-gen-6&gt;", line 2, in initialize
    File "/Library/Python/2.7/site-packages/traitlets/config/application.py", line 87, in catch_config_error
      return method(app, *args, **kwargs)
    File "/Library/Python/2.7/site-packages/jupyter_core/application.py", line 243, in initialize
      self.migrate_config()
    File "/Library/Python/2.7/site-packages/jupyter_core/application.py", line 162, in migrate_config
      from .migrate import get_ipython_dir, migrate
    File "/Library/Python/2.7/site-packages/jupyter_core/migrate.py", line 35, in &lt;module&gt;
      from IPython.paths import get_ipython_dir
    File "/Library/Python/2.7/site-packages/IPython/__init__.py", line 49, in &lt;module&gt;
      from .terminal.embed import embed
    File "/Library/Python/2.7/site-packages/IPython/terminal/embed.py", line 18, in &lt;module&gt;
      from IPython.terminal.interactiveshell import TerminalInteractiveShell
    File "/Library/Python/2.7/site-packages/IPython/terminal/interactiveshell.py", line 93, in &lt;module&gt;
      class TerminalInteractiveShell(InteractiveShell):
    File "/Library/Python/2.7/site-packages/IPython/terminal/interactiveshell.py", line 138, in TerminalInteractiveShell
      highlighting: \n %s""" % ', '.join(get_all_styles())
    File "/Library/Python/2.7/site-packages/pygments/styles/__init__.py", line 79, in get_all_styles
      for name, _ in find_plugin_styles():
    File "/Library/Python/2.7/site-packages/pygments/plugin.py", line 62, in find_plugin_styles
      for entrypoint in iter_entry_points(STYLE_ENTRY_POINT):
    File "/Library/Python/2.7/site-packages/pygments/plugin.py", line 45, in iter_entry_points
      import pkg_resources
    File "/Library/Python/2.7/site-packages/pkg_resources/__init__.py", line 72, in &lt;module&gt;
      import packaging.requirements
    File "/Library/Python/2.7/site-packages/packaging/requirements.py", line 59, in &lt;module&gt;
      MARKER_EXPR = originalTextFor(MARKER_EXPR())("marker")
  TypeError: __call__() takes exactly 2 arguments (1 given)
  </code></pre>
  
  <p>Anyone know how to fix it?
  I have searched it on google, but nothing is helpful on this particular issue.</p>