내용 |
주피터 노트북에서 ipynb 파일을 열면 Bad file descriptor 에러나면서 커널이 종료될 경우
이유 : pyzmq 라이브러리와 충돌 때문에
해결방법 : pyzmq 삭제 후 다시 설치
pip uninstall pyzmq
pip install pyzmq
* 만일 같은 버전이 설치되고 오류가 해결되지 않으면 다른 버전을 지정해서 설치하세요.
pip unstall pyzmq==24.0.1
-----------------------------------------------
(base) C:\windows\system32>pip uninstall pyzmq
Found existing installation: pyzmq 22.3.0
Uninstalling pyzmq-22.3.0:
Would remove:
c:\programdata\anaconda3\lib\site-packages\pyzmq-22.3.0.dist-info\*
c:\programdata\anaconda3\lib\site-packages\zmq\*
Proceed (Y/n)? Y
Successfully uninstalled pyzmq-22.3.0
(base) C:\windows\system32>pip install pyzmq
Collecting pyzmq
Downloading pyzmq-24.0.1-cp39-cp39-win_amd64.whl (999 kB)
|████████████████████████████████| 999 kB 6.4 MB/s
Installing collected packages: pyzmq
ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.
spyder 5.1.5 requires pyqt5<5.13, which is not installed.
spyder 5.1.5 requires pyqtwebengine<5.13, which is not installed.
jupyter-server 1.13.5 requires pywinpty<2; os_name == "nt", but you have pywinpty 2.0.2 which is incompatible.
Successfully installed pyzmq-24.0.1
(base) C:\windows\system32>
|