从零开始配置kali2023环境:配置jupyter的多内核环境

news2024/11/20 21:31:16

在kali2023上面尝试用anaconda3,anaconda2安装实现配置jupyter的多内核环境时出现各种问题,现在可以通过镜像方式解决

1. 搜索镜像

┌──(holyeyes㉿kali2023)-[~]
└─$ sudo docker search anaconda
 

┌──(holyeyes㉿kali2023)-[~]
└─$ sudo docker search anaconda
[sudo] password for holyeyes: 
NAME                                   DESCRIPTION                                     STARS     OFFICIAL   AUTOMATED
continuumio/anaconda3                  Powerful and flexible python distribution       755                  [OK]
continuumio/anaconda                   Powerful and flexible python distribution       218                  [OK]
okwrtdsh/anaconda3                     Anaconda3, Jupyter Notebook, OpenCV3, Tensor…   41                   [OK]
drunkar/anaconda-tensorflow-gpu        anaconda-tensorflow-gpu                         12                   [OK]
fzinfz/anaconda3                       multi-kernel jupyter(py 3.7+/2.7.15 & bash) …   4                    
continuumio/anaconda2                                                                  4                    
continuumio/anaconda-pkg-build                                                         2                    
xychelsea/anaconda3                    Anaconda 3 base containers, including with N…   2                    
kunitaya/anaconda3                     Anaconda3 on CentOS                             1                    [OK]
geordgez/anaconda-sh                                                                   1                    
alleninstitute/anaconda3_neuron_1370                                                   1                    
mikewright/anaconda-tensorflow         An image that can be used to quickly start a…   1                    [OK]
quantrocket/anaconda3-uwsgi            Learn more at https://www.quantrocket.com       1                    [OK]
pnnlmiscscripts/anaconda9                                                              1                    
rndnet/anaconda-bfj                    RnDnet platform execution container. Use con…   0                    
ssusb/anaconda3                                                                        0                    
continuumio/anaconda-build-linux-32                                                    0                    
continuumio/anaconda-build-linux-64                                                    0                    
shotat/anaconda3-xgboost-docker        anaconda3 & xgboost                             0                    [OK]
purposefly/anaconda                    Python 3.6 + Anaconda 3                         0                    [OK]
ociscloud/anaconda3-mlflow                                                             0                    
pickledfish/anaconda_dreams                                                            0                    
weekswp/anaconda                                                                       0                    
kobanerjee/anaconda                                                                    0                    
pnnlmiscscripts/anaconda                                                               0                    

2.下载镜像

┌──(holyeyes㉿kali2023)-[~]
└─$ sudo docker pull  fzinfz/anaconda3   
 

                                                                            
┌──(holyeyes㉿kali2023)-[~]
└─$ sudo docker pull  fzinfz/anaconda3   
Using default tag: latest
latest: Pulling from fzinfz/anaconda3
bf5952930446: Pull complete 
5d22f4e6c390: Pull complete 
771ee7f66379: Pull complete 
8cac2a3ce9c0: Pull complete 
89d53def9acf: Pull complete 
ac20eb768e5c: Pull complete 
Digest: sha256:1ec5cc3968a2e5c9ff02e68eeaf2b6ec6131da51beeea87229c35587ea6024fb
Status: Downloaded newer image for fzinfz/anaconda3:latest
docker.io/fzinfz/anaconda3:latest

3.查看下载成功的镜像

┌──(holyeyes㉿kali2023)-[~]
└─$ sudo docker image ls
 

┌──(holyeyes㉿kali2023)-[~]
└─$ sudo docker image ls
REPOSITORY           TAG       IMAGE ID       CREATED        SIZE
skysider/pwndocker   latest    26c0315bd8d9   2 months ago   5GB
fzinfz/anaconda3     latest    b04d5f54948b   3 years ago    4.08GB

4.启动镜像并查询相关情况

┌──(holyeyes㉿kali2023)-[~]
└─$ sudo docker run -i -t -p 12345:8888 fzinfz/anaconda3  /bin/bash
(base) root@97ff203f6ebe:/# pwd
 

