Search code examples
pythonjupyter

Jupyter Notebook installation error - Building wheel for argon2-cffi (PEP 517) ... error


Building wheels for collected packages: argon2-cffi
  Building wheel for argon2-cffi (PEP 517) ... error
  ERROR: Command errored out with exit status 1:
   command: 'c:\users\prasa\appdata\local\programs\python\python39\python.exe' 'c:\users\prasa\appdata\local\programs\python\python39\lib\site-packages\pip\_vendor\pep517\_in_process.py' build_wheel 'C:\Users\prasa\AppData\Local\Temp\tmpcczeigwt'
       cwd: C:\Users\prasa\AppData\Local\Temp\pip-install-iele2h25\argon2-cffi
  Complete output (17 lines):
  running bdist_wheel
  running build
  running build_py
  creating build
  creating build\lib.win-amd64-3.9
  creating build\lib.win-amd64-3.9\argon2
  copying src\argon2\exceptions.py -> build\lib.win-amd64-3.9\argon2
  copying src\argon2\low_level.py -> build\lib.win-amd64-3.9\argon2
  copying src\argon2\_ffi_build.py -> build\lib.win-amd64-3.9\argon2
  copying src\argon2\_legacy.py -> build\lib.win-amd64-3.9\argon2
  copying src\argon2\_password_hasher.py -> build\lib.win-amd64-3.9\argon2
  copying src\argon2\_utils.py -> build\lib.win-amd64-3.9\argon2
  copying src\argon2\__init__.py -> build\lib.win-amd64-3.9\argon2
  copying src\argon2\__main__.py -> build\lib.win-amd64-3.9\argon2
  running build_clib
  building 'argon2' library
  error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/
  ----------------------------------------
  ERROR: Failed building wheel for argon2-cffi
Failed to build argon2-cffi
ERROR: Could not build wheels for argon2-cffi which use PEP 517 and cannot be installed directly

I installed python 3.9 on my computer. When I try to install jupyter notebook I got this error. SO how to solve this issue ?


Solution

  • In case, you are a mac user on Intel CPUs, just check your pip version, if you are installing through the command :

    pip install notebook
    

    Upgrade your PIP, the command that worked for me:

    /Library/Developer/CommandLineTools/usr/bin/python3 -m pip install --upgrade pip
    

    Check if its the latest version of PIP , by using command :

    pip --version
    

    After this again, try :

    pip install notebook
    

    This time you should not see any error.

    Then include ~/Library/Python/3.8/bin in your path variable. Check if its there by :

    echo $PATH
    

    And then launch the jupyter notebook by command :

    jupyter notebook
    

    Pls upvote, if you found this answer useful :)