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 Data Science Basics Getting Started with Data Science Installing Libraries

Liam Taylor
Liam Taylor
998 Points

pip list | grep "matplotlib*\|numpy*" just returns a new line

When I enter the pip list | grep "matplotlib*|numpy*" the console returns another line with flashing cursor, not the two library version numbers and names as displayed in the video. I am using workspaces, I have not yet tried on a local version. Any ideas?

2 Answers

Hi Liam, I found that someone else had asked this question a few years ago and got an answer: https://teamtreehouse.com/community/libraries-do-not-appear-in-console-as-they-do-in-video

Try that and see if it works. I found the answer by clicking on "Questions?" under the video. Personally I stopped using workspaces because there were too many problems. Good luck!

Liam Taylor
Liam Taylor
998 Points

Thank you for your help. That does look like the same issue. I think this is now a duplicate thread.

Sounds like they're not installed. You can try pip install matplotlib numpy to install them and then try the command again to verify.

Liam Taylor
Liam Taylor
998 Points

Thank you for getting back to me. I tried that command and recieved the following:

Requirement already satisfied: matplotlib in /usr/local/pyenv/versions/3.6.4/lib/python3.6/site-packages (1.5.0 )
Requirement already satisfied: numpy in /usr/local/pyenv/versions/3.6.4/lib/python3.6/site-packages (1.9.1)
Requirement already satisfied: python-dateutil in /usr/local/pyenv/versions/3.6.4/lib/python3.6/site-packages ( from matplotlib) (2.7.3)
Requirement already satisfied: pytz in /usr/local/pyenv/versions/3.6.4/lib/python3.6/site-packages (from matplo tlib) (2014.7) Requirement already satisfied: cycler in /usr/local/pyenv/versions/3.6.4/lib/python3.6/site-packages (from matp lotlib) (0.10.0)
Requirement already satisfied: pyparsing!=2.0.4,>=1.5.6 in /usr/local/pyenv/versions/3.6.4/lib/python3.6/site-p ackages (from matplotlib) (2.2.2)
Requirement already satisfied: six>=1.5 in /usr/local/pyenv/versions/3.6.4/lib/python3.6/site-packages (from py thon-dateutil->matplotlib) (1.11.0) Requirement already satisfied: cycler in /usr/local/pyenv/versions/3.6.4/lib/python3.6/site-packages (from matp lotlib) (0.10.0)
Requirement already satisfied: pyparsing!=2.0.4,>=1.5.6 in /usr/local/pyenv/versions/3.6.4/lib/python3.6/site-p ackages (from matplotlib) (2.2.2)
Requirement already satisfied: six>=1.5 in /usr/local/pyenv/versions/3.6.4/lib/python3.6/site-packages (from py thon-dateutil->matplotlib) (1.11.0)

I then tried the command in the title again and still only recieving a new line. I am probably missing something simple :(