इसलिए मैंने python 3.5
अपने मैकओएस सिएरा पर स्थापित किया था और ज्यूपिटर नोटबुक को स्थापित किया pip3
और ठीक से चलाया। हाल ही में, मैंने अपडेट किया python 3.6
और जब भी मैंने ज्यूपिटर नोटबुक चलाने और एक नई नोटबुक शुरू करने की कोशिश की, कर्नेल त्रुटि निम्न संदेश के साथ हुई:
Traceback (most recent call last):
File "/usr/local/lib/python3.6/site-packages/notebook/base/handlers.py", line 516, in wrapper
result = yield gen.maybe_future(method(self, *args, **kwargs))
File "/usr/local/lib/python3.6/site-packages/tornado/gen.py", line 1055, in run
value = future.result()
File "/usr/local/lib/python3.6/site-packages/tornado/concurrent.py", line 238, in result
raise_exc_info(self._exc_info)
File "<string>", line 4, in raise_exc_info
File "/usr/local/lib/python3.6/site-packages/tornado/gen.py", line 1063, in run
yielded = self.gen.throw(*exc_info)
File "/usr/local/lib/python3.6/site-packages/notebook/services/sessions/handlers.py", line 75, in post
type=mtype))
File "/usr/local/lib/python3.6/site-packages/tornado/gen.py", line 1055, in run
value = future.result()
File "/usr/local/lib/python3.6/site-packages/tornado/concurrent.py", line 238, in result
raise_exc_info(self._exc_info)
File "<string>", line 4, in raise_exc_info
File "/usr/local/lib/python3.6/site-packages/tornado/gen.py", line 1063, in run
yielded = self.gen.throw(*exc_info)
File "/usr/local/lib/python3.6/site-packages/notebook/services/sessions/sessionmanager.py", line 79, in create_session
kernel_id = yield self.start_kernel_for_session(session_id, path, name, type, kernel_name)
File "/usr/local/lib/python3.6/site-packages/tornado/gen.py", line 1055, in run
value = future.result()
File "/usr/local/lib/python3.6/site-packages/tornado/concurrent.py", line 238, in result
raise_exc_info(self._exc_info)
File "<string>", line 4, in raise_exc_info
File "/usr/local/lib/python3.6/site-packages/tornado/gen.py", line 1063, in run
yielded = self.gen.throw(*exc_info)
File "/usr/local/lib/python3.6/site-packages/notebook/services/sessions/sessionmanager.py", line 92, in start_kernel_for_session
self.kernel_manager.start_kernel(path=kernel_path, kernel_name=kernel_name)
File "/usr/local/lib/python3.6/site-packages/tornado/gen.py", line 1055, in run
value = future.result()
File "/usr/local/lib/python3.6/site-packages/tornado/concurrent.py", line 238, in result
raise_exc_info(self._exc_info)
File "<string>", line 4, in raise_exc_info
File "/usr/local/lib/python3.6/site-packages/tornado/gen.py", line 307, in wrapper
yielded = next(result)
File "/usr/local/lib/python3.6/site-packages/notebook/services/kernels/kernelmanager.py", line 94, in start_kernel
super(MappingKernelManager, self).start_kernel(**kwargs)
File "/usr/local/lib/python3.6/site-packages/jupyter_client/multikernelmanager.py", line 110, in start_kernel
km.start_kernel(**kwargs)
File "/usr/local/lib/python3.6/site-packages/jupyter_client/manager.py", line 257, in start_kernel
**kw)
File "/usr/local/lib/python3.6/site-packages/jupyter_client/manager.py", line 203, in _launch_kernel
return launch_kernel(kernel_cmd, **kw)
File "/usr/local/lib/python3.6/site-packages/jupyter_client/launcher.py", line 128, in launch_kernel
proc = Popen(cmd, **kwargs)
File "/usr/local/Cellar/python3/3.6.1/Frameworks/Python.framework/Versions/3.6/lib/python3.6/subprocess.py", line 707, in __init__
restore_signals, start_new_session)
File "/usr/local/Cellar/python3/3.6.1/Frameworks/Python.framework/Versions/3.6/lib/python3.6/subprocess.py", line 1326, in _execute_child
raise child_exception_type(errno_num, err_msg)
FileNotFoundError: [Errno 2] No such file or directory: '/usr/local/opt/python3/bin/python3.5'
मैं स्थापना रद्द करने की कोशिश की है python 3.6
और स्थापित python 3.5
के माध्यम से Homebrew
। लेकिन मुझे यह त्रुटि तब लगी जब मैं दौड़ता थाjupyter notebook
zsh: /usr/local/bin/jupyter: bad interpreter: /usr/local/opt/python3/bin/python3.6: no such file or directory
मुझे नहीं पता कि मेरी मैकबुक या जयुपर में पायथन संस्करणों के बीच कोई संघर्ष है या नहीं, सिर्फ पायथन 3.6 के साथ काम नहीं कर रहा है
अद्यतन 1 : मैंने चलाने की कोशिश की brew doctor
और यहाँ परिणाम है
Warning: Python is installed at /Library/Frameworks/Python.framework
Homebrew only supports building against the System-provided Python or a
brewed Python. In particular, Pythons installed to /Library can interfere with other software installs.
हालाँकि, मेरे सिस्टम पर केवल उस निर्देशिका में अजगर 2.7 स्थापित है। और मुझे यकीन नहीं है कि यह अजगर 3.6 के साथ विवादित है
@patrix मैंने काढ़ा डॉक्टर संदेश दिखाने के लिए सवाल अपडेट किया
—
DucCuong
brew doctor