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

Question:

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:usersprasaappdatalocalprogramspythonpython39python.exe' 'c:usersprasaappdatalocalprogramspythonpython39libsite-packagespip_vendorpep517_in_process.py' build_wheel 'C:UsersprasaAppDataLocalTemptmpcczeigwt'
       cwd: C:UsersprasaAppDataLocalTemppip-install-iele2h25argon2-cffi
  Complete output (17 lines):
  running bdist_wheel
  running build
  running build_py
  creating build
  creating buildlib.win-amd64-3.9
  creating buildlib.win-amd64-3.9argon2
  copying srcargon2exceptions.py -> buildlib.win-amd64-3.9argon2
  copying srcargon2low_level.py -> buildlib.win-amd64-3.9argon2
  copying srcargon2_ffi_build.py -> buildlib.win-amd64-3.9argon2
  copying srcargon2_legacy.py -> buildlib.win-amd64-3.9argon2
  copying srcargon2_password_hasher.py -> buildlib.win-amd64-3.9argon2
  copying srcargon2_utils.py -> buildlib.win-amd64-3.9argon2
  copying srcargon2__init__.py -> buildlib.win-amd64-3.9argon2
  copying srcargon2__main__.py -> buildlib.win-amd64-3.9argon2
  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 ?

Asked By: PrasadM96

||

Answers:

As the error indicates you need to download Microsoft Visual C++ 14.0 or greater.

Answered By: luisvenezian

I had the exact same issue as you. This is how I solved it.

I found the answer here: https://discuss.codecademy.com/t/having-trouble-installing-jupyter-notebooks/537292/2

You can use the link and follow the instructions if you’d like. I’ll also tell you how to do it here.

It’s an easy fix. The error is about the Microsoft Visual C++ being out of date. In the error it gives you the link for the update.

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/

Go to https://visualstudio.microsoft.com/visual-cpp-build-tools/ and click ‘Download Build Tools’ and install it.

Once it’s installed, you’ll see a few choices. Select ‘C++ build tools’ and install it. Restart your computer after it’s done. Then run pip install jupyter and you should be good!

Answered By: SqueakyPickle

In case if other people have problem and in their case that will work.

In my case I used:

py -3.8 -m pip install pyautogui

That gave me respond:

Python 3.8 not found!
Installed Pythons found by C:Windowspy.exe Launcher for Windows
 -3.9-64 *
 -3.7-64

So after I installed Python 3.8 once again used:

py -3.8 -m pip install pyautogui

Result:

Successfully installed PyTweening-1.0.3 mouseinfo-0.1.3 pyautogui-0.9.52 pygetwindow-0.0.9 pymsgbox-1.0.9 pyperclip-1.8.1 pyrect-0.1.4 pyscreeze-0.
Answered By: matt_dablu

P.S. The wheel is added now

Microsoft Visual C++ 14.2 standalone: Build Tools for Visual Studio 2019 (x86, x64, ARM, ARM64)

This is a standalone version of Visual C++ 14.2 compiler, you don’t need to install Visual Studio 2019.

  • Install Microsoft Build Tools for Visual Studio 2019.

  • In Build tools, install C++ build tools and ensure the latest
    versions of MSVCv142 – VS 2019 C++ x64/x86 build tools and Windows 10
    SDK are checked.

  • The setuptools Python package version must be at least 34.4.0.

Build Tools also allows us to install any previous Visual C++ 14 version (Including 2015, 2017 ones).

Source

1.11 GB Download size; Space 4.4 GB

Answered By: Smart Manoj

argon2-cffi is now shipping Python 3.9 wheels for Windows which should resolve your installation problem.

Answered By: hynek

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 🙂

Answered By: wingsforever

I had this problem on python 3.7.5 when I called

pip install jupyter

The solution was to first call

pip install argon2-cffi==20.1.0 

And then call

  pip install jupyter

I think the error is present in the newest version of argon2-cffi. Which is 21.1.0 https://pypi.org/project/argon2-cffi/21.1.0/#history

Answered By: Jens Wagemaker
Categories: questions Tags: ,
Answers are sorted by their score. The answer accepted by the question owner as the best is marked with
at the top-right corner.