osdir.com


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Broken pip


On Wed, Aug 29, 2018 at 4:37 AM, Michael F. Stemper
<michael.stemper at gmail.com> wrote:
> On 2018-08-28 13:19, Larry Martell wrote:
>> On Tue, Aug 28, 2018 at 2:10 PM, Michael F. Stemper
>> <michael.stemper at gmail.com> wrote:
>>>
>>> I'm trying to upgrade my pip on Ubuntu 16.04. I appear to have
>>> buggered things up pretty well. (Details follow) Any suggestions
>>> on how to undo this and get everything back to proper operation?
>
>> Try doing this:
>>
>> sudo python -m pip uninstall pip
>> sudo apt remove python-pip
>> sudo apt install python-pip
>> source .bashrc
>
> I'm certainly more comfortable with apt than with pip (probably
> due to longer experience).
>
> What's that last bit, though? From what I can find on-line, it looks as
> if it would be similar to:
> . ~/.bashrc
> but I don't quite understand the point of doing that *after* all of
> the other stuff.

The dot is an alias for "source", so it's identical (assuming you're
in your home directory). I'm not sure what the point of it is, but
maybe it's ensuring that your $PATH is set correctly.

ChrisA