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 trialY. Kravets
10,350 Pointspip installed but bash claims there is no such command as pip
Hi, so I m trying to follow the steps in installing pip and using it for package downloads. Despite claiming that pip is actually installed on my local machine it doesn't seem to allow me to use it. Any ideas why that might be the case?
Yevgens-MacBook-Pro:~ yevgenkravets$ pip3
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.
General Options: -h, --help Show help. -v, --verbose Give more output. Option is additive, and can be used up to 3 times. -V, --version Show version and exit. -q, --quiet Give less output. --log-file <path> Path to a verbose non-appending log, that only logs failures. This log is active by default at /Users/yevgenkravets/.pip/pip.log. --log <path> Path to a verbose appending log. This log is inactive by default. --proxy <proxy> Specify a proxy in the form [user:passwd@]proxy.server:port. --timeout <sec> Set the socket timeout (default 15 seconds). --exists-action <action> Default action when a path already exists: (s)witch, (i)gnore, (w)ipe, (b)ackup. --cert <path> Path to alternate CA bundle.
Yevgens-MacBook-Pro:~ yevgenkravets$ pip install requests -bash: pip: command not found
Yevgens-MacBook-Pro:~ yevgenkravets$ pip --help -bash: pip: command not found
Yevgens-MacBook-Pro:~ yevgenkravets$
3 Answers
John Hill
Front End Web Development Techdegree Graduate 35,236 PointsYou may have to upgrade pip:
pip3 install --upgrade pip
I upgraded from version 6.0.8 to 7.1.0 and now I can simply use 'pip' instead of 'pip3'
Shunji Lin
12,896 PointsI don't know why 'pip' is not working, but it works when I use 'pip3' instead
Liviu Tudor
7,061 Pointssame here
pip install is not working ..... but...
pip3 install .....works
Cena Mayo
55,236 Pointspip3 is just the more recent version of pip and is the default for Python 3.x.
This is a good overview for Python and pip on MacOSX.
Cena Mayo
55,236 PointsCena Mayo
55,236 PointsIt's likely a path issue. See this Stack Overflow thread, ignoring the easy_install comments, and look at the first one that discusses the path. Make sure that you adjust the path to match yours (for example, they're using python 2.6, and you're probably using 2.7+).