In this lesson, it is explained that “the best way to install packages is to use the command line and a program called pip.”. The exercise on the screen lets me practice with the
I am immediately trying to apply these new skills on my own laptop as well (in addition to the Dataquest play-ground at the right half of the screen), and (after some struggling to get pip to work in the first place), I now have the following:
What we can see on this screenshot:
- pip does confirm to me that the
requestspackage is installed
- pip, however, claims not to find the packages
However, I am very sure that those are installed on my laptop as well. Else I could never have completed many ‘guided projects’. And also on the screenshot you can see that according to Anaconda, matplotlib is installed.
Question: why would pip show the expected result for
requests, but not for other packages?
More in general, I am not sure how to manage packages. Via some internetting and from this post I understood that apparently there are two main ways, using
pip and using Anaconda. And that you best do not mix up those two.
Okay, point taken. Do note that while right now I am recommended to use
pip, in an earlier lesson Dataquest wrote “we strongly recommend installing the Anaconda distribution”. So that is why I ended up with the situation that I have now
So, in addition to my specific question above, any further advice on what I should do best to manage my “python work environment” (including packages) is very welcome!