Article
1 comment

Note to self: bash path hashing /o\

Did you ever stumble across something like this:

Yes, this is strange, isn’t it? The PATH variable is set in the correct order (this is why ‘which’ finds the local Python). Googling about this behavior at first didn’t bring up any solution. But then I came across this now closed question on Stackoverflow.

So once you know what you are looking for Google reveals lots and lots of people having trouble with path hashing. Now, my solution was quite simple:

 

1 Comment so far

  1. Hey Doc,
    if thy PATH would have been set to /iusr/local/bin:/usr/bin:…, a simple rehash (“hash-r”) should have done the trick. And, btw: you _really_ want virtualenv… ;-)
    All the best!

    Reply

Leave a Reply

Required fields are marked *.