jupyter / notebook

Jupyter Interactive Notebook
https://jupyter-notebook.readthedocs.io/
BSD 3-Clause "New" or "Revised" License
11.65k stars 4.91k forks source link

ERROR: Command errored out with exit status 1: #5822

Open pekhenka opened 3 years ago

pekhenka commented 3 years ago

Trying to install jupyter with pip. Have problem:

ERROR: Command errored out with exit status 1: command: 'c:\python\python.exe' 'c:\python\lib\site-packages\pip_vendor\pep517_in_process.py' build_wheel 'C:\Users\user\AppData\Local\Temp\tmpb3gfhmqs' cwd: C:\Users\user\AppData\Local\Temp\pip-install-7r3brmmo\argon2-cffi Complete output (25 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 creating build\temp.win-amd64-3.9 creating build\temp.win-amd64-3.9\extras creating build\temp.win-amd64-3.9\extras\libargon2 creating build\temp.win-amd64-3.9\extras\libargon2\src creating build\temp.win-amd64-3.9\extras\libargon2\src\blake2 C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.27.29110\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -Iextras\libargon2\src..\include -Iextras\libargon2\src\blake2 -IC:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.27.29110\include /Tcextras\libargon2\src\argon2.c /Fobuild\temp.win-amd64-3.9\extras\libargon2\src\argon2.obj argon2.c extras\libargon2\src\argon2.c(18): fatal error C1083: ЌҐ г¤ Ґвбп ®вЄалвм д ©« ўЄ«о祭ЁҐ: string.h: No such file or directory, error: command 'C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.27.29110\bin\HostX86\x64\cl.exe' failed with exit code 2

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

kevin-bates commented 3 years ago

This post might prove helpful: https://discuss.codecademy.com/t/having-trouble-installing-jupyter-notebooks/537292

mhmt-cirak commented 3 years ago

I had this problem too, I solved it like this

the error i got

ges (from packaging-> bleach-> nbconvert-> notebook) (2.4.7) Using legacy 'setup.py install' for pywinpty, since package 'wheel' is not installed. Using legacy 'setup.py install' for pandocfilters, since package 'wheel' is not installed. Installing collected packages: pywinpty, pandocfilters, nbclient, mistune, jupyterlab-pygments, jinja2, entrypoints, defusedxml, bleach, terminado, Send2Trash, prometheus-client, nbconvert, ipykernel, argon2-cffi, notebook Running setup.py install for pywinpty ... error ERROR: Command errored out with exit status 1: ................................ .................. .... .. # Using legacy 'setup.py install' for pywinpty, since package 'wheel' is not installed. Using legacy 'setup.py install' for pandocfilters, since package 'wheel' is not installed. #

**solution for me pipwin install pywinpty pipwin install pandocfilters

solution for you pipwin install argon2**

why "argon2"? second way

a piece of your mistake

_Complete output (25 lines): running bdist_wheel running build running buildpy creating build creating build \ lib.win-amd64-3.9 creating build \ lib.win-amd64-3.9 \ argon2 # creating build \ lib.win-amd64-3.9 \ ............ #