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

前端 未结 4 1035
梦如初夏
梦如初夏 2021-01-12 08:30

Hello I read Django tutorials and I have an error related to specific sha3_224 hash function during the migration process. How to solve this problem? Thank you.

相关标签:
4条回答
  • 2021-01-12 08:52

    !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

    0 讨论(0)
  • 2021-01-12 08:58

    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.

    0 讨论(0)
  • 2021-01-12 09:02

    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.

    0 讨论(0)
  • 2021-01-12 09:04

    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.

    0 讨论(0)
提交回复
热议问题