Django migration with python3.6 ERROR:root:code for hash sha3_224 was not found

為{幸葍}努か 提交于 2019-12-01 04:22:57
Emin Temiz

This solved my issue:

cd /usr/bin
sudo cp python3.6 python3

Previously I had 3.6.2, after doing apt-upgrade the system was broken.

Check if your python has been updated recently. The venv might be pointing to the old one, recreating venv fixed it for us.

Running mkvirtualenv venv or virtualenv venv (depending on how you created it in the first place) should also work while keeping the installed packages.

!Mind it is really hot fix!

This issue appears in new version of python - 3.6.3.

Downgrade to 3.6.2 helped me

Here is legacy PPA: https://launchpad.net/~fkrull/+archive/ubuntu/deadsnakes/+index?batch=75&direction=backwards&start=75

Commands for further actions of downgrading python:

sudo apt install libpython3.6-minimal=3.6.2-1+xenial1 sudo apt install python3.6-minimal=3.6.2-1+xenial1 sudo apt install python3.6-stdlib=3.6.2-1+xenial1 sudo apt install python3.6=3.6.2-1+xenial1

This happened to me after upgrading to 3.6.3 Try create new virtualenv with Python 3.6.3 or newer. This solved the problem for me.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!