I am new to Python and try to install Jupyter Notebook from within a Windows command prompt window using:
pip install jupyter
But after a couple of minutes of downloading, an error message is displayed as shown below:
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing wheel metadata ... error
ERROR: Command errored out with exit status 1:
command: 'c:usersasdappdatalocalprogramspythonpython38-32python.exe
' 'c:usersasdappdatalocalprogramspythonpython38-32libsite-packagespip
_vendorpep517_in_process.py' prepare_metadata_for_build_wheel 'C:UsersasdAp
pDataLocalTemptmpnj_hhq6y'
cwd: C:UsersasdAppDataLocalTemppip-install-_pnki5r8pywinpty
Complete output (6 lines):
Cargo, the Rust package manager, is not installed or is not on PATH.
This package requires Rust and Cargo to compile extensions. Install it through
the system's package manager or via https://rustup.rs/
Checking for Rust toolchain....
----------------------------------------
ERROR: Command errored out with exit status 1: 'c:usersasdappdatalocalprogr
amspythonpython38-32python.exe' 'c:usersasdappdatalocalprogramspythonp
ython38-32libsite-packagespip_vendorpep517_in_process.py' prepare_metadata
_for_build_wheel 'C:UsersasdAppDataLocalTemptmpnj_hhq6y' Check the logs for
full command output.
WARNING: You are using pip version 20.2.1; however, version 21.1 is available.
You should consider upgrading via the 'c:usersasdappdatalocalprogramspytho
npython38-32python.exe -m pip install --upgrade pip' command.
I have attached here just the last part of the error output.
How to fix this error for a successful installation of Jupyter Notebook?
EDIT1: I installed the Rust package from the link in the error message. After that I tried installing Jupyter Notebook once again, and this time after proceeding a few steps further than before, it output another error:
Building wheels for collected packages: pywinpty
Building wheel for pywinpty (PEP 517) ... - WARNING: Subprocess output does
not appear to be encoded as cp1252
WARNING: Subprocess output does not appear to be encoded as cp1252
error
ERROR: Command errored out with exit status 1:
command: 'c:usersasdappdatalocalprogramspythonpython38-32python.exe'
'c:usersasdappdatalocalprogramspythonpython38-32libsite-packagespip_v
endorpep517_in_process.py' build_wheel 'C:UsersasdAppDataLocalTemptmpaj5
u66_y'
cwd: C:UsersasdAppDataLocalTemppip-install-mep4ye8dpywinpty
Complete output (60 lines):
Running `maturin pep517 build-wheel -i c:usersasdappdatalocalprogramspyt
honpython38-32python.exe`
Compiling proc-macro2 v1.0.26
Compiling unicode-xid v0.2.2
Compiling syn v1.0.71
Compiling winapi v0.3.9
Compiling jobserver v0.1.22
error: could not compile `proc-macro2`
To learn more, run the command again with --verbose.
warning: build failed, waiting for other jobs to finish...
error: build failed
dY'¥ maturin failed
Caused by: Failed to build a native library through cargo
Caused by: Cargo build finished with "exit code: 101": `cargo rustc --messag
e-format json --manifest-path Cargo.toml --release --lib --`
dYx8d1 Building a mixed python/rust project
dY"- Found pyo3 bindings
dYx90x8d Found CPython 3.8 at c:usersasdappdatalocalprogramspythonpyt
hon38-32python.exe
error: linker `link.exe` not found
|
= note: The system cannot find the file specified. (os error 2)
note: the msvc targets depend on the msvc linker but `link.exe` was not found
note: please ensure that VS 2013, VS 2015, VS 2017 or VS 2019 was installed wi
th the Visual C++ option
error: aborting due to previous error
error: linker `link.exe` not found
|
= note: The system cannot find the file specified. (os error 2)
note: the msvc targets depend on the msvc linker but `link.exe` was not found
note: please ensure that VS 2013, VS 2015, VS 2017 or VS 2019 was installed wi
th the Visual C++ option
error: aborting due to previous error
error: linker `link.exe` not found
|
= note: The system cannot find the file specified. (os error 2)
note: the msvc targets depend on the msvc linker but `link.exe` was not found
note: please ensure that VS 2013, VS 2015, VS 2017 or VS 2019 was installed wi
th the Visual C++ option
error: aborting due to previous error
Error: command ['maturin', 'pep517', 'build-wheel', '-i', 'c:\users\asd\app
data\local\programs\python\python38-32\python.exe'] returned non-zero exit
status 1
----------------------------------------
ERROR: Failed building wheel for pywinpty
Failed to build pywinpty
ERROR: Could not build wheels for pywinpty which use PEP 517 and cannot be insta
lled directly
WARNING: You are using pip version 20.2.1; however, version 21.1 is available.
You should consider upgrading via the 'c:usersasdappdatalocalprogramspytho
npython38-32python.exe -m pip install --upgrade pip' command.
I want to install jupyter on Win 10. I have been using python on linux, but this is my first time on Win 10.
when I execute python -m pip install jupyter on administrator, I got errors like this:
The package setup script has attempted to modify files on your system
that are not within the EasyInstall build area, and has been aborted.
This package cannot be safely installed by EasyInstall, and may not
support alternate installation locations even if you run its setup
script by hand. Please inform the package’s author and the EasyInstall
maintainers to find out if a fix or workaround is available.
any idea?
![]()
Isaac Gomes
4001 gold badge5 silver badges15 bronze badges
asked Oct 24, 2019 at 1:47
2
I have been able to get around this error by installing Anaconda, uninstalling Python 3.8.0 and installing Python 3.7.5 instead.
The Jupyter installation then ran successfully when I executed pip install jupyter with Git Bash in my C: drive using pip 19.2.3 (the default with Python 3.7.5).
answered Oct 24, 2019 at 12:53
For those who encounter this and need to use Python 3.8+, make sure to update you setuptools to version 42.0.0 (or later).
answered Nov 24, 2019 at 23:41
robertoroberto
3,5532 gold badges28 silver badges30 bronze badges
Install a version earlier than python 3.8 and the installation will work. Use CMD.
![]()
answered Nov 18, 2019 at 2:58
I had the same problem, I am using 64-bit windows 10 but downloaded the 32-bit python installer because it is the default that appears on the ‘downloads’ page on the python.org site. Uninstalled python 3.8.1, downloaded the 64-bit installer instead, and then ran ‘pip install jupyterlab’ using the pip version 19.2.3 that got installed with the 64-bit python instead of upgrading to pip version 19.3.1. So if you are running a 64-bit version of windows, make sure you download the 64-bit python installer!
answered Jan 17, 2020 at 3:15
I want to install jupyter on Win 10. I have been using python on linux, but this is my first time on Win 10.
when I execute python -m pip install jupyter on administrator, I got errors like this:
The package setup script has attempted to modify files on your system
that are not within the EasyInstall build area, and has been aborted.
This package cannot be safely installed by EasyInstall, and may not
support alternate installation locations even if you run its setup
script by hand. Please inform the package’s author and the EasyInstall
maintainers to find out if a fix or workaround is available.
any idea?
![]()
Isaac Gomes
4001 gold badge5 silver badges15 bronze badges
asked Oct 24, 2019 at 1:47
2
I have been able to get around this error by installing Anaconda, uninstalling Python 3.8.0 and installing Python 3.7.5 instead.
The Jupyter installation then ran successfully when I executed pip install jupyter with Git Bash in my C: drive using pip 19.2.3 (the default with Python 3.7.5).
answered Oct 24, 2019 at 12:53
For those who encounter this and need to use Python 3.8+, make sure to update you setuptools to version 42.0.0 (or later).
answered Nov 24, 2019 at 23:41
robertoroberto
3,5532 gold badges28 silver badges30 bronze badges
Install a version earlier than python 3.8 and the installation will work. Use CMD.
![]()
answered Nov 18, 2019 at 2:58
I had the same problem, I am using 64-bit windows 10 but downloaded the 32-bit python installer because it is the default that appears on the ‘downloads’ page on the python.org site. Uninstalled python 3.8.1, downloaded the 64-bit installer instead, and then ran ‘pip install jupyterlab’ using the pip version 19.2.3 that got installed with the 64-bit python instead of upgrading to pip version 19.3.1. So if you are running a 64-bit version of windows, make sure you download the 64-bit python installer!
answered Jan 17, 2020 at 3:15
Я пытаюсь установить jupyter на свой Mac, но при установке возникают ошибки.
Команды, используемые для установки:
pip install jupyterlab
pip install notebook
Оба дают похожие ошибки.
Я признаю, что использую бета-версию ОС, поэтому я бы не стал жаловаться, если она не поддерживается, просто прошу убедиться, что это не какие-то глупые пользовательские ошибки.
Показанные ошибки:
Defaulting to user installation because normal site-packages is not writeable
Collecting notebook
Using cached notebook-6.1.4-py3-none-any.whl (9.5 MB)
Collecting traitlets>=4.2.1
Using cached traitlets-5.0.4-py3-none-any.whl (98 kB)
Collecting prometheus-client
Using cached prometheus_client-0.8.0-py2.py3-none-any.whl (53 kB)
Collecting argon2-cffi
Using cached argon2-cffi-20.1.0.tar.gz (1.8 MB)
Installing build dependencies ... error
ERROR: Command errored out with exit status 1:
command: /Applications/Xcode.app/Contents/Developer/usr/bin/python3 /Users/yagami/Library/Python/3.8/lib/python/site-packages/pip install --ignore-installed --no-user --prefix /private/var/folders/g0/d04hk18n311bj7rw6j_r__9h0000gn/T/pip-build-env-62k24twj/overlay --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- 'setuptools>=40.6.0' wheel 'cffi>=1.0'
cwd: None
Complete output (288 lines):
Collecting setuptools>=40.6.0
Using cached setuptools-50.3.0-py3-none-any.whl (785 kB)
Collecting wheel
Using cached wheel-0.35.1-py2.py3-none-any.whl (33 kB)
Collecting cffi>=1.0
Using cached cffi-1.14.3.tar.gz (470 kB)
Collecting pycparser
Using cached pycparser-2.20-py2.py3-none-any.whl (112 kB)
Building wheels for collected packages: cffi
Building wheel for cffi (setup.py): started
Building wheel for cffi (setup.py): finished with status 'error'
ERROR: Command errored out with exit status 1:
command: /Applications/Xcode.app/Contents/Developer/usr/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/g0/d04hk18n311bj7rw6j_r__9h0000gn/T/pip-install-xgpxryh0/cffi/setup.py'"'"'; __file__='"'"'/private/var/folders/g0/d04hk18n311bj7rw6j_r__9h0000gn/T/pip-install-xgpxryh0/cffi/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'rn'"'"', '"'"'n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d /private/var/folders/g0/d04hk18n311bj7rw6j_r__9h0000gn/T/pip-wheel-0obo4jsw
cwd: /private/var/folders/g0/d04hk18n311bj7rw6j_r__9h0000gn/T/pip-install-xgpxryh0/cffi/
Complete output (130 lines):
running bdist_wheel
running build
running build_py
creating build
creating build/lib.macosx-10.14.6-x86_64-3.8
creating build/lib.macosx-10.14.6-x86_64-3.8/cffi
copying cffi/backend_ctypes.py -> build/lib.macosx-10.14.6-x86_64-3.8/cffi
copying cffi/error.py -> build/lib.macosx-10.14.6-x86_64-3.8/cffi
copying cffi/setuptools_ext.py -> build/lib.macosx-10.14.6-x86_64-3.8/cffi
copying cffi/__init__.py -> build/lib.macosx-10.14.6-x86_64-3.8/cffi
copying cffi/cffi_opcode.py -> build/lib.macosx-10.14.6-x86_64-3.8/cffi
copying cffi/vengine_gen.py -> build/lib.macosx-10.14.6-x86_64-3.8/cffi
copying cffi/pkgconfig.py -> build/lib.macosx-10.14.6-x86_64-3.8/cffi
copying cffi/model.py -> build/lib.macosx-10.14.6-x86_64-3.8/cffi
copying cffi/ffiplatform.py -> build/lib.macosx-10.14.6-x86_64-3.8/cffi
copying cffi/api.py -> build/lib.macosx-10.14.6-x86_64-3.8/cffi
copying cffi/vengine_cpy.py -> build/lib.macosx-10.14.6-x86_64-3.8/cffi
copying cffi/commontypes.py -> build/lib.macosx-10.14.6-x86_64-3.8/cffi
copying cffi/lock.py -> build/lib.macosx-10.14.6-x86_64-3.8/cffi
copying cffi/recompiler.py -> build/lib.macosx-10.14.6-x86_64-3.8/cffi
copying cffi/cparser.py -> build/lib.macosx-10.14.6-x86_64-3.8/cffi
copying cffi/verifier.py -> build/lib.macosx-10.14.6-x86_64-3.8/cffi
copying cffi/_cffi_include.h -> build/lib.macosx-10.14.6-x86_64-3.8/cffi
copying cffi/parse_c_type.h -> build/lib.macosx-10.14.6-x86_64-3.8/cffi
copying cffi/_embedding.h -> build/lib.macosx-10.14.6-x86_64-3.8/cffi
copying cffi/_cffi_errors.h -> build/lib.macosx-10.14.6-x86_64-3.8/cffi
running build_ext
building '_cffi_backend' extension
creating build/temp.macosx-10.14.6-x86_64-3.8
creating build/temp.macosx-10.14.6-x86_64-3.8/c
xcrun -sdk macosx clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -iwithsysroot/System/Library/Frameworks/System.framework/PrivateHeaders -iwithsysroot/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.8/Headers -arch arm64 -arch x86_64 -DUSE__THREAD -DHAVE_SYNC_SYNCHRONIZE -I/usr/include/ffi -I/usr/include/libffi -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/ffi -I/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.8/include/python3.8 -c c/_cffi_backend.c -o build/temp.macosx-10.14.6-x86_64-3.8/c/_cffi_backend.o
In file included from c/_cffi_backend.c:2:
In file included from /Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.8/include/python3.8/Python.h:11:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/12.0.0/include/limits.h:21:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/limits.h:63:
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/cdefs.h:807:2: error: Unsupported architecture
#error Unsupported architecture
^
In file included from c/_cffi_backend.c:2:
In file included from /Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.8/include/python3.8/Python.h:11:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/12.0.0/include/limits.h:21:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/limits.h:64:
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/machine/limits.h:8:2: error: architecture not supported
#error architecture not supported
^
In file included from c/_cffi_backend.c:2:
In file included from /Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.8/include/python3.8/Python.h:25:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/stdio.h:64:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/_stdio.h:71:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/_types.h:27:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types.h:33:
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/machine/_types.h:34:2: error: architecture not supported
#error architecture not supported
^
In file included from c/_cffi_backend.c:2:
In file included from /Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.8/include/python3.8/Python.h:25:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/stdio.h:64:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/_stdio.h:71:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/_types.h:27:
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types.h:55:9: error: unknown type name '__int64_t'
typedef __int64_t __darwin_blkcnt_t; /* total blocks */
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types.h:56:9: error: unknown type name '__int32_t'; did you mean '__int128_t'?
typedef __int32_t __darwin_blksize_t; /* preferred block size */
^
note: '__int128_t' declared here
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types.h:57:9: error: unknown type name '__int32_t'; did you mean '__int128_t'?
typedef __int32_t __darwin_dev_t; /* dev_t */
^
note: '__int128_t' declared here
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types.h:60:9: error: unknown type name '__uint32_t'; did you mean '__uint128_t'?
typedef __uint32_t __darwin_gid_t; /* [???] process and group IDs */
^
note: '__uint128_t' declared here
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types.h:61:9: error: unknown type name '__uint32_t'; did you mean '__uint128_t'?
typedef __uint32_t __darwin_id_t; /* [XSI] pid_t, uid_t, or gid_t*/
^
note: '__uint128_t' declared here
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types.h:62:9: error: unknown type name '__uint64_t'
typedef __uint64_t __darwin_ino64_t; /* [???] Used for 64 bit inodes */
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types.h:68:9: error: unknown type name '__darwin_natural_t'
typedef __darwin_natural_t __darwin_mach_port_name_t; /* Used by mach */
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types.h:70:9: error: unknown type name '__uint16_t'; did you mean '__uint128_t'?
typedef __uint16_t __darwin_mode_t; /* [???] Some file attributes */
^
note: '__uint128_t' declared here
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types.h:71:9: error: unknown type name '__int64_t'
typedef __int64_t __darwin_off_t; /* [???] Used for file sizes */
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types.h:72:9: error: unknown type name '__int32_t'; did you mean '__int128_t'?
typedef __int32_t __darwin_pid_t; /* [???] process and group IDs */
^
note: '__int128_t' declared here
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types.h:73:9: error: unknown type name '__uint32_t'; did you mean '__uint128_t'?
typedef __uint32_t __darwin_sigset_t; /* [???] signal set */
^
note: '__uint128_t' declared here
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types.h:74:9: error: unknown type name '__int32_t'; did you mean '__int128_t'?
typedef __int32_t __darwin_suseconds_t; /* [???] microseconds */
^
note: '__int128_t' declared here
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types.h:75:9: error: unknown type name '__uint32_t'; did you mean '__uint128_t'?
typedef __uint32_t __darwin_uid_t; /* [???] user IDs */
^
note: '__uint128_t' declared here
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types.h:76:9: error: unknown type name '__uint32_t'; did you mean '__uint128_t'?
typedef __uint32_t __darwin_useconds_t; /* [???] microseconds */
^
note: '__uint128_t' declared here
In file included from c/_cffi_backend.c:2:
In file included from /Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.8/include/python3.8/Python.h:25:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/stdio.h:64:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/_stdio.h:71:
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/_types.h:43:9: error: unknown type name '__uint32_t'; did you mean '__uint128_t'?
typedef __uint32_t __darwin_wctype_t;
^
note: '__uint128_t' declared here
In file included from c/_cffi_backend.c:2:
In file included from /Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.8/include/python3.8/Python.h:25:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/stdio.h:64:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/_stdio.h:75:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types/_va_list.h:31:
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/machine/types.h:37:2: error: architecture not supported
#error architecture not supported
^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
error: command 'xcrun' failed with exit status 1
----------------------------------------
ERROR: Failed building wheel for cffi
Running setup.py clean for cffi
Failed to build cffi
Installing collected packages: setuptools, wheel, pycparser, cffi
Running setup.py install for cffi: started
Running setup.py install for cffi: finished with status 'error'
ERROR: Command errored out with exit status 1:
command: /Applications/Xcode.app/Contents/Developer/usr/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/g0/d04hk18n311bj7rw6j_r__9h0000gn/T/pip-install-xgpxryh0/cffi/setup.py'"'"'; __file__='"'"'/private/var/folders/g0/d04hk18n311bj7rw6j_r__9h0000gn/T/pip-install-xgpxryh0/cffi/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'rn'"'"', '"'"'n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /private/var/folders/g0/d04hk18n311bj7rw6j_r__9h0000gn/T/pip-record-09jh8alg/install-record.txt --single-version-externally-managed --prefix /private/var/folders/g0/d04hk18n311bj7rw6j_r__9h0000gn/T/pip-build-env-62k24twj/overlay --compile --install-headers /private/var/folders/g0/d04hk18n311bj7rw6j_r__9h0000gn/T/pip-build-env-62k24twj/overlay/include/python3.8/cffi
cwd: /private/var/folders/g0/d04hk18n311bj7rw6j_r__9h0000gn/T/pip-install-xgpxryh0/cffi/
Complete output (130 lines):
running install
running build
running build_py
creating build
creating build/lib.macosx-10.14.6-x86_64-3.8
creating build/lib.macosx-10.14.6-x86_64-3.8/cffi
copying cffi/backend_ctypes.py -> build/lib.macosx-10.14.6-x86_64-3.8/cffi
copying cffi/error.py -> build/lib.macosx-10.14.6-x86_64-3.8/cffi
copying cffi/setuptools_ext.py -> build/lib.macosx-10.14.6-x86_64-3.8/cffi
copying cffi/__init__.py -> build/lib.macosx-10.14.6-x86_64-3.8/cffi
copying cffi/cffi_opcode.py -> build/lib.macosx-10.14.6-x86_64-3.8/cffi
copying cffi/vengine_gen.py -> build/lib.macosx-10.14.6-x86_64-3.8/cffi
copying cffi/pkgconfig.py -> build/lib.macosx-10.14.6-x86_64-3.8/cffi
copying cffi/model.py -> build/lib.macosx-10.14.6-x86_64-3.8/cffi
copying cffi/ffiplatform.py -> build/lib.macosx-10.14.6-x86_64-3.8/cffi
copying cffi/api.py -> build/lib.macosx-10.14.6-x86_64-3.8/cffi
copying cffi/vengine_cpy.py -> build/lib.macosx-10.14.6-x86_64-3.8/cffi
copying cffi/commontypes.py -> build/lib.macosx-10.14.6-x86_64-3.8/cffi
copying cffi/lock.py -> build/lib.macosx-10.14.6-x86_64-3.8/cffi
copying cffi/recompiler.py -> build/lib.macosx-10.14.6-x86_64-3.8/cffi
copying cffi/cparser.py -> build/lib.macosx-10.14.6-x86_64-3.8/cffi
copying cffi/verifier.py -> build/lib.macosx-10.14.6-x86_64-3.8/cffi
copying cffi/_cffi_include.h -> build/lib.macosx-10.14.6-x86_64-3.8/cffi
copying cffi/parse_c_type.h -> build/lib.macosx-10.14.6-x86_64-3.8/cffi
copying cffi/_embedding.h -> build/lib.macosx-10.14.6-x86_64-3.8/cffi
copying cffi/_cffi_errors.h -> build/lib.macosx-10.14.6-x86_64-3.8/cffi
running build_ext
building '_cffi_backend' extension
creating build/temp.macosx-10.14.6-x86_64-3.8
creating build/temp.macosx-10.14.6-x86_64-3.8/c
xcrun -sdk macosx clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -iwithsysroot/System/Library/Frameworks/System.framework/PrivateHeaders -iwithsysroot/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.8/Headers -arch arm64 -arch x86_64 -DUSE__THREAD -DHAVE_SYNC_SYNCHRONIZE -I/usr/include/ffi -I/usr/include/libffi -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/ffi -I/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.8/include/python3.8 -c c/_cffi_backend.c -o build/temp.macosx-10.14.6-x86_64-3.8/c/_cffi_backend.o
In file included from c/_cffi_backend.c:2:
In file included from /Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.8/include/python3.8/Python.h:11:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/12.0.0/include/limits.h:21:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/limits.h:63:
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/cdefs.h:807:2: error: Unsupported architecture
#error Unsupported architecture
^
In file included from c/_cffi_backend.c:2:
In file included from /Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.8/include/python3.8/Python.h:11:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/12.0.0/include/limits.h:21:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/limits.h:64:
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/machine/limits.h:8:2: error: architecture not supported
#error architecture not supported
^
In file included from c/_cffi_backend.c:2:
In file included from /Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.8/include/python3.8/Python.h:25:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/stdio.h:64:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/_stdio.h:71:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/_types.h:27:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types.h:33:
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/machine/_types.h:34:2: error: architecture not supported
#error architecture not supported
^
In file included from c/_cffi_backend.c:2:
In file included from /Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.8/include/python3.8/Python.h:25:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/stdio.h:64:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/_stdio.h:71:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/_types.h:27:
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types.h:55:9: error: unknown type name '__int64_t'
typedef __int64_t __darwin_blkcnt_t; /* total blocks */
^
Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types.h:68:9: error: unknown type name '__darwin_natural_t'
typedef __darwin_natural_t __darwin_mach_port_name_t; /* Used by mach */
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types.h:70:9: error: unknown type name '__uint16_t'; did you mean '__uint128_t'?
typedef __uint16_t __darwin_mode_t; /* [???] Some file attributes */
^
note: '__uint128_t' declared here
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types.h:71:9: error: unknown type name '__int64_t'
typedef __int64_t __darwin_off_t; /* [???] Used for file sizes */
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types.h:72:9: error: unknown type name '__int32_t'; did you mean '__int128_t'?
typedef __int32_t __darwin_pid_t; /* [???] process and group IDs */
^
note: '__int128_t' declared here
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types.h:73:9: error: unknown type name '__uint32_t'; did you mean '__uint128_t'?
typedef __uint32_t __darwin_sigset_t; /* [???] signal set */
^
note: '__uint128_t' declared here
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types.h:74:9: error: unknown type name '__int32_t'; did you mean '__int128_t'?
typedef __int32_t __darwin_suseconds_t; /* [???] microseconds */
^
note: '__int128_t' declared here
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types.h:75:9: error: unknown type name '__uint32_t'; did you mean '__uint128_t'?
typedef __uint32_t __darwin_uid_t; /* [???] user IDs */
^
note: '__uint128_t' declared here
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types.h:76:9: error: unknown type name '__uint32_t'; did you mean '__uint128_t'?
typedef __uint32_t __darwin_useconds_t; /* [???] microseconds */
^
note: '__uint128_t' declared here
In file included from c/_cffi_backend.c:2:
In file included from /Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.8/include/python3.8/Python.h:25:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/stdio.h:64:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/_stdio.h:71:
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/_types.h:43:9: error: unknown type name '__uint32_t'; did you mean '__uint128_t'?
typedef __uint32_t __darwin_wctype_t;
^
note: '__uint128_t' declared here
In file included from c/_cffi_backend.c:2:
In file included from /Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.8/include/python3.8/Python.h:25:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/stdio.h:64:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/_stdio.h:75:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types/_va_list.h:31:
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/machine/types.h:37:2: error: architecture not supported
#error architecture not supported
^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
error: command 'xcrun' failed with exit status 1
----------------------------------------
ERROR: Command errored out with exit status 1: /Applications/Xcode.app/Contents/Developer/usr/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/g0/d04hk18n311bj7rw6j_r__9h0000gn/T/pip-install-xgpxryh0/cffi/setup.py'"'"'; __file__='"'"'/private/var/folders/g0/d04hk18n311bj7rw6j_r__9h0000gn/T/pip-install-xgpxryh0/cffi/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'rn'"'"', '"'"'n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /private/var/folders/g0/d04hk18n311bj7rw6j_r__9h0000gn/T/pip-record-09jh8alg/install-record.txt --single-version-externally-managed --prefix /private/var/folders/g0/d04hk18n311bj7rw6j_r__9h0000gn/T/pip-build-env-62k24twj/overlay --compile --install-headers /private/var/folders/g0/d04hk18n311bj7rw6j_r__9h0000gn/T/pip-build-env-62k24twj/overlay/include/python3.8/cffi Check the logs for full command output.
----------------------------------------
ERROR: Command errored out with exit status 1: /Applications/Xcode.app/Contents/Developer/usr/bin/python3 /Users/yagami/Library/Python/3.8/lib/python/site-packages/pip install --ignore-installed --no-user --prefix /private/var/folders/g0/d04hk18n311bj7rw6j_r__9h0000gn/T/pip-build-env-62k24twj/overlay --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- 'setuptools>=40.6.0' wheel 'cffi>=1.0' Check the logs for full command output.
Что я пробовал
Я пробовал обновить pip и setuptools, но это не имело значения.
Я также удалил весь /Library/Python, все равно не повезло.
Дополнительная информация
python3 -V:
Python 3.8.2
pip -V:
pip 20.2.3 from /Users/yagami/Library/Python/3.8/lib/python/site-packages/pip (python 3.8)
which python3:
/usr/bin/python3
which pip:
/usr/local/bin/pip
2 ответа
Лучший ответ
Не уверен, что происходит со встроенной версией python в OS X (я слышал что-то о переключении совместимости, вызывающем непредсказуемое поведение при автоматическом переключении между двумя режимами).
В любом случае, похоже, что установка доморощенной версии python в значительной степени пропускает проблемы, поэтому я предлагаю вам пойти по этому пути.
Установите brew, если не установлен
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
Установите версию python для пивоварения
brew install python
Добавьте псевдоним в свою оболочку (команда ниже предназначена для zshell), чтобы python указывал на вашу новую установку python.
echo "alias python=/usr/local/bin/python3" >> ~/.zshrc
Настройте виртуальную среду, чтобы изолировать то место, где вы устанавливаете пакеты для
python -m venv ~/.env
Активировать виртуальную среду
source ~/.env/bin/activate
Установите пакеты в свою среду
pip install notebook jupyter
3
Jean Fradet
24 Сен 2020 в 02:53
У меня была такая же ошибка, и я пробовал много вещей, самый быстрый и эффективный способ для меня был:
sudo rm -rf /Library/Developer/CommandLineTools
sudo xcode-select --install
А затем просто используйте pip3 для всего
1
Fabián Bertetto
12 Янв 2021 в 09:42
Содержание
- NeilAlishev / Instruction.md
- Запуск Jupyter через командную строку в Windows
- 15 ответов
- Jupyter notebook error Windows 10
- Problem:
- An example of creating file
- An example of saving file
- 5 Answers 5
- Can’t open Jupyter notebook with Anaconda
- Русские Блоги
- Ядро Jupyter Notebook не может запустить / перезапустить
- Ошибка ядра Win10 Jupyter Notebook или проблемы с запуском
- Описание проблемы Jupyter Notebook
- Моя операционная среда
- Описание проблемы
- Решение для запроса
- Способ 1
- Способ 2
- Способ 3
- Мое решение
- Эй, чтобы подвести итог
NeilAlishev / Instruction.md
Это очень частая проблема, которая появляется на некоторых ОС. Дело в том, что среда разработки запустилась, но браузер не открылся автоматически.
Как решить эту проблему?
В первую очередь, попробуйте запустить Anaconda Navigator с правами администратора (правой кнопкой мыши нажать на иконку Anaconda Navigator, во всплывающем меню выбрать «Запуск от имени администратора»). Теперь, запустите Jupyter Notebook.
Если все равно не открывается окно браузера, выполните инструкции описанные далее.
Запустите программу, которая называется CMD.exe Prompt (может также называться Anaconda Prompt), нажав на Launch. Эта программа находится тут же, в Anaconda Navigator, рядом с программой Jupyter Notebook. После нажатия на Launch, должна открыться командная строка. Если этой программы нет в Anaconda Navigator, можно найти программу «Anaconda Prompt» на компьютере с помощью обычного поиска по программам.
Вышеупомянутая команда показывает тот адрес, по которому мы сможем получить доступ к нашей среде разработки. Адрес имеет вид: http://localhost:8888/?token=СЛУЧАЙНАЯ_ПОСЛЕДОВАТЕЛЬНОСТЬ_БУКВ_И_ЦИФР
Вам необходимо скопировать этот адрес, вставить его в адресную строку вашего браузера и перейти на эту страницу. После этого откроется среда разработки Jupyter Notebook. Можно работать.
ОС Linux или Mac OS: Надо просто открыть терминал и там написать jupyter notebook Полученный адрес надо скопировать в адресную строку браузера.
Источник
Запуск Jupyter через командную строку в Windows
Я установил Jupyter на Windows 10, Python 3.x через
Установка для работает нормально, хотя я перезагрузил терминал.
«jupyter» не распознается как внутренняя или внешняя команда, работающая программа или командный файл.
Как и где я могу найти исполняемый файл для Jupyter?
15 ответов
Неустранимая ошибка в панели запуска: невозможно создать процесс с помощью ‘»
В Windows 10: если вы использовали anaconda3 для установки ноутбука Jupyter и забыли установить флажок для добавления переменных среды в систему во время установки, вам необходимо вручную добавить следующие переменные среды в переменную «Путь»: Редактировать переменные среды «)
Если это не работает.
Pip не добавляет jupyter напрямую в path для local.
После некоторых копаний я нашел исполняемый файл для jupyter в папке:
Поэтому, если вы хотите иметь возможность выполнять программу из командной строки, вам нужно добавить ее в переменную% PATH. Вот скрипт powershell, чтобы сделать это. ОБЯЗАТЕЛЬНО ДОБАВЬТЕ «;» перед добавлением нового пути.
Вот как я решил указанную проблему, надеюсь, это поможет:
установите python 3.7, используя официальный сайт для python, при установке включите установку PATH, установив флажок
после этого откройте cmd (обязательно откройте его после шага 1) и напишите: pip install jupyter ENTER
теперь вы сможете открыть блокнот jupyter с помощью команды: jupyter notebook
Кажется простым, но это также может помочь.
Проблема для меня заключалась в том, что я запускал команду jupyter из неправильного каталога.
Как только я перешел на путь, содержащий скрипт, все заработало.
Моя проблема заключалась в том, что в папке моего пользователя был пробел в имени папки.
После создания нового пользователя и переключения на этого пользователя Windows, ярлыки Windows и ссылки изнутри ‘Anaconda работали нормально.
Windows 8.1 64 бит. Последняя Анаконда.
Примечание: я закончил тем, что удалил переустановку Anaconda, но я чувствую, что проблема была действительно просто местом в пользовательском имени пользователя Windows / пользовательской папке.
У меня была такая же проблема, но
Если вы используете дистрибутив Anaconda, при установке убедитесь, что вы отметили опцию «Изменить путь».
Вы можете добавить следующее к вашему пути
C: [путь установки Python] Scripts
Например C : python27 Scripts
Он начнет работать для jupyter и для каждой другой установки pip, которую вы здесь сделаете.
Сначала убедитесь, что вы указали путь к Python в системных переменных. Затем попробуйте запустить
А затем запустить это
На путь, и это сработало.
В Cygwin установите python2, python2-devel, python2-numpy, python2-pip, tcl, tcl-devel, (я включил изображение ниже всех установленных мной пакетов) и любые другие доступные вам пакеты python. Это, безусловно, самый простой вариант.
Затем выполните эту команду, чтобы просто установить блокнот jupyter:
Ниже приведены реальные команды, которые я выполнил, чтобы добавить больше библиотек на тот случай, если другие тоже нуждаются в этом списке:
Если какая-либо из вышеперечисленных команд терпит неудачу, не беспокойтесь, в большинстве случаев решение довольно простое. Что вы делаете, это смотрите на сбой сборки для любого недостающего пакета / библиотеки.
Скажем, он показывает отсутствующий pyzmq, затем закройте Cygwin, заново откройте установщик, перейдите к экрану списка пакетов, покажите «полный» для всех, затем найдите имя, например zmq, установите эти библиотеки и повторите приведенные выше команды.
Используя этот подход, было довольно просто успешно пройти через все отсутствующие зависимости.
После того, как все установлено, затем запустите в Cygwin перейдите в папку, которую вы хотите быть «корнем» для дерева пользовательского интерфейса ноутбука и введите:
Это запустит ноутбук и покажет некоторые результаты, как показано ниже:
Источник
Jupyter notebook error Windows 10
Problem:
Jupyter is not able to save, create (I imagene delete) any file type. But I can load them fine
An example of creating file
Creating File Failed An error occurred while creating anew file.
»’ Unexpected error while saving file: untitled.txt [Errno 2] No such file or directory: ‘C:UsersmeDocumentsjupyter_notebooksuntitled.txt’ »’
An example of saving file
Tried: Still the same problem
I double checked the folder location and it matches
I also tried: It install and runs, able to open and read but no changes allowed
System:
Possible contributing factors: Made some system changes two days ago, and since the problem started. I believe is a permission issue. I recall deselecting a «permissions check box» for executing scripts. but it only seemed to affect Jupyter
Not acceptable solutions:
Thank you in advance

