brew reinstall python@2对于我现有的Python 2.7虚拟环境,运行不起作用。在他们里面仍然有
ERROR:root:prefor hash sha1 was not found错误。
我跑步后遇到了这个问题
brew upgrade openssl。解决方法是:
$ ls /usr/local/Cellar/openssl
…这表现了
1.0.2t
根据现有版本,运行:
$ brew switch openssl 1.0.2t
…这表现了
Cleaning /usr/local/Cellar/openssl/1.0.2tOpt link created for /usr/local/Cellar/openssl/1.0.2t
之后,在Python 2.7 virtualenv中运行以下命令:
(my-venv) $ python -c "import hashlib;m=hashlib.md5();print(m.hexdigest())"
…这表现了
d41d8cd98f00b204e9800998ecf8427e
没有更多的错误。



