2017-06-29 15 views
0

Ich kann Jupyter Notebook mit Python 3 nicht öffnen. Ich habe Anaconda für Python 2 und Anaconda für Python 3 installiert (beide 64 Bit für Windows). Wenn ich ein jupyter Notebook für Python 2 laufe, funktioniert alles gut, aber mit Python 3 funktioniert es nicht. Ich habe Anaconda 3 (4.2 Version = Python 3.5) bereits neu installiert, aber das hat nicht geholfen. Ich habe auch alle Google-Ergebnisse ausprobiert. Ich bekomme immer noch den folgenden Fehler, wenn ich jupyter Notebook von der Anacoda-Eingabeaufforderung ausführen. Jede Hilfe wird sehr geschätzt.Jupyter Notebook mit Python 3 läuft nicht

(C:\Users\Myamoto\Anaconda3) C:\Users\Myamoto>jupyter notebook 
_cffi_ext.c 
AppData\Roaming\Python\Python35\site-packages\zmq\backend\cffi\__pycache__\_cffi_ext.c(209): fatal error C1083: Cannot open include file: 'sys/un.h': No such file or directory 
Traceback (most recent call last): 
    File "C:\Users\Myamoto\Anaconda3\Scripts\jupyter-notebook-script.py", line 3, in <module> 
    import notebook.notebookapp 
    File "C:\Users\Myamoto\Anaconda3\lib\site-packages\notebook\notebookapp.py", line 31, in <module> 
    from zmq.eventloop import ioloop 
    File "C:\Users\Myamoto\AppData\Roaming\Python\Python35\site-packages\zmq\__init__.py", line 34, in <module> 
    from zmq import backend 
    File "C:\Users\Myamoto\AppData\Roaming\Python\Python35\site-packages\zmq\backend\__init__.py", line 40, in <module> 
    reraise(*exc_info) 
    File "C:\Users\Myamoto\AppData\Roaming\Python\Python35\site-packages\zmq\utils\sixcerpt.py", line 34, in reraise 
    raise value 
    File "C:\Users\Myamoto\AppData\Roaming\Python\Python35\site-packages\zmq\backend\__init__.py", line 27, in <module> 
    _ns = select_backend(first) 
    File "C:\Users\Myamoto\AppData\Roaming\Python\Python35\site-packages\zmq\backend\select.py", line 26, in select_backend 
    mod = __import__(name, fromlist=public_api) 
    File "C:\Users\Myamoto\AppData\Roaming\Python\Python35\site-packages\zmq\backend\cython\__init__.py", line 6, in <module> 
    from . import (constants, error, message, context, 
ImportError: cannot import name 'constants' 

Antwort

0

Ich fand eine Lösung, die für mich arbeitete. neu installieren pyzmq in python3

Wenn einer von euch das gleiche Problem habe ich hoffe, dass es hilft, es zu lösen.

1
pip uninstall pyzmq 

nach tat,

pip install pyzmq. 

Dank Muten_Roshi. diese Methode funktioniert gut.