5 Answers 5
I am the author of the question.
The problem was a permissions issue, as I mentioned earlier, I did modify the system and could not remember what I had done to prevent Jupyter Notebook from working as before. I spent the better part of three days researching the problem and could not find an answer, in frustration, today I posted the problem. And with the comments and suggestion from a couple of the users I was able to take a better look at the problem and try a few different approaches.
I had enabled a feature in «Windows Defender Security Center» that prevented Jupyter from working as before, preventing me from running Notebooks in different locations, more specifically the «Documents» folder.
Should this happen to you:
This was the «global» solution I was looking for
Источник
Can’t open Jupyter notebook with Anaconda
I just installed Anaconda, in my Surface Pro 3, with Windows 10, using the provided installer for 64-bit. When I try to launch «jupyter notebook» I always get the following message:
Microsoft Windows [Version 10.0.14393] (c) 2016 Microsoft Corporation. All rights reserved.
C:UsersCarlos>jupyter notebook Traceback (most recent call last):
File «C:Program FilesAnaconda3Scriptsjupyter-notebook-script.py», line 3, in import notebook.notebookapp
File «C:Program FilesAnaconda3libsite-packagesnotebooknotebookapp.py», l ine 32, in from zmq.eventloop import ioloop
File «C:Program FilesAnaconda3libsite-packageszmq__init__.py», line 34, in from zmq import backend
File «C:Program FilesAnaconda3libsite-packageszmqbackend__init__.py», l ine 40, in reraise(*exc_info)
File «C:Program FilesAnaconda3libsite-packageszmqutilssixcerpt.py», lin e 34, in reraise raise value
File «C:Program FilesAnaconda3libsite-packageszmqbackend__init__.py», l ine 27, in _ns = select_backend(first)
File «C:Program FilesAnaconda3libsite-packageszmqbackendselect.py», lin e 26, in select_backend mod = import(name, fromlist=public_api)
ImportError: DLL load failed: The specified module could not be found.
I tried to uninstall/install again several times, I tried to install it just for me or for all the users in the computer, I tried to update anaconda first. with no success. Any clue?
Источник
Русские Блоги
Ядро Jupyter Notebook не может запустить / перезапустить
Ошибка ядра Win10 Jupyter Notebook или проблемы с запуском
Описание проблемы Jupyter Notebook
Моя операционная среда
[ √ ] Следует отметить, что моя установка на python под win10 установлена напрямую, а не в среде anaconda.
Описание проблемы
Предварительные условия: среда Python зависит от успешной установки!
В Windows 10 работает терминал cmd
Или, щелкнув параметр перезагрузки под параметром ядра, всегда не запускается нормально.
Решение для запроса
Перечисленные решения бесполезны для меня и могут быть полезны только для справки!
Способ 1
Согласно методу модификации этого метода, он должен быть изменен как:
Тем не менее, я не вносил никаких изменений после модификации, и проблема все еще существует, и файл kernel.jason был проверен после нормальной работы. Никаких изменений не было, поэтому предполагается, что у этого блоггера была проблема во время процесса установки и настройки python, или было много Версия Python, поэтому вам нужно указать путь к Python в блокноте jupyter!
Способ 2
Способ 3
Полный метод, предоставляемый github:
Мое решение
Я не заметил эту строку в начале. Если вы видите ее здесь, вы можете попытаться увидеть, какая ошибка отображается в вашем терминале cmd, вместо того, чтобы копировать и вставлять код выполнения в соответствии с онлайн-поговоркой.
Мой блокнот jupyter всегда запускается, чтобы показать, что запуск или перезапуск ядра недопустим. Именно из-за этой проблемы решение здесь:
Решение проблемы с Prompt_toolkit на github
Проблема в том, что prompt_toolkit не установлен, так что установите его, просто установите git под cmd:
После того, как установка все еще проблематична, продолжите установку:
После установки этих двух приложений запуск ноутбука jupyter оказался простым: похоже, это не проблема ядра, но ваша компьютерная среда не полностью установлена.
Эй, чтобы подвести итог
Источник