Fix Python – “ERROR:root:code for hash md5 was not found” when using any hg mercurial commands

When trying to use any hg Mercurial commands on the console, I keep getting this error.
I installed Python using Homebrew and I am running Mac OS Catalina v. 10.15.1.
Any reference would be appreciated. Here is the error I’m getting:
hg commit –amend
ERROR:root:code for hash md5 was not found.
Traceback (most recent call last):
File “/usr/loca….

Fix Python – Cannot install Lxml on Mac OS X 10.9

I want to install Lxml so I can then install Scrapy.
When I updated my Mac today it wouldn’t let me reinstall lxml, I get the following error:
In file included from src/lxml/lxml.etree.c:314:
/private/tmp/pip_build_root/lxml/src/lxml/includes/etree_defs.h:9:10: fatal error: ‘libxml/xmlversion.h’ file not found
#include “libxml/xmlversion.h”
….

Fix Python – Broken references in Virtualenvs

I recently installed a bunch of dotfiles on my Mac along with some other applications (I changed to iTerm instead of Terminal, and Sublime as my default text editor) but ever since, all my virtual environments have stopped working, although their folders inside .virtualenvs are still there and they give the following error whenever I try to run an….

Fix Python – How to uninstall Python 2.7 on a Mac OS X 10.6.4?

I want to completely remove Python 2.7 from my Mac OS X 10.6.4. I managed to remove the entry from the PATH variable by reverting my .bash_profile. But I also want to remove all directories, files, symlinks, and entries that got installed by the Python 2.7 install package. I’ve got the install package from http://www.python.org/. What directories/….

Fix Python – How do I determine if my python shell is executing in 32bit or 64bit?

I need a way to tell what mode the shell is in from within the shell.
While I’m primarily an OS X user, I’d be interested in knowing about other platforms as well.
I’ve tried looking at the platform module but it seems only to tell you about “about the bit architecture and the linkage format used for the executable”: the binary is compiled as 64bi….