Trying to make sense of why the code wont work when pip install