Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

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 :(