Я использую UBUNTU в Windows и новый для UBUNTU.Я делаю анаконду, названную «fenicsproject».Я хочу добавить ipykernel в блокнот jupyter, набрав
source activate myenv
conda install pip
conda install ipykernel # or pip install ipykernel
python -m ipykernel install --user --name myenv --display-name "Python (myenv)"
Однако последняя команда выдает ошибку
Traceback (most recent call last):
File "/home/sungha/.conda/envs/fenicsproject/lib/python3.6/runpy.py", line 183, in _run_module_as_main
mod_name, mod_spec, code = _get_module_details(mod_name, _Error)
File "/home/sungha/.conda/envs/fenicsproject/lib/python3.6/runpy.py", line 142, in _get_module_details
return _get_module_details(pkg_main_name, error)
File "/home/sungha/.conda/envs/fenicsproject/lib/python3.6/runpy.py", line 109, in _get_module_details
__import__(pkg_name)
File "/home/sungha/.conda/envs/fenicsproject/lib/python3.6/site-packages/ipykernel/__init__.py", line 2, in <module>
from .connect import *
File "/home/sungha/.conda/envs/fenicsproject/lib/python3.6/site-packages/ipykernel/connect.py", line 18, in <module>
import jupyter_client
File "/home/sungha/.conda/envs/fenicsproject/lib/python3.6/site-packages/jupyter_client/__init__.py", line 4, in <module>
from .connect import *
File "/home/sungha/.conda/envs/fenicsproject/lib/python3.6/site-packages/jupyter_client/connect.py", line 23, in <module>
import zmq
File "/home/sungha/.conda/envs/fenicsproject/lib/python3.6/site-packages/zmq/__init__.py", line 47, in <module>
from zmq import backend
File "/home/sungha/.conda/envs/fenicsproject/lib/python3.6/site-packages/zmq/backend/__init__.py", line 40, in <module>
reraise(*exc_info)
File "/home/sungha/.conda/envs/fenicsproject/lib/python3.6/site-packages/zmq/utils/sixcerpt.py", line 34, in reraise
raise value
File "/home/sungha/.conda/envs/fenicsproject/lib/python3.6/site-packages/zmq/backend/__init__.py", line 27, in <module>
_ns = select_backend(first)
File "/home/sungha/.conda/envs/fenicsproject/lib/python3.6/site-packages/zmq/backend/select.py", line 27, in select_backend
mod = __import__(name, fromlist=public_api)
File "/home/sungha/.conda/envs/fenicsproject/lib/python3.6/site-packages/zmq/backend/cython/__init__.py", line 6, in <module>
from . import (constants, error, message, context,
ImportError: /home/sungha/.conda/envs/fenicsproject/lib/python3.6/site-packages/zmq/backend/cython/../../../../.././libstdc++.so.6: version `GLIBCXX_3.4.20' not found (required by /home/sungha/.conda/envs/fenicsproject/lib/python3.6/site-packages/zmq/backend/cython/../../../../../libzmq.so.5)
Эта команда работает нормально, если я деактивирую 'myenv' и использую тот жекоманда на базовую среду.Я попытался добавить 'gcc' внутри среды и следовал всем инструкциям в libstdc ++. So.6: версия `GLIBCXX_3.4.20 'не найдена , но это не решило мою проблему.Вы можете мне помочь?