┌──(holyeyes㉿kali2023)-[~]
└─$ sudo docker run -i -t -p 12345:8888 fzinfz/anaconda3  /bin/bash
(base) root@97ff203f6ebe:/# pwd
/
(base) root@97ff203f6ebe:/# ls
bin   dev  home  lib64  mnt  proc  run   srv  tmp  var
boot  etc  lib   media  opt  root  sbin  sys  usr
(base) root@97ff203f6ebe:/# conda list
# packages in environment at /opt/conda:
#
# Name                    Version                   Build  Channel
_ipyw_jlab_nb_ext_conf    0.1.0                    py38_0  
_libgcc_mutex             0.1                        main  
alabaster                 0.7.12                     py_0  
anaconda                  2020.07                  py38_0  
anaconda-client           1.7.2                    py38_0  
anaconda-navigator        1.9.12                   py38_0  
anaconda-project          0.8.4                      py_0  
argh                      0.26.2                   py38_0  
asn1crypto                1.3.0                    py38_0  
astroid                   2.4.2                    py38_0  
astropy                   4.0.1.post1      py38h7b6447c_1  
atomicwrites              1.4.0                      py_0  
attrs                     19.3.0                     py_0  
autopep8                  1.5.3                      py_0  
babel                     2.8.0                      py_0  
backcall                  0.2.0                      py_0  
backports                 1.0                        py_2  
backports.functools_lru_cache 1.6.1                      py_0  
backports.shutil_get_terminal_size 1.0.0                    py38_2  
backports.tempfile        1.0                        py_1  
backports.weakref         1.0.post1                  py_1  
bash-kernel               0.7.2                    pypi_0    pypi
bcrypt                    3.2.0                    pypi_0    pypi
beautifulsoup4            4.9.1                    py38_0  
bitarray                  1.4.0            py38h7b6447c_0  
bkcharts                  0.2                      py38_0  
blas                      1.0                         mkl  
bleach                    3.1.5                      py_0  
blosc                     1.19.0               hd408876_0  
bokeh                     2.1.1                    py38_0  
boto                      2.49.0                   py38_0  
bottleneck                1.3.2            py38heb32a55_1  
brotlipy                  0.7.0           py38h7b6447c_1000  
bzip2                     1.0.8                h7b6447c_0  
ca-certificates           2020.6.24                     0  
cairo                     1.14.12              h8948797_3  
certifi                   2020.6.20                py38_0  
cffi                      1.14.0           py38he30daa8_1  
chardet                   3.0.4                 py38_1003  
click                     7.1.2                      py_0  
cloudpickle               1.5.0                      py_0  
clyent                    1.2.2                    py38_1  
colorama                  0.4.3                      py_0  
conda                     4.8.3                    py38_0  
conda-build               3.18.11                  py38_0  
conda-env                 2.6.0                         1  
conda-package-handling    1.6.1            py38h7b6447c_0  
conda-verify              3.4.2                      py_1  
contextlib2               0.6.0.post1                py_0  
cryptography              2.9.2            py38h1ba5d50_0  
curl                      7.71.1               hbc83047_1  
cycler                    0.10.0                   py38_0  
cython                    0.29.21          py38he6710b0_0  
cytoolz                   0.10.1           py38h7b6447c_0  
dask                      2.20.0                     py_0  
dask-core                 2.20.0                     py_0  
dbus                      1.13.16              hb2f20db_0  
decorator                 4.4.2                      py_0  
defusedxml                0.6.0                      py_0  
diff-match-patch          20200713                   py_0  
distributed               2.20.0                   py38_0  
docutils                  0.16                     py38_1  
entrypoints               0.3                      py38_0  
et_xmlfile                1.0.1                   py_1001  
expat                     2.2.9                he6710b0_2  
fabric2                   2.5.0                    pypi_0    pypi
fastcache                 1.1.0            py38h7b6447c_0  
filelock                  3.0.12                     py_0  
flake8                    3.8.3                      py_0  
flask                     1.1.2                      py_0  
fontconfig                2.13.0               h9420a91_0  
freetype                  2.10.2               h5ab3b9f_0  
fribidi                   1.0.9                h7b6447c_0  
fsspec                    0.7.4                      py_0  
future                    0.18.2                   py38_1  
get_terminal_size         1.0.0                haa9412d_0  
gevent                    20.6.2           py38h7b6447c_0  
glib                      2.65.0               h3eb4bd4_0  
glob2                     0.7                        py_0  
gmp                       6.1.2                h6c8ec71_1  
gmpy2                     2.0.8            py38hd5f6e3b_3  
graphite2                 1.3.14               h23475e2_0  
greenlet                  0.4.16           py38h7b6447c_0  
gst-plugins-base          1.14.0               hbbd80ab_1  
gstreamer                 1.14.0               hb31296c_0  
h5py                      2.10.0           py38h7918eee_0  
harfbuzz                  2.4.0                hca77d97_1  
hdf5                      1.10.4               hb1b8bf9_0  
heapdict                  1.0.1                      py_0  
html5lib                  1.1                        py_0  
icu                       58.2                 he6710b0_3  
idna                      2.10                       py_0  
imageio                   2.9.0                      py_0  
imagesize                 1.2.0                      py_0  
importlib-metadata        1.7.0                    py38_0  
importlib_metadata        1.7.0                         0  
intel-openmp              2020.1                      217  
intervaltree              3.0.2                      py_1  
invoke                    1.4.1                    pypi_0    pypi
ipykernel                 5.3.2            py38h5ca1d4c_0  
ipython                   7.16.1           py38h5ca1d4c_0  
ipython_genutils          0.2.0                    py38_0  
ipywidgets                7.5.1                      py_0  
isort                     4.3.21                   py38_0  
itsdangerous              1.1.0                      py_0  
jbig                      2.1                  hdba287a_0  
jdcal                     1.4.1                      py_0  
jedi                      0.17.1                   py38_0  
jeepney                   0.4.3                      py_0  
jinja2                    2.11.2                     py_0  
joblib                    0.16.0                     py_0  
jpeg                      9b                   h024ee3a_2  
json5                     0.9.5                      py_0  
jsonschema                3.2.0                    py38_0  
jupyter                   1.0.0                    py38_7  
jupyter_client            6.1.6                      py_0  
jupyter_console           6.1.0                      py_0  
jupyter_core              4.6.3                    py38_0  
jupyterlab                2.1.5                      py_0  
jupyterlab_server         1.2.0                      py_0  
keyring                   21.2.1                   py38_0  
kiwisolver                1.2.0            py38hfd86e86_0  
krb5                      1.18.2               h173b8e3_0  
lazy-object-proxy         1.4.3            py38h7b6447c_0  
lcms2                     2.11                 h396b838_0  
ld_impl_linux-64          2.33.1               h53a641e_7  
libarchive                3.4.2                h62408e4_0  
libcurl                   7.71.1               h20c2e04_1  
libedit                   3.1.20191231         h14c3975_1  
libffi                    3.3                  he6710b0_2  
libgcc-ng                 9.1.0                hdf63c60_0  
libgfortran-ng            7.3.0                hdf63c60_0  
liblief                   0.10.1               he6710b0_0  
libllvm9                  9.0.1                h4a3c616_1  
libpng                    1.6.37               hbc83047_0  
libsodium                 1.0.18               h7b6447c_0  
libspatialindex           1.9.3                he6710b0_0  
libssh2                   1.9.0                h1ba5d50_1  
libstdcxx-ng              9.1.0                hdf63c60_0  
libtiff                   4.1.0                h2733197_1  
libtool                   2.4.6                h7b6447c_5  
libuuid                   1.0.3                h1bed415_2  
libxcb                    1.14                 h7b6447c_0  
libxml2                   2.9.10               he19cac6_1  
libxslt                   1.1.34               hc22bd24_0  
llvmlite                  0.33.0           py38hc6ec683_1  
locket                    0.2.0                    py38_1  
lxml                      4.5.2            py38hefd8a0e_0  
lz4-c                     1.9.2                he6710b0_0  
lzo                       2.10                 h7b6447c_2  
markupsafe                1.1.1            py38h7b6447c_0  
matplotlib                3.2.2                         0  
matplotlib-base           3.2.2            py38hef1b27d_0  
mccabe                    0.6.1                    py38_1  
metakernel                0.27.5                   pypi_0    pypi
metakernel-bash           0.11.3                   pypi_0    pypi
mistune                   0.8.4           py38h7b6447c_1000  
mkl                       2020.1                      217  
mkl-service               2.3.0            py38he904b0f_0  
mkl_fft                   1.1.0            py38h23d657b_0  
mkl_random                1.1.1            py38h0573a6f_0  
mock                      4.0.2                      py_0  
more-itertools            8.4.0                      py_0  
mpc                       1.1.0                h10f8cd9_1  
mpfr                      4.0.2                hb69a4c5_1  
mpmath                    1.1.0                    py38_0  
msgpack-python            1.0.0            py38hfd86e86_1  
multipledispatch          0.6.0                    py38_0  
navigator-updater         0.2.1                    py38_0  
nbconvert                 5.6.1                    py38_0  
nbformat                  5.0.7                      py_0  
ncurses                   6.2                  he6710b0_1  
networkx                  2.4                        py_1  
nltk                      3.5                        py_0  
nose                      1.3.7                    py38_2  
notebook                  6.0.3                    py38_0  
numba                     0.50.1           py38h0573a6f_1  
numexpr                   2.7.1            py38h423224d_0  
numpy                     1.18.5           py38ha1c710e_0  
numpy-base                1.18.5           py38hde5b4d6_0  
numpydoc                  1.1.0                      py_0  
olefile                   0.46                       py_0  
openpyxl                  3.0.4                      py_0  
openssl                   1.1.1g               h7b6447c_0  
packaging                 20.4                       py_0  
pandas                    1.0.5            py38h0573a6f_0  
pandoc                    2.10                          0  
pandocfilters             1.4.2                    py38_1  
pango                     1.45.3               hd140c19_0  
paramiko                  2.7.2                    pypi_0    pypi
parso                     0.7.0                      py_0  
partd                     1.1.0                      py_0  
patchelf                  0.11                 he6710b0_0  
path                      13.1.0                   py38_0  
path.py                   12.4.0                        0  
pathlib2                  2.3.5                    py38_0  
pathtools                 0.1.2                      py_1  
patsy                     0.5.1                    py38_0  
pcre                      8.44                 he6710b0_0  
pep8                      1.7.1                    py38_0  
pexpect                   4.8.0                    py38_0  
pickleshare               0.7.5                 py38_1000  
pillow                    7.2.0            py38hb39fc2d_0  
pip                       20.1.1                   py38_1  
pixman                    0.40.0               h7b6447c_0  
pkginfo                   1.5.0.1                  py38_0  
pluggy                    0.13.1                   py38_0  
ply                       3.11                     py38_0  
prometheus_client         0.8.0                      py_0  
prompt-toolkit            3.0.5                      py_0  
prompt_toolkit            3.0.5                         0  
psutil                    5.7.0            py38h7b6447c_0  
ptyprocess                0.6.0                    py38_0  
py                        1.9.0                      py_0  
py-lief                   0.10.1           py38h403a769_0  
pycodestyle               2.6.0                      py_0  
pycosat                   0.6.3            py38h7b6447c_1  
pycparser                 2.20                       py_2  
pycurl                    7.43.0.5         py38h1ba5d50_0  
pydocstyle                5.0.2                      py_0  
pyflakes                  2.2.0                      py_0  
pygments                  2.6.1                      py_0  
pylint                    2.5.3                    py38_0  
pynacl                    1.4.0                    pypi_0    pypi
pyodbc                    4.0.30           py38he6710b0_0  
pyopenssl                 19.1.0                     py_1  
pyparsing                 2.4.7                      py_0  
pyqt                      5.9.2            py38h05f1152_4  
pyrsistent                0.16.0           py38h7b6447c_0  
pysocks                   1.7.1                    py38_0  
pytables                  3.6.1            py38h9fd0a39_0  
pytest                    5.4.3                    py38_0  
python                    3.8.3                hcff3b4d_2  
python-dateutil           2.8.1                      py_0  
python-jsonrpc-server     0.3.4                      py_1  
python-language-server    0.34.1                   py38_0  
python-libarchive-c       2.9                        py_0  
pytz                      2020.1                     py_0  
pywavelets                1.1.1            py38h7b6447c_0  
pyxdg                     0.26                       py_0  
pyyaml                    5.3.1            py38h7b6447c_1  
pyzmq                     19.0.1           py38he6710b0_1  
qdarkstyle                2.8.1                      py_0  
qt                        5.9.7                h5867ecd_1  
qtawesome                 0.7.2                      py_0  
qtconsole                 4.7.5                      py_0  
qtpy                      1.9.0                      py_0  
readline                  8.0                  h7b6447c_0  
regex                     2020.6.8         py38h7b6447c_0  
requests                  2.24.0                     py_0  
ripgrep                   11.0.2               he32d670_0  
rope                      0.17.0                     py_0  
rtree                     0.9.4                    py38_1  
ruamel_yaml               0.15.87          py38h7b6447c_1  
scikit-image              0.16.2           py38h0573a6f_0  
scikit-learn              0.23.1           py38h423224d_0  
scipy                     1.5.0            py38h0b6359f_0  
seaborn                   0.10.1                     py_0  
secretstorage             3.1.2                    py38_0  
send2trash                1.5.0                    py38_0  
setuptools                49.2.0                   py38_0  
simplegeneric             0.8.1                    py38_2  
singledispatch            3.4.0.3                  py38_0  
sip                       4.19.13          py38he6710b0_0  
six                       1.15.0                     py_0  
snappy                    1.1.8                he6710b0_0  
snowballstemmer           2.0.0                      py_0  
sortedcollections         1.2.1                      py_0  
sortedcontainers          2.2.2                      py_0  
soupsieve                 2.0.1                      py_0  
sphinx                    3.1.2                      py_0  
sphinxcontrib             1.0                      py38_1  
sphinxcontrib-applehelp   1.0.2                      py_0  
sphinxcontrib-devhelp     1.0.2                      py_0  
sphinxcontrib-htmlhelp    1.0.3                      py_0  
sphinxcontrib-jsmath      1.0.1                      py_0  
sphinxcontrib-qthelp      1.0.3                      py_0  
sphinxcontrib-serializinghtml 1.1.4                      py_0  
sphinxcontrib-websupport  1.2.3                      py_0  
spyder                    4.1.4                    py38_0  
spyder-kernels            1.9.2                    py38_0  
sqlalchemy                1.3.18           py38h7b6447c_0  
sqlite                    3.32.3               h62c20be_0  
statsmodels               0.11.1           py38h7b6447c_0  
sympy                     1.6.1                    py38_0  
tbb                       2020.0               hfd86e86_0  
tblib                     1.6.0                      py_0  
terminado                 0.8.3                    py38_0  
testpath                  0.4.4                      py_0  
threadpoolctl             2.1.0              pyh5ca1d4c_0  
tk                        8.6.10               hbc83047_0  
toml                      0.10.1                     py_0  
toolz                     0.10.0                     py_0  
tornado                   6.0.4            py38h7b6447c_1  
tqdm                      4.47.0                     py_0  
traitlets                 4.3.3                    py38_0  
typing_extensions         3.7.4.2                    py_0  
ujson                     1.35             py38h7b6447c_0  
unicodecsv                0.14.1                   py38_0  
unixodbc                  2.3.7                h14c3975_0  
urllib3                   1.25.9                     py_0  
watchdog                  0.10.3                   py38_0  
wcwidth                   0.2.5                      py_0  
webencodings              0.5.1                    py38_1  
werkzeug                  1.0.1                      py_0  
wheel                     0.34.2                   py38_0  
widgetsnbextension        3.5.1                    py38_0  
wrapt                     1.11.2           py38h7b6447c_0  
wurlitzer                 2.0.1                    py38_0  
xlrd                      1.2.0                      py_0  
xlsxwriter                1.2.9                      py_0  
xlwt                      1.3.0                    py38_0  
xmltodict                 0.12.0                     py_0  
xz                        5.2.5                h7b6447c_0  
yaml                      0.2.5                h7b6447c_0  
yapf                      0.30.0                     py_0  
zeromq                    4.3.2                he6710b0_2  
zict                      2.0.0                      py_0  
zipp                      3.1.0                      py_0  
zlib                      1.2.11               h7b6447c_3  
zope                      1.0                      py38_1  
zope.event                4.4                      py38_0  
zope.interface            4.7.1            py38h7b6447c_0  
zstd                      1.4.5                h0b5b093_0  
(base) root@97ff203f6ebe:/# pip list
Package                            Version
---------------------------------- -------------------
alabaster                          0.7.12
anaconda-client                    1.7.2
anaconda-navigator                 1.9.12
anaconda-project                   0.8.3
argh                               0.26.2
asn1crypto                         1.3.0
astroid                            2.4.2
astropy                            4.0.1.post1
atomicwrites                       1.4.0
attrs                              19.3.0
autopep8                           1.5.3
Babel                              2.8.0
backcall                           0.2.0
backports.functools-lru-cache      1.6.1
backports.shutil-get-terminal-size 1.0.0
backports.tempfile                 1.0
backports.weakref                  1.0.post1
bash-kernel                        0.7.2
bcrypt                             3.2.0
beautifulsoup4                     4.9.1
bitarray                           1.4.0
bkcharts                           0.2
bleach                             3.1.5
bokeh                              2.1.1
boto                               2.49.0
Bottleneck                         1.3.2
brotlipy                           0.7.0
certifi                            2020.6.20
cffi                               1.14.0
chardet                            3.0.4
click                              7.1.2
cloudpickle                        1.5.0
clyent                             1.2.2
colorama                           0.4.3
conda                              4.8.3
conda-build                        3.18.11
conda-package-handling             1.7.0
conda-verify                       3.4.2
contextlib2                        0.6.0.post1
cryptography                       2.9.2
cycler                             0.10.0
Cython                             0.29.21
cytoolz                            0.10.1
dask                               2.20.0
decorator                          4.4.2
defusedxml                         0.6.0
diff-match-patch                   20200713
distributed                        2.20.0
docutils                           0.16
entrypoints                        0.3
et-xmlfile                         1.0.1
fabric2                            2.5.0
fastcache                          1.1.0
filelock                           3.0.12
flake8                             3.8.3
Flask                              1.1.2
fsspec                             0.7.4
future                             0.18.2
gevent                             20.6.2
glob2                              0.7
gmpy2                              2.0.8
greenlet                           0.4.16
h5py                               2.10.0
HeapDict                           1.0.1
html5lib                           1.1
idna                               2.10
imageio                            2.9.0
imagesize                          1.2.0
importlib-metadata                 1.7.0
intervaltree                       3.0.2
invoke                             1.4.1
ipykernel                          5.3.2
ipython                            7.16.1
ipython-genutils                   0.2.0
ipywidgets                         7.5.1
isort                              4.3.21
itsdangerous                       1.1.0
jdcal                              1.4.1
jedi                               0.17.1
jeepney                            0.4.3
Jinja2                             2.11.2
joblib                             0.16.0
json5                              0.9.5
jsonschema                         3.2.0
jupyter                            1.0.0
jupyter-client                     6.1.6
jupyter-console                    6.1.0
jupyter-core                       4.6.3
jupyterlab                         2.1.5
jupyterlab-server                  1.2.0
keyring                            21.2.1
kiwisolver                         1.2.0
lazy-object-proxy                  1.4.3
libarchive-c                       2.9
llvmlite                           0.33.0+1.g022ab0f
locket                             0.2.0
lxml                               4.5.2
MarkupSafe                         1.1.1
matplotlib                         3.2.2
mccabe                             0.6.1
metakernel                         0.27.5
metakernel-bash                    0.11.3
mistune                            0.8.4
mkl-fft                            1.1.0
mkl-random                         1.1.1
mkl-service                        2.3.0
mock                               4.0.2
more-itertools                     8.4.0
mpmath                             1.1.0
msgpack                            1.0.0
multipledispatch                   0.6.0
navigator-updater                  0.2.1
nbconvert                          5.6.1
nbformat                           5.0.7
networkx                           2.4
nltk                               3.5
nose                               1.3.7
notebook                           6.0.3
numba                              0.50.1
numexpr                            2.7.1
numpy                              1.18.5
numpydoc                           1.1.0
olefile                            0.46
openpyxl                           3.0.4
packaging                          20.4
pandas                             1.0.5
pandocfilters                      1.4.2
paramiko                           2.7.2
parso                              0.7.0
partd                              1.1.0
path                               13.1.0
pathlib2                           2.3.5
pathtools                          0.1.2
patsy                              0.5.1
pep8                               1.7.1
pexpect                            4.8.0
pickleshare                        0.7.5
Pillow                             7.2.0
pip                                20.1.1
pkginfo                            1.5.0.1
pluggy                             0.13.1
ply                                3.11
prometheus-client                  0.8.0
prompt-toolkit                     3.0.5
psutil                             5.7.0
ptyprocess                         0.6.0
py                                 1.9.0
pycodestyle                        2.6.0
pycosat                            0.6.3
pycparser                          2.20
pycurl                             7.43.0.5
pydocstyle                         5.0.2
pyflakes                           2.2.0
Pygments                           2.6.1
pylint                             2.5.3
PyNaCl                             1.4.0
pyodbc                             4.0.0-unsupported
pyOpenSSL                          19.1.0
pyparsing                          2.4.7
pyrsistent                         0.16.0
PySocks                            1.7.1
pytest                             5.4.3
python-dateutil                    2.8.1
python-jsonrpc-server              0.3.4
python-language-server             0.34.1
pytz                               2020.1
PyWavelets                         1.1.1
pyxdg                              0.26
PyYAML                             5.3.1
pyzmq                              19.0.1
QDarkStyle                         2.8.1
QtAwesome                          0.7.2
qtconsole                          4.7.5
QtPy                               1.9.0
regex                              2020.6.8
requests                           2.24.0
rope                               0.17.0
Rtree                              0.9.4
ruamel-yaml                        0.15.87
scikit-image                       0.16.2
scikit-learn                       0.23.1
scipy                              1.5.0
seaborn                            0.10.1
SecretStorage                      3.1.2
Send2Trash                         1.5.0
setuptools                         49.2.0.post20200714
simplegeneric                      0.8.1
singledispatch                     3.4.0.3
sip                                4.19.13
six                                1.15.0
snowballstemmer                    2.0.0
sortedcollections                  1.2.1
sortedcontainers                   2.2.2
soupsieve                          2.0.1
Sphinx                             3.1.2
sphinxcontrib-applehelp            1.0.2
sphinxcontrib-devhelp              1.0.2
sphinxcontrib-htmlhelp             1.0.3
sphinxcontrib-jsmath               1.0.1
sphinxcontrib-qthelp               1.0.3
sphinxcontrib-serializinghtml      1.1.4
sphinxcontrib-websupport           1.2.3
spyder                             4.1.4
spyder-kernels                     1.9.2
SQLAlchemy                         1.3.18
statsmodels                        0.11.1
sympy                              1.6.1
tables                             3.6.1
tblib                              1.6.0
terminado                          0.8.3
testpath                           0.4.4
threadpoolctl                      2.1.0
toml                               0.10.1
toolz                              0.10.0
tornado                            6.0.4
tqdm                               4.47.0
traitlets                          4.3.3
typing-extensions                  3.7.4.2
ujson                              1.35
unicodecsv                         0.14.1
urllib3                            1.25.9
watchdog                           0.10.3
wcwidth                            0.2.5
webencodings                       0.5.1
Werkzeug                           1.0.1
wheel                              0.34.2
widgetsnbextension                 3.5.1
wrapt                              1.11.2
wurlitzer                          2.0.1
xlrd                               1.2.0
XlsxWriter                         1.2.9
xlwt                               1.3.0
xmltodict                          0.12.0
yapf                               0.30.0
zict                               2.0.0
zipp                               3.1.0
zope.event                         4.4
zope.interface                     4.7.1
(base) root@97ff203f6ebe:/# conda env list
# conda environments:
#
base                  *  /opt/conda
py27                     /opt/conda/envs/py27

