Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Python Setting Up a Local Python Environment Installing Python and Python Libraries Locally Using pip

PIP comes up as Invalid Syntax

I have installed python34 on windows but when I enter pip i get a syntaxError.

1 Answer

Ryan Ruscett
Ryan Ruscett
23,309 Points

Hola,

You can see from my output that pip does not give a syntax error. Now if pip wasn't in the classPath you might have to go to python34/scripts/pip to run it.

A syntax errors indicates syntax. So it can find pip which is good. Perhaps you put a " pip" Space before or after "pip " the pip command. This would cause a syntax error.

C:\Windows\System32>pip

Usage:
  pip <command> [options]

Commands:
  install                     Install packages.
  uninstall                   Uninstall packages.
  freeze                      Output installed packages in requirements format.
  list                        List installed packages.
  show                        Show information about installed packages.
  search                      Search PyPI for packages.
  wheel                       Build wheels from your requirements.
  zip                         DEPRECATED. Zip individual packages.
  unzip                       DEPRECATED. Unzip individual packages.
  bundle                      DEPRECATED. Create pybundles.
  help                        Show help for commands.

TRY DOING THIS "pip list"

C:\Windows\System32>pip list
Django (1.8.3)
peewee (2.6.2)
pip (1.5.6)
setuptools (2.1)
urllib3 (1.11)\
etc
etc
etc

Do you also get a syntax error when typing?