First, have a look at the common problems listed below. If you can figure it out
from these notes, it will be quicker than asking for help.
Check that you have the latest version of any packages that look relevant.
Unfortunately it’s not always easy to figure out what packages are relevant,
but if there was a bug that’s already been fixed,
it’s easy to upgrade and get on with what you wanted to do.
Jupyter fails to start
-
Have you installed it?
-
If you’re using a menu shortcut or Anaconda launcher to start it, try
opening a terminal or command prompt and running the commandjupyter notebook
. -
If it can’t find
jupyter
,
you may need to configure yourPATH
environment variable.
If you don’t know what that means, and don’t want to find out,
just (re)install Anaconda with the default settings,
and it should set up PATH correctly. -
If Jupyter gives an error that it can’t find
notebook
,
check with pip or conda that thenotebook
package is installed. -
Try running
jupyter-notebook
(with a hyphen). This should normally be the
same asjupyter notebook
(with a space), but if there’s any difference,
the version with the hyphen is the ‘real’ launcher, and the other one wraps
that.
Jupyter doesn’t load or doesn’t work in the browser
-
Try in another browser (e.g. if you normally use Firefox, try with Chrome).
This helps pin down where the problem is. -
Try disabling any browser extensions and/or any Jupyter extensions you have
installed. -
Some internet security software can interfere with Jupyter.
If you have security software, try turning it off temporarily,
and look in the settings for a more long-term solution. -
In the address bar, try changing between
localhost
and127.0.0.1
.
They should be the same, but in some cases it makes a difference.
Jupyter can’t start a kernel
Files called kernel specs tell Jupyter how to start different kinds of kernels.
To see where these are on your system, run jupyter kernelspec list
:
$ jupyter kernelspec list Available kernels: python3 /home/takluyver/.local/lib/python3.6/site-packages/ipykernel/resources bash /home/takluyver/.local/share/jupyter/kernels/bash ir /home/takluyver/.local/share/jupyter/kernels/ir
There’s a special fallback for the Python kernel:
if it doesn’t find a real kernelspec, but it can import the ipykernel
package,
it provides a kernel which will run in the same Python environment as the notebook server.
A path ending in ipykernel/resources
, like in the example above,
is this default kernel.
The default often does what you want,
so if the python3
kernelspec points somewhere else
and you can’t start a Python kernel,
try deleting or renaming that kernelspec folder to expose the default.
If your problem is with another kernel, not the Python one we maintain,
you may need to look for support about that kernel.
Python Environments
Multiple python environments, whether based on Anaconda or Python Virtual environments,
are often the source of reported issues. In many cases, these issues stem from the
Notebook server running in one environment, while the kernel and/or its resources,
derive from another environment. Indicators of this scenario include:
-
import
statements within code cells producingImportError
orModuleNotFound
exceptions. -
General kernel startup failures exhibited by nothing happening when attempting
to execute a cell.
In these situations, take a close look at your environment structure and ensure all
packages required by your notebook’s code are installed in the correct environment.
If you need to run the kernel from different environments than your Notebook
server, check out IPython’s documentation
for using kernels from different environments as this is the recommended approach.
Anaconda’s nb_conda_kernels
package might also be an option for you in these scenarios.
Another thing to check is the kernel.json
file that will be located in the
aforementioned kernel specs directory identified by running jupyter kernelspec list
.
This file will contain an argv
stanza that includes the actual command to run
when launching the kernel. Oftentimes, when reinstalling python environments, a previous
kernel.json
will reference an python executable from an old or non-existent location.
As a result, it’s always a good idea when encountering kernel startup issues to validate
the argv
stanza to ensure all file references exist and are appropriate.
Windows Systems
Although Jupyter Notebook is primarily developed on the various flavors of the Unix
operating system it also supports Microsoft
Windows — which introduces its own set of commonly encountered issues,
particularly in the areas of security, process management and lower-level libraries.
pywin32 Issues
The primary package for interacting with Windows’ primitives is pywin32
.
-
Issues surrounding the creation of the kernel’s communication file utilize
jupyter_core
’ssecure_write()
function. This function ensures a file is
created in which only the owner of the file has access. If libraries likepywin32
are not properly installed, issues can arise when it’s necessary to use the native
Windows libraries.Here’s a portion of such a traceback:
File "c:usersjovyanpythonmyenv.venvlibsite-packagesjupyter_corepaths.py", line 424, in secure_write win32_restrict_file_to_user(fname) File "c:usersjovyanpythonmyenv.venvlibsite-packagesjupyter_corepaths.py", line 359, in win32_restrict_file_to_user import win32api ImportError: DLL load failed: The specified module could not be found.
-
As noted earlier, the installation of
pywin32
can be problematic on Windows
configurations. When such an issue occurs, you may need to revisit how the environment
was setup. Pay careful attention to whether you’re running the 32 or 64 bit versions
of Windows and be sure to install appropriate packages for that environment.Here’s a portion of such a traceback:
File "C:UsersjovyanAppDataRoamingPythonPython37site-packagesjupyter_corepaths.py", line 435, in secure_write win32_restrict_file_to_user(fname) File "C:UsersjovyanAppDataRoamingPythonPython37site-packagesjupyter_corepaths.py", line 361, in win32_restrict_file_to_user import win32api ImportError: DLL load failed: %1 is not a valid Win32 application
Resolving pywin32 Issues
In this case, your
pywin32
module may not be installed correctly and the following
should be attempted:pip install --upgrade pywin32or:
conda install --force-reinstall pywin32followed by:
python.exe Scripts/pywin32_postinstall.py -installwhere
Scripts
is located in the active Python’s installation location.
-
Another common failure specific to Windows environments is the location of various
python commands. On*nix
systems, these typically reside in thebin
directory
of the active Python environment. However, on Windows, these tend to reside in the
Scripts
folder — which is a sibling tobin
. As a result, when encountering
kernel startup issues, again, check theargv
stanza and verify it’s pointing to a
valid file. You may find that it’s pointing inbin
whenScripts
is correct, or
the referenced file does not include its.exe
extension — typically resulting in
FileNotFoundError
exceptions.
This Worked An Hour Ago
The Jupyter stack is very complex and rightfully so, there’s a lot going on. On occassion
you might find the system working perfectly well, then, suddenly, you can’t get past a
certain cell due to import
failures. In these situations, it’s best to ask yourself
if any new python files were added to your notebook development area.
These issues are usually evident by carefully analyzing the traceback produced in
the notebook error or the Notebook server’s command window. In these cases, you’ll typically
find the Python kernel code (from IPython
and ipykernel
) performing its imports
and notice a file from your Notebook development error included in that traceback followed
by an AttributeError
:
File "C:Usersjovyananaconda3libsite-packagesipykernelconnect.py", line 13, in from IPython.core.profiledir import ProfileDir File "C:Usersjovyananaconda3libsite-packagesIPython_init.py", line 55, in from .core.application import Application ... File "C:Usersjovyananaconda3libsite-packagesipython_genutilspath.py", line 13, in import random File "C:UsersjovyanDesktopNotebooksrandom.py", line 4, in rand_set = random.sample(english_words_lower_set, 12) AttributeError: module 'random' has no attribute 'sample'
What has happened is that you have named a file that conflicts with an installed package
that is used by the kernel software and now introduces a conflict preventing the
kernel’s startup.
Resolution: You’ll need to rename your file. A best practice would be to prefix or
namespace your files so as not to conflict with any python package.
Asking for help
As with any problem, try searching to see if someone has already found an answer.
If you can’t find an existing answer, you can ask questions at:
-
The Jupyter Discourse Forum
-
The jupyter-notebook tag on Stackoverflow
-
Peruse the jupyter/help repository on Github (read-only)
-
Or in an issue on another repository, if it’s clear which component is
responsible. Typical repositories include:-
jupyter_core —
secure_write()
and file path issues -
jupyter_client — kernel management
issues found in Notebook server’s command window. -
IPython and
ipykernel — kernel runtime issues
typically found in Notebook server’s command window and/or Notebook cell execution.
-
Gathering Information
Should you find that your problem warrants that an issue be opened in
notebook please don’t forget to provide details
like the following:
-
What error messages do you see (within your notebook and, more importantly, in
the Notebook server’s command window)? -
What platform are you on?
-
How did you install Jupyter?
-
What have you tried already?
The jupyter troubleshoot
command collects a lot of information
about your installation, which can also be useful.
When providing textual information, it’s most helpful if you can scrape the contents
into the issue rather than providing a screenshot. This enables others to select
pieces of that content so they can search more efficiently and try to help.
Remember that it’s not anyone’s job to help you.
We want Jupyter to work for you,
but we can’t always help everyone individually.
Это очень частая проблема, которая появляется на некоторых ОС.
Дело в том, что среда разработки запустилась, но браузер не открылся автоматически.
Как решить эту проблему?
В первую очередь, попробуйте запустить Anaconda Navigator с правами администратора (правой кнопкой мыши нажать на иконку Anaconda Navigator, во всплывающем меню выбрать «Запуск от имени администратора»).
Теперь, запустите Jupyter Notebook.
Если все равно не открывается окно браузера, выполните инструкции описанные далее.
ОС WINDOWS:
-
Запустите программу, которая называется CMD.exe Prompt (может также называться Anaconda Prompt), нажав на Launch.
Эта программа находится тут же, в Anaconda Navigator, рядом с программой Jupyter Notebook. После нажатия на Launch, должна открыться командная строка.
Если этой программы нет в Anaconda Navigator, можно найти программу «Anaconda Prompt» на компьютере с помощью обычного поиска по программам. -
В этой командной строке мы должны выполнить команду
jupyter notebook list
(если команда не сработала, попробуйте сначала выполнить командуjupyter notebook list -V
, а потом уже командуjupyter notebook list
) -
Вышеупомянутая команда показывает тот адрес, по которому мы сможем получить доступ к нашей среде разработки.
Адрес имеет вид: http://localhost:8888/?token=СЛУЧАЙНАЯ_ПОСЛЕДОВАТЕЛЬНОСТЬ_БУКВ_И_ЦИФР
Вам необходимо скопировать этот адрес, вставить его в адресную строку вашего браузера и перейти на эту страницу.
После этого откроется среда разработки Jupyter Notebook. Можно работать.
Чтобы скопировать адрес из командной строки Windows, необходимо кликнуть правой кнопкой мыши в любом месте командной строки.
В выпадающем меню надо выбрать пункт «пометить». После этого, можно будет выделить курсором интересующий нас адрес.
После того, как адрес будет выделен, надо нажать на клавишу Enter на вашей клавиатуре. Готово — адрес скопирован в буфер обмена. Можно его вставлять в адресную строку браузера.
ОС Linux или Mac OS:
Надо просто открыть терминал и там написать jupyter notebook
Полученный адрес надо скопировать в адресную строку браузера.
P.S.
Если Jupyter Notebook так и не запустился, можно использовать среду разработки PyCharm.
Эта среда разработки ничуть не хуже, чем Jupyter Notebook, и тоже отлично нам подойдет.
What to do when things go wrong
First, have a look at the common problems listed below. If you can figure it out
from these notes, it will be quicker than asking for help.
Check that you have the latest version of any packages that look relevant.
Unfortunately it’s not always easy to figure out what packages are relevant,
but if there was a bug that’s already been fixed,
it’s easy to upgrade and get on with what you wanted to do.
Jupyter fails to start
- Have you installed it?
- If you’re using a menu shortcut or Anaconda launcher to start it, try
opening a terminal or command prompt and running the commandjupyter notebook
. - If it can’t find
jupyter
,
you may need to configure yourPATH
environment variable.
If you don’t know what that means, and don’t want to find out,
just (re)install Anaconda with the default settings,
and it should set up PATH correctly. - If Jupyter gives an error that it can’t find
notebook
,
check with pip or conda that thenotebook
package is installed. - Try running
jupyter-notebook
(with a hyphen). This should normally be the
same asjupyter notebook
(with a space), but if there’s any difference,
the version with the hyphen is the ‘real’ launcher, and the other one wraps
that.
Jupyter doesn’t load or doesn’t work in the browser
- Try in another browser (e.g. if you normally use Firefox, try with Chrome).
This helps pin down where the problem is. - Try disabling any browser extensions and/or any Jupyter extensions you have
installed. - Some internet security software can interfere with Jupyter.
If you have security software, try turning it off temporarily,
and look in the settings for a more long-term solution. - In the address bar, try changing between
localhost
and127.0.0.1
.
They should be the same, but in some cases it makes a difference.
Jupyter can’t start a kernel
Files called kernel specs tell Jupyter how to start different kinds of kernels.
To see where these are on your system, run jupyter kernelspec list
:
$ jupyter kernelspec list
Available kernels:
python3 /home/takluyver/.local/lib/python3.6/site-packages/ipykernel/resources
bash /home/takluyver/.local/share/jupyter/kernels/bash
ir /home/takluyver/.local/share/jupyter/kernels/ir
There’s a special fallback for the Python kernel:
if it doesn’t find a real kernelspec, but it can import the ipykernel
package,
it provides a kernel which will run in the same Python environment as the notebook server.
A path ending in ipykernel/resources
, like in the example above,
is this default kernel.
The default often does what you want,
so if the python3
kernelspec points somewhere else
and you can’t start a Python kernel,
try deleting or renaming that kernelspec folder to expose the default.
If your problem is with another kernel, not the Python one we maintain,
you may need to look for support about that kernel.
Python Environments
Multiple python environments, whether based on Anaconda or Python Virtual environments,
are often the source of reported issues. In many cases, these issues stem from the
Notebook server running in one environment, while the kernel and/or its resources,
derive from another environment. Indicators of this scenario include:
import
statements within code cells producingImportError
orModuleNotFound
exceptions.- General kernel startup failures exhibited by nothing happening when attempting
to execute a cell.
In these situations, take a close look at your environment structure and ensure all
packages required by your notebook’s code are installed in the correct environment.
If you need to run the kernel from different environments than your Notebook
server, check out IPython’s documentation
for using kernels from different environments as this is the recommended approach.
Anaconda’s nb_conda_kernels
package might also be an option for you in these scenarios.
Another thing to check is the kernel.json
file that will be located in the
aforementioned kernel specs directory identified by running jupyter kernelspec list
.
This file will contain an argv
stanza that includes the actual command to run
when launching the kernel. Oftentimes, when reinstalling python environments, a previous
kernel.json
will reference an python executable from an old or non-existent location.
As a result, it’s always a good idea when encountering kernel startup issues to validate
the argv
stanza to ensure all file references exist and are appropriate.
Windows Systems
Although Jupyter Notebook is primarily developed on the various flavors of the Unix
operating system it also supports Microsoft
Windows — which introduces its own set of commonly encountered issues,
particularly in the areas of security, process management and lower-level libraries.
pywin32 Issues
The primary package for interacting with Windows’ primitives is pywin32
.
-
Issues surrounding the creation of the kernel’s communication file utilize
jupyter_core
‘ssecure_write()
function. This function ensures a file is
created in which only the owner of the file has access. If libraries likepywin32
are not properly installed, issues can arise when it’s necessary to use the native
Windows libraries.Here’s a portion of such a traceback:
File "c:usersjovyanpythonmyenv.venvlibsite-packagesjupyter_corepaths.py", line 424, in secure_write win32_restrict_file_to_user(fname) File "c:usersjovyanpythonmyenv.venvlibsite-packagesjupyter_corepaths.py", line 359, in win32_restrict_file_to_user import win32api ImportError: DLL load failed: The specified module could not be found.
-
As noted earlier, the installation of
pywin32
can be problematic on Windows
configurations. When such an issue occurs, you may need to revisit how the environment
was setup. Pay careful attention to whether you’re running the 32 or 64 bit versions
of Windows and be sure to install appropriate packages for that environment.Here’s a portion of such a traceback:
File "C:UsersjovyanAppDataRoamingPythonPython37site-packagesjupyter_corepaths.py", line 435, in secure_write win32_restrict_file_to_user(fname) File "C:UsersjovyanAppDataRoamingPythonPython37site-packagesjupyter_corepaths.py", line 361, in win32_restrict_file_to_user import win32api ImportError: DLL load failed: %1 is not a valid Win32 application
Resolving pywin32 Issues
In this case, your
pywin32
module may not be installed correctly and the following
should be attempted:pip install --upgrade pywin32
or:
conda install --force-reinstall pywin32
followed by:
python.exe Scripts/pywin32_postinstall.py -install
where
Scripts
is located in the active Python’s installation location.
- Another common failure specific to Windows environments is the location of various
python commands. On*nix
systems, these typically reside in thebin
directory
of the active Python environment. However, on Windows, these tend to reside in the
Scripts
folder — which is a sibling tobin
. As a result, when encountering
kernel startup issues, again, check theargv
stanza and verify it’s pointing to a
valid file. You may find that it’s pointing inbin
whenScripts
is correct, or
the referenced file does not include its.exe
extension — typically resulting in
FileNotFoundError
exceptions.
This Worked An Hour Ago
The Jupyter stack is very complex and rightfully so, there’s a lot going on. On occasion
you might find the system working perfectly well, then, suddenly, you can’t get past a
certain cell due to import
failures. In these situations, it’s best to ask yourself
if any new python files were added to your notebook development area.
These issues are usually evident by carefully analyzing the traceback produced in
the notebook error or the Notebook server’s command window. In these cases, you’ll typically
find the Python kernel code (from IPython
and ipykernel
) performing its imports
and notice a file from your Notebook development error included in that traceback followed
by an AttributeError
:
File "C:Usersjovyananaconda3libsite-packagesipykernelconnect.py", line 13, in
from IPython.core.profiledir import ProfileDir
File "C:Usersjovyananaconda3libsite-packagesIPython_init.py", line 55, in
from .core.application import Application
...
File "C:Usersjovyananaconda3libsite-packagesipython_genutilspath.py", line 13, in
import random
File "C:UsersjovyanDesktopNotebooksrandom.py", line 4, in
rand_set = random.sample(english_words_lower_set, 12)
AttributeError: module 'random' has no attribute 'sample'
What has happened is that you have named a file that conflicts with an installed package
that is used by the kernel software and now introduces a conflict preventing the
kernel’s startup.
Resolution: You’ll need to rename your file. A best practice would be to prefix or
namespace your files so as not to conflict with any python package.
Asking for help
As with any problem, try searching to see if someone has already found an answer.
If you can’t find an existing answer, you can ask questions at:
-
The Jupyter Discourse Forum
-
The jupyter-notebook tag on Stackoverflow
-
Peruse the jupyter/help repository on Github (read-only)
-
Or in an issue on another repository, if it’s clear which component is
responsible. Typical repositories include:- jupyter_core —
secure_write()
and file path issues - jupyter_client — kernel management
issues found in Notebook server’s command window. - IPython and
ipykernel — kernel runtime issues
typically found in Notebook server’s command window and/or Notebook cell execution.
- jupyter_core —
Gathering Information
Should you find that your problem warrants that an issue be opened in
notebook please don’t forget to provide details
like the following:
- What error messages do you see (within your notebook and, more importantly, in
the Notebook server’s command window)? - What platform are you on?
- How did you install Jupyter?
- What have you tried already?
The jupyter troubleshoot
command collects a lot of information
about your installation, which can also be useful.
When providing textual information, it’s most helpful if you can scrape the contents
into the issue rather than providing a screenshot. This enables others to select
pieces of that content so they can search more efficiently and try to help.
Remember that it’s not anyone’s job to help you.
We want Jupyter to work for you,
but we can’t always help everyone individually.
Проверяем, что пакет дейсвительно установлен в системе
~> pip show jupyter
Получаем что-то вроде такого вывода, обращаем внимание на Location
:
Name: jupyter
Version: 1.0.0
Summary: Jupyter metapackage. Install all the Jupyter components in one go.
Home-page: http://jupyter.org
Author: Jupyter Development Team
Author-email: jupyter@googlegroups.org
License: BSD
Location: c:usersalexappdataroamingpythonpython39site-packages
Requires: ipywidgets, jupyter-console, nbconvert, ipykernel, notebook, qtconsole
Required-by:
Если все хорошо, то можно запустить Jupyter через команду python -m notebook
Причина, почему он нормально не запускается в том, что в переменную окружение не попал путь до запуска исполняемого файла. Переходим в путь, куда python устанавливает пакеты (Location
из вывода выше). Переходим на директорию выше, там должна быть папка ‘Scripts’, где лежит jupyter.exe
.
Чтобы запускать как обычно, добавляем эту папку Scripts
в переменные окружения PATH, после должен работать обычный ~> jupyter notebook
и ~> jupyter-notebook
.
Содержание
- 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 оказался простым: похоже, это не проблема ядра, но ваша компьютерная среда не полностью установлена.
Эй, чтобы подвести итог
Источник