5.启动jupyter

(base) root@97ff203f6ebe:/# jupyter notebook --port 8888 --ip 0.0.0.0 --allow-root
 

(base) root@97ff203f6ebe:/# jupyter notebook --port 8888 --ip 0.0.0.0 --allow-root
[I 06:30:42.078 NotebookApp] Writing notebook server cookie secret to /root/.local/share/jupyter/runtime/notebook_cookie_secret
[I 06:30:42.318 NotebookApp] JupyterLab extension loaded from /opt/conda/lib/python3.8/site-packages/jupyterlab
[I 06:30:42.318 NotebookApp] JupyterLab application directory is /opt/conda/share/jupyter/lab
[I 06:30:42.320 NotebookApp] Serving notebooks from local directory: /
[I 06:30:42.321 NotebookApp] The Jupyter Notebook is running at:
[I 06:30:42.321 NotebookApp] http://97ff203f6ebe:8888/?token=aa69c08dabed5356b6dfe8027ad9b4ffa16410e1676c1b10
[I 06:30:42.321 NotebookApp]  or http://127.0.0.1:8888/?token=aa69c08dabed5356b6dfe8027ad9b4ffa16410e1676c1b10
[I 06:30:42.321 NotebookApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
[C 06:30:42.325 NotebookApp] 
    
    To access the notebook, open this file in a browser:
        file:///root/.local/share/jupyter/runtime/nbserver-29-open.html
    Or copy and paste one of these URLs:
        http://97ff203f6ebe:8888/?token=aa69c08dabed5356b6dfe8027ad9b4ffa16410e1676c1b10
     or http://127.0.0.1:8888/?token=aa69c08dabed5356b6dfe8027ad9b4ffa16410e1676c1b10
[W 06:33:59.926 NotebookApp] 401 POST /login?next=%2Ftree%3Ftoken%3Daa69c08dabed5356b6dfe8027ad9b4ffa16410e1676c1b10 (192.168.2.127) 2.97ms referer=http://192.168.2.159:12345/login?next=%2Ftree%3Ftoken%3Daa69c08dabed5356b6dfe8027ad9b4ffa16410e1676c1b10
[I 06:34:43.127 NotebookApp] 302 GET /?token=aa69c08dabed5356b6dfe8027ad9b4ffa16410e1676c1b10 (192.168.2.127) 0.54ms
[I 06:35:10.128 NotebookApp] New terminal with automatic name: 1
TermSocket.open: 1
TermSocket.open: Opened 1
Websocket closed
[I 06:36:00.322 NotebookApp] Creating new directory in 
[I 06:39:09.025 NotebookApp] Uploading file to /Untitled Folder/utf9-master.zip
[I 06:39:10.144 NotebookApp] Uploading file to /Untitled Folder/uncompyle2-master.zip
[I 06:39:11.410 NotebookApp] Uploading file to /Untitled Folder/python-uncompyle6-master.zip
[I 06:40:38.366 NotebookApp] Uploading file to /14/README.md
[I 06:40:58.935 NotebookApp] Uploading file to /14/you_need_python_by_sunnyelf.7z
[I 06:41:02.485 NotebookApp] Saving file at /14/README.md
[I 06:41:03.318 NotebookApp] Uploading file to /14/key_is_here_but_do_you_know_rfc4042
[I 06:41:04.077 NotebookApp] Uploading file to /14/flag.py
[I 06:41:04.796 NotebookApp] Uploading file to /14/f.py
[I 06:41:05.497 NotebookApp] Uploading file to /14/decodeutf9.py
[I 06:41:06.414 NotebookApp] Uploading file to /14/14.ipynb
[I 06:41:06.420 NotebookApp] Writing notebook-signing key to /root/.local/share/jupyter/notebook_secret
[I 06:41:12.144 NotebookApp] Kernel started: 077f576a-70ed-4a3c-bd67-2dcfb8b70e45
[I 06:41:12.537 NotebookApp] Adapting from protocol version 5.1 (kernel 077f576a-70ed-4a3c-bd67-2dcfb8b70e45) to 5.3 (client).
[I 06:41:42.287 NotebookApp] New terminal with automatic name: 2
TermSocket.open: 2
TermSocket.open: Opened 2
[I 06:43:12.171 NotebookApp] Saving file at /14/14.ipynb
[I 07:00:28.925 NotebookApp] Starting buffering for 077f576a-70ed-4a3c-bd67-2dcfb8b70e45:143e6dae1e27440582fd4032f28020b3
[I 07:00:29.138 NotebookApp] Kernel restarted: 077f576a-70ed-4a3c-bd67-2dcfb8b70e45
[I 07:00:29.413 NotebookApp] Adapting from protocol version 5.1 (kernel 077f576a-70ed-4a3c-bd67-2dcfb8b70e45) to 5.3 (client).
[I 07:00:29.414 NotebookApp] Restoring connection for 077f576a-70ed-4a3c-bd67-2dcfb8b70e45:143e6dae1e27440582fd4032f28020b3
[I 07:00:29.415 NotebookApp] Replaying 5 buffered messages
[I 07:00:50.092 NotebookApp] Kernel interrupted: 077f576a-70ed-4a3c-bd67-2dcfb8b70e45
[I 07:00:54.891 NotebookApp] Kernel interrupted: 077f576a-70ed-4a3c-bd67-2dcfb8b70e45
[I 07:01:00.072 NotebookApp] Starting buffering for 077f576a-70ed-4a3c-bd67-2dcfb8b70e45:143e6dae1e27440582fd4032f28020b3
[I 07:01:00.287 NotebookApp] Kernel restarted: 077f576a-70ed-4a3c-bd67-2dcfb8b70e45
[I 07:01:00.628 NotebookApp] Adapting from protocol version 5.1 (kernel 077f576a-70ed-4a3c-bd67-2dcfb8b70e45) to 5.3 (client).
[I 07:01:00.629 NotebookApp] Restoring connection for 077f576a-70ed-4a3c-bd67-2dcfb8b70e45:143e6dae1e27440582fd4032f28020b3
[I 07:01:00.630 NotebookApp] Replaying 5 buffered messages
[I 07:01:12.138 NotebookApp] Saving file at /14/14.ipynb
[I 07:02:28.086 NotebookApp] Adapting from protocol version 5.1 (kernel 077f576a-70ed-4a3c-bd67-2dcfb8b70e45) to 5.3 (client).
[I 07:02:54.043 NotebookApp] Kernel shutdown: 077f576a-70ed-4a3c-bd67-2dcfb8b70e45
[I 07:02:54.264 NotebookApp] Kernel started: f0fdc81a-7d39-4df4-98f1-8f6c914e2236
[I 07:03:15.268 NotebookApp] Starting buffering for f0fdc81a-7d39-4df4-98f1-8f6c914e2236:a68d1281c2b84a4e8e9725ba586f6078
[I 07:03:15.271 NotebookApp] Kernel shutdown: f0fdc81a-7d39-4df4-98f1-8f6c914e2236
[I 07:03:15.486 NotebookApp] Kernel started: 4caed222-fb3a-4dd4-9134-70d9c8603f92
[I 07:03:21.201 NotebookApp] Saving file at /14/14.ipynb
[I 07:03:32.863 NotebookApp] Starting buffering for 4caed222-fb3a-4dd4-9134-70d9c8603f92:a68d1281c2b84a4e8e9725ba586f6078
[I 07:03:32.866 NotebookApp] Kernel shutdown: 4caed222-fb3a-4dd4-9134-70d9c8603f92
[I 07:03:33.184 NotebookApp] Kernel started: b3d4b61e-b961-4bef-8ab4-40aa8553f5f9
[I 07:03:54.972 NotebookApp] Starting buffering for b3d4b61e-b961-4bef-8ab4-40aa8553f5f9:a68d1281c2b84a4e8e9725ba586f6078
[I 07:03:54.976 NotebookApp] Kernel shutdown: b3d4b61e-b961-4bef-8ab4-40aa8553f5f9
[I 07:03:55.190 NotebookApp] Kernel started: 90873b30-750b-45a7-ac3c-4779f685c632
[I 07:03:55.435 NotebookApp] Adapting from protocol version 5.1 (kernel 90873b30-750b-45a7-ac3c-4779f685c632) to 5.3 (client).
[I 07:04:03.989 NotebookApp] Starting buffering for 90873b30-750b-45a7-ac3c-4779f685c632:a68d1281c2b84a4e8e9725ba586f6078
[I 07:04:03.996 NotebookApp] Kernel shutdown: 90873b30-750b-45a7-ac3c-4779f685c632
[I 07:04:04.216 NotebookApp] Kernel started: 32c4e43a-79a4-47c7-af28-9066db83c281
[I 07:04:38.695 NotebookApp] Starting buffering for 32c4e43a-79a4-47c7-af28-9066db83c281:a68d1281c2b84a4e8e9725ba586f6078
[I 07:04:38.902 NotebookApp] Kernel restarted: 32c4e43a-79a4-47c7-af28-9066db83c281
[I 07:04:39.270 NotebookApp] Restoring connection for 32c4e43a-79a4-47c7-af28-9066db83c281:a68d1281c2b84a4e8e9725ba586f6078
[I 07:04:39.271 NotebookApp] Replaying 3 buffered messages
[I 07:04:42.314 NotebookApp] Starting buffering for 32c4e43a-79a4-47c7-af28-9066db83c281:a68d1281c2b84a4e8e9725ba586f6078
[I 07:04:42.316 NotebookApp] Kernel shutdown: 32c4e43a-79a4-47c7-af28-9066db83c281
[I 07:04:42.539 NotebookApp] Kernel started: 1666181a-3fc0-4ba5-8c82-532b3c629bfa
[I 07:04:42.891 NotebookApp] Adapting from protocol version 5.1 (kernel 1666181a-3fc0-4ba5-8c82-532b3c629bfa) to 5.3 (client).
[I 07:18:47.784 NotebookApp] Starting buffering for 1666181a-3fc0-4ba5-8c82-532b3c629bfa:a68d1281c2b84a4e8e9725ba586f6078
[I 07:18:48.571 NotebookApp] Adapting from protocol version 5.1 (kernel 1666181a-3fc0-4ba5-8c82-532b3c629bfa) to 5.3 (client).
[I 07:19:07.404 NotebookApp] Starting buffering for 1666181a-3fc0-4ba5-8c82-532b3c629bfa:5a768f83d51e4163804e2b4386fa5708
[I 07:19:07.409 NotebookApp] Kernel shutdown: 1666181a-3fc0-4ba5-8c82-532b3c629bfa
[I 07:19:07.629 NotebookApp] Kernel started: 0a272bea-409a-4a20-8b2e-2457f99acfe4
[I 07:19:28.348 NotebookApp] Starting buffering for 0a272bea-409a-4a20-8b2e-2457f99acfe4:5a768f83d51e4163804e2b4386fa5708
[I 07:19:28.351 NotebookApp] Kernel shutdown: 0a272bea-409a-4a20-8b2e-2457f99acfe4
[I 07:19:28.573 NotebookApp] Kernel started: 16fcac56-a486-43d5-aa92-8e571b7a4629
[I 07:19:35.006 NotebookApp] Starting buffering for 16fcac56-a486-43d5-aa92-8e571b7a4629:5a768f83d51e4163804e2b4386fa5708
[I 07:19:35.011 NotebookApp] Kernel shutdown: 16fcac56-a486-43d5-aa92-8e571b7a4629
[I 07:19:35.330 NotebookApp] Kernel started: d7ee07bf-d011-46c2-9b88-c985b51da052
[I 07:19:45.423 NotebookApp] Starting buffering for d7ee07bf-d011-46c2-9b88-c985b51da052:5a768f83d51e4163804e2b4386fa5708
[I 07:19:45.428 NotebookApp] Kernel shutdown: d7ee07bf-d011-46c2-9b88-c985b51da052
[I 07:19:45.646 NotebookApp] Kernel started: 64802d23-e939-48d7-b75d-965177fa6dc9
[I 07:19:45.970 NotebookApp] Adapting from protocol version 5.1 (kernel 64802d23-e939-48d7-b75d-965177fa6dc9) to 5.3 (client).
[I 07:20:49.245 NotebookApp] Saving file at /14/14.ipynb

这时候复制:

http://127.0.0.1:8888/?token=aa69c08dabed5356b6dfe8027ad9b4ffa16410e1676c1b10

并且把前面的127.0.0.1:8888(容器的ip和端口)改为宿主机的ip和8888映射到宿主机的端口12345:

http://192.168.2.159:12345/?token=aa69c08dabed5356b6dfe8027ad9b4ffa16410e1676c1b10

6.切换到py27环境安装utf9,uncompyle2模块

# conda env list
# conda environments:
#
base                  *  /opt/conda
py27                     /opt/conda/envs/py27

# conda activate py27

(py27) # cd utf9-master
(py27) # ls
LICENSE  README.rst  setup.py  utf9
(py27) # python setup.py install

(py27) # unzip uncompyle2-master.zip

(py27) # cd uncompyle2-master
(py27) # ls
MANIFEST.in  PKG-INFO  README  compile_tests  scripts  setup.cfg  setup.py  test  test_one  test_pythonlib  uncompyle2
(py27) # python setup.py install

7.完美在pupyter上面运行相关脚本

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://www.coloradmin.cn/o/1351219.html

如若内容造成侵权/违法违规/事实不符,请联系多彩编程网进行投诉反馈,一经查实,立即删除!

相关文章

Redis数据删除策略(惰性删除+定期删除)

文章目录 Redis数据删除策略1. 惰性删除2. 定期删除3. Redis过期删除策略用的哪种? Redis数据删除策略 1. 惰性删除 设置key过期时间后,不管它,需要用该key时,再检查是否过期,过期就删掉她,没过期返回 set …

车载 Android之 核心服务 - CarPropertyService 的VehicleHAL

前言: 本文是车载Android之核心服务-CarPropertyService的第二篇,了解一下CarPropertyService的VehicleHAL, 第一篇在车载 Android之 核心服务 - CarPropertyService 解析-CSDN博客,有兴趣的 朋友可以去看下。 本节介绍 AndroidAutomotiveOS中对于 Veh…

如何在 Ubuntu 20.04 上以独立模式设置 MinIO 对象存储服务器

前些天发现了一个人工智能学习网站,通俗易懂,风趣幽默,最重要的屌图甚多,忍不住分享一下给大家。点击跳转到网站。 如何在 Ubuntu 20.04 上以独立模式设置 MinIO 对象存储服务器 介绍 存储非结构化对象数据 blob 并使其可通过 …

jenkins +jmeter 报告乱码解决

问题:生产报告会乱码的问题,一般是有编码格式引起的。我遇到的问题是,jmeter需要读取csv的数据作为参数。但是我们并不知道csv保存是什么编码格式,有可能不是utf-8的编码格式,所以会导致中文乱码的问题 解决方案&#…

sealor安装k8s

文章目录 平台介绍sealos(github下载)百度网盘 部署删除污点命令补全验证 平台介绍 模块功能描述公共部分权限管理(登录)集成K8s自身RBAC授权公共部分命名空间选择展示不通命名空间资源仪表盘命名空间|计算资源|存储资源|节点状态展示主要指标状况k8s集群node|namespace|pv创建…

【java爬虫】股票数据获取工具前后端代码

前面我们有好多文章都是在介绍股票数据获取工具,这是一个前后端分离项目 后端技术栈:springboot,sqlite,jdbcTemplate,okhttp 前端技术栈:vue,element-plus,echarts,ax…

Matlab论文插图绘制模板第133期—函数极坐标折线图

在之前的文章中,分享了Matlab函数折线图的绘制模板: 函数三维折线图: 函数网格曲面图: 函数曲面图: 函数等高线图: 函数等高线填充图: 进一步,再来分享一下函数极坐标折线图。 先来…

IPA打包过程中的Invalid Bundle Structure错误如果解决

在iOS应用程序开发中,打包和发布应用程序是一个必要的步骤。有的时候在打包的过程中可能会遇到一些错误,其中一个比较常见的错误是"Invalid Bundle Structure"。这个错误通常意味着应用程序的文件结构不正确,而导致的无法成功打包应…

webshell检测方式深度剖析 --- Pixy系列二(数据流分析)

开篇 书接上文,这次我们来聊聊数据流分析,数据流分析的内容非常广泛,我们力求深入浅出通俗易懂,在简短的篇幅内将这一概念描述清楚。 简单来说,数据流分析是一种用来获取相关数据沿着程序执行路径流动的信息分析技术…

如何移除视频中的背景音乐或人物声音

移除视频声音是将视频指定的声音移除,可以选择移除人物声音还是视频的背景音乐,方便实现二次创作。 小编给大家推荐一些方法帮助大家更轻松地移除视频中的背景音乐或人物声音,有兴趣的朋友请自行百度查找,或小程序查找 1、方法&a…

autograd与逻辑回归

一、autograd—自动求导系统 torch.autograd.backward() torch.autograd.backward()是PyTorch中用于计算梯度的函数。以下是对该函数的参数的解释: 功能:自动求取梯度 • tensors: 用于求导的张量,如 loss • retain_graph : 保存计算图 •…

密码学:带密钥的消息摘要算法一数字签名算法

文章目录 前言手写签名和数字签名前置知识点:消息摘要算法数字签名算法数字签名算法的由来数字签名算法在实际运用的过程附加:签名和摘要值的解释 数字签名算法的家谱数字签名算法的消息传递模型经典数字签名算法-RSA实现 数字签名标准算法-DSA实现 圆曲…

汽车架构解析:python cantools库快速解析arxml

文章目录 前言一、安装cantools二、官方说明文档三、cantools方法1、解析message的属性2、解析pdu中的signals3、根据message查找signals4、报文组成bytes 总结 前言 曾经有拿cantools来解析过dbc,用得比较浅,不知道可以用来解析arxml。最近有个需求需要…

Linux安装nginx(带http ssl)

nginx安装 nginx文件 以及gcc pcre zlib openssl 网盘下载 1.安装gcc yum -y install gcc gcc-c 2.安装pcre rpm -ivh pcre-8.32-17.el7.x86_64.rpm --force --nodeps rpm -ivh pcre-devel-8.32-17.el7.x86_64.rpm --force --nodeps 3.安装zlib tar -zxvf zlib-1.2.11.ta…

mfc100u.dll文件丢失,有五种不同解决方法

在计算机使用过程中,我们经常会遇到一些错误提示,其中之一就是“找不到mfc100u.dll文件”。那么,mfc100u.dll文件到底是什么?为什么会出现丢失的情况?本文将详细介绍mfc100u.dll文件的作用以及丢失的原因,并…

冒泡排序-排序算法

前言 如果有6个人站成一排,要将他们按从矮到高的顺序排列。你可能有多种方式来完成。但是如果其中有一个人特别高,比他身边的人高,在队伍中特别明显,你可以轻易看出那个最高的需要和身边的人交换位置,这是冒泡排序的核…

服务器硬件及RAID磁盘阵列详解

文章目录 一、服务器硬件服务器常见故障 二、RAID磁盘阵列详解1、RAID磁盘阵列概述2、RAID 0(条带化存储)3、RAID 1(镜像存储)4、RAID 55、RAID 66、RAID 10(先做镜像,再做条带)7、RAID 01(先做条带&#x…

计算机视觉 - 了解Mosaic数据增强

一、简述 数据增强包含各种扩展和增强机器学习和深度学习模型数据集的技术。这些方法跨越不同的类别,每种方法都会改变数据以引入多样性并提高模型的稳健性。几何变换(例如旋转、平移、缩放和翻转)会修改图像方向和结构。颜色和对比度调整会改变图像外观,包括亮度、对比度和…

贪心算法part04 860柠檬水找零 406根据身高重建队列

860 柠檬水找零 406 根据身高重建队列 452 用最少数量的箭引爆气球

使用ffmpeg实现视频裁剪并保持清高晰度

1 原始视频信息 通过ffmpeg -i命令查看视频基本信息 ffmpeg -i source.mp4 ffmpeg version 6.1-essentials_build-www.gyan.dev Copyright (c) 2000-2023 the FFmpeg developersbuilt with gcc 12.2.0 (Rev10, Built by MSYS2 project)configuration: --enable-gpl --enable-…