Benutzer-Werkzeuge

Webseiten-Werkzeuge


playground:about:coworking:conda_python_node

todo

  • codeblock Terminalausgabe aufräumen
  • Schritte dokumentieren
  • wic:-\ wichtig nano package.json die Zeile am Ende einfügen
    ,"type": "module"
  • pull und commit der Dateien in https://github.com/onlineCodes/notes
  • MiniConda Installation mit davor setzen FIXME
(n20_11p3_11) intrepid-ibex@intrepid-ibex:~/2bhCode/express20.11AppP3.11$ conda deactivate
(base) intrepid-ibex@intrepid-ibex:~/2bhCode/express20.11AppP3.11$ conda create -n n20p3 python=3.11
Channels:
 - conda-forge
 - defaults
Platform: linux-64
Collecting package metadata (repodata.json): done
Solving environment: done

## Package Plan ##

  environment location: /home/intrepid-ibex/miniconda3/envs/n20p3

  added / updated specs:
    - python=3.11


The following NEW packages will be INSTALLED:

  _libgcc_mutex      conda-forge/linux-64::_libgcc_mutex-0.1-conda_forge 
  _openmp_mutex      conda-forge/linux-64::_openmp_mutex-4.5-2_gnu 
  bzip2              conda-forge/linux-64::bzip2-1.0.8-hd590300_5 
  ca-certificates    conda-forge/linux-64::ca-certificates-2023.11.17-hbcca054_0 
  ld_impl_linux-64   conda-forge/linux-64::ld_impl_linux-64-2.40-h41732ed_0 
  libexpat           conda-forge/linux-64::libexpat-2.5.0-hcb278e6_1 
  libffi             conda-forge/linux-64::libffi-3.4.2-h7f98852_5 
  libgcc-ng          conda-forge/linux-64::libgcc-ng-13.2.0-h807b86a_3 
  libgomp            conda-forge/linux-64::libgomp-13.2.0-h807b86a_3 
  libnsl             conda-forge/linux-64::libnsl-2.0.1-hd590300_0 
  libsqlite          conda-forge/linux-64::libsqlite-3.44.2-h2797004_0 
  libuuid            conda-forge/linux-64::libuuid-2.38.1-h0b41bf4_0 
  libxcrypt          conda-forge/linux-64::libxcrypt-4.4.36-hd590300_1 
  libzlib            conda-forge/linux-64::libzlib-1.2.13-hd590300_5 
  ncurses            conda-forge/linux-64::ncurses-6.4-h59595ed_2 
  openssl            conda-forge/linux-64::openssl-3.2.0-hd590300_1 
  pip                conda-forge/noarch::pip-23.3.2-pyhd8ed1ab_0 
  python             conda-forge/linux-64::python-3.11.7-hab00c5b_1_cpython 
  readline           conda-forge/linux-64::readline-8.2-h8228510_1 
  setuptools         conda-forge/noarch::setuptools-69.0.3-pyhd8ed1ab_0 
  tk                 conda-forge/linux-64::tk-8.6.13-noxft_h4845f30_101 
  tzdata             conda-forge/noarch::tzdata-2023d-h0c530f3_0 
  wheel              conda-forge/noarch::wheel-0.42.0-pyhd8ed1ab_0 
  xz                 conda-forge/linux-64::xz-5.2.6-h166bdaf_0 


Proceed ([y]/n)? y


Downloading and Extracting Packages:

Preparing transaction: done
Verifying transaction: done
Executing transaction: done
#
# To activate this environment, use
#
#     $ conda activate n20p3
#
# To deactivate an active environment, use
#
#     $ conda deactivate

(base) intrepid-ibex@intrepid-ibex:~/2bhCode/express20.11AppP3.11$ conda activate n20p3
(n20p3) intrepid-ibex@intrepid-ibex:~/2bhCode/express20.11AppP3.11$ conda config --add channels conda-forge
Warning: 'conda-forge' already in 'channels' list, moving to the top
(n20p3) intrepid-ibex@intrepid-ibex:~/2bhCode/express20.11AppP3.11$ conda env remove -n n20_11p3_11

Remove all packages in environment /home/intrepid-ibex/miniconda3/envs/n20_11p3_11:

(n20p3) intrepid-ibex@intrepid-ibex:~/2bhCode/express20.11AppP3.11$ conda env list
# conda environments:
#
base                     /home/intrepid-ibex/miniconda3
jupyterhub-tutorial      /home/intrepid-ibex/miniconda3/envs/jupyterhub-tutorial
n20p3                 *  /home/intrepid-ibex/miniconda3/envs/n20p3
p38lab                   /home/intrepid-ibex/miniconda3/envs/p38lab
                         /opt/tljh/user

(n20p3) intrepid-ibex@intrepid-ibex:~/2bhCode/express20.11AppP3.11$ conda search -c conda-forge nodejs
Loading channels: done
# Name                       Version           Build  Channel             
nodejs                         4.4.1               0  conda-forge         
nodejs                         4.4.7               0  conda-forge         
nodejs                         4.5.0               0  conda-forge         
nodejs                         6.6.0               0  conda-forge         
nodejs                        6.10.2               0  conda-forge         
nodejs                        6.11.0               0  conda-forge         
nodejs                        6.11.2      h3db8ef7_0  pkgs/main           
nodejs                        6.12.0               0  conda-forge         
nodejs                        6.12.2               0  conda-forge         
nodejs                        6.13.1               0  conda-forge         
nodejs                         8.8.1               0  conda-forge         
nodejs                         8.9.1               0  conda-forge         
nodejs                         8.9.3               0  conda-forge         
nodejs                         8.9.3      h439df22_0  pkgs/main           
nodejs                        8.10.0               0  conda-forge         
nodejs                        8.11.1      hf484d3e_0  pkgs/main           
nodejs                        8.11.3      hf484d3e_0  pkgs/main           
nodejs                        8.11.4      he6710b0_0  pkgs/main           
nodejs                        8.12.0      he6710b0_0  pkgs/main           
nodejs                         9.5.0               0  conda-forge         
nodejs                         9.9.0               0  conda-forge         
nodejs                        9.11.0               0  conda-forge         
nodejs                        9.11.1               0  conda-forge         
nodejs                        10.4.1               0  conda-forge         
nodejs                        10.8.0               0  conda-forge         
nodejs                        10.8.0   hf484d3e_1001  conda-forge         
nodejs                        10.8.0      hfc679d8_1  conda-forge         
nodejs                       10.12.0   hf484d3e_1000  conda-forge         
nodejs                       10.12.0      hfc679d8_0  conda-forge         
nodejs                       10.13.0      he6710b0_0  pkgs/main           
nodejs                       10.15.3      hf484d3e_0  conda-forge         
nodejs                       10.16.3      h10a4023_0  conda-forge         
nodejs                       10.22.0      hf5d1a2b_0  conda-forge         
nodejs                        11.4.0   hf484d3e_1000  conda-forge         
nodejs                        11.5.0   hf484d3e_1000  conda-forge         
nodejs                        11.6.0   hf484d3e_1000  conda-forge         
nodejs                        11.7.0      hf484d3e_0  conda-forge         
nodejs                        11.8.0      hf484d3e_0  conda-forge         
nodejs                        11.9.0      hf484d3e_0  conda-forge         
nodejs                       11.10.0      hf484d3e_0  conda-forge         
nodejs                       11.11.0      hf484d3e_0  conda-forge         
nodejs                       11.14.0      he1b5a44_0  conda-forge         
nodejs                       11.14.0      he1b5a44_1  conda-forge         
nodejs                        12.1.0      he1b5a44_1  conda-forge         
nodejs                        12.3.0      he1b5a44_0  conda-forge         
nodejs                        12.3.1      he1b5a44_0  conda-forge         
nodejs                        12.4.0      he1b5a44_0  conda-forge         
nodejs                        12.7.0      h10a4023_1  conda-forge         
nodejs                        12.7.0      he1b5a44_0  conda-forge         
nodejs                        12.8.0      h10a4023_1  conda-forge         
nodejs                        12.8.1      h10a4023_0  conda-forge         
nodejs                        12.9.0      h10a4023_0  conda-forge         
nodejs                        12.9.1      h10a4023_0  conda-forge         
nodejs                       12.10.0      h10a4023_0  conda-forge         
nodejs                       12.11.1      h10a4023_0  conda-forge         
nodejs                       12.12.0      h10a4023_0  conda-forge         
nodejs                       12.13.0      h10a4023_0  conda-forge         
nodejs                       12.14.1      h67efad7_0  conda-forge         
nodejs                       12.16.0      h67efad7_0  conda-forge         
nodejs                       12.16.1      h67efad7_0  conda-forge         
nodejs                       12.18.3      h628520e_1  conda-forge         
nodejs                       12.18.3      h67efad7_0  conda-forge         
nodejs                       12.19.0      h628520e_0  conda-forge         
nodejs                       12.19.0      h8b53aa1_3  conda-forge         
nodejs                       12.19.0      hdbd6b0a_1  conda-forge         
nodejs                       12.19.0      hfa01f41_2  conda-forge         
nodejs                       12.22.6      h8b53aa1_0  conda-forge         
nodejs                        13.0.0      h10a4023_1  conda-forge         
nodejs                        13.6.0      h10a4023_0  conda-forge         
nodejs                        13.7.0      h10a4023_0  conda-forge         
nodejs                        13.8.0      h10a4023_0  conda-forge         
nodejs                        13.9.0      h10a4023_0  conda-forge         
nodejs                        13.9.0      hf5d1a2b_1  conda-forge         
nodejs                       13.10.1      hf5d1a2b_0  conda-forge         
nodejs                       13.12.0      hf5d1a2b_0  conda-forge         
nodejs                       13.13.0      hf5d1a2b_0  conda-forge         
nodejs                        14.2.0      h568c755_1  conda-forge         
nodejs                        14.2.0      hf5d1a2b_0  conda-forge         
nodejs                        14.3.0      h568c755_0  conda-forge         
nodejs                        14.4.0      h568c755_0  conda-forge         
nodejs                        14.5.0      h568c755_0  conda-forge         
nodejs                        14.6.0      h568c755_0  conda-forge         
nodejs                        14.7.0      h568c755_0  conda-forge         
nodejs                        14.8.0      h568c755_0  conda-forge         
nodejs                        14.8.0      hda19d22_0  pkgs/main           
nodejs                        14.9.0      h568c755_0  conda-forge         
nodejs                       14.10.0      h568c755_0  conda-forge         
nodejs                       14.10.1      h568c755_0  conda-forge         
nodejs                       14.11.0      h568c755_0  conda-forge         
nodejs                       14.12.0      h568c755_0  conda-forge         
nodejs                       14.13.0      h568c755_0  conda-forge         
nodejs                       14.13.1      h568c755_0  conda-forge         
nodejs                       14.14.0      h25f6087_2  conda-forge         
nodejs                       14.14.0      h568c755_0  conda-forge         
nodejs                       14.14.0      h914e61d_0  conda-forge         
nodejs                       14.14.0      h914e61d_1  conda-forge         
nodejs                       14.15.1      h25f6087_0  conda-forge         
nodejs                       14.15.4      h92b4a50_0  conda-forge         
nodejs                       14.15.4      h92b4a50_1  conda-forge         
nodejs                       14.17.1      h92b4a50_1  conda-forge         
nodejs                       14.17.4      h92b4a50_0  conda-forge         
nodejs                       14.17.4      h92b4a50_1  conda-forge         
nodejs                       14.18.3      h8ca31f7_2  conda-forge         
nodejs                       14.18.3      h92b4a50_1  conda-forge         
nodejs                       14.18.3      h96d913c_3  conda-forge         
nodejs                       14.19.0      h96d913c_0  conda-forge         
nodejs                       14.19.1      h96d913c_0  conda-forge         
nodejs                       14.19.2      h96d913c_0  conda-forge         
nodejs                       14.19.3      h96d913c_0  conda-forge         
nodejs                       14.20.0      h96d913c_0  conda-forge         
nodejs                       14.20.1      h96d913c_0  conda-forge         
nodejs                       14.20.1      h96d913c_1  conda-forge         
nodejs                       14.20.1      hb42c98f_1  conda-forge         
nodejs                        15.1.0      h914e61d_0  conda-forge         
nodejs                        15.2.0      h914e61d_0  conda-forge         
nodejs                        15.2.1      h25f6087_1  conda-forge         
nodejs                        15.2.1      h914e61d_0  conda-forge         
nodejs                        15.3.0      h25f6087_0  conda-forge         
nodejs                        15.3.0      h92b4a50_1  conda-forge         
nodejs                        15.8.0      h92b4a50_1  conda-forge         
nodejs                       15.10.0      h92b4a50_0  conda-forge         
nodejs                       15.10.0      h92b4a50_1  conda-forge         
nodejs                       15.11.0      h92b4a50_0  conda-forge         
nodejs                       15.12.0      h92b4a50_0  conda-forge         
nodejs                       15.13.0      h92b4a50_0  conda-forge         
nodejs                       15.14.0      h92b4a50_0  conda-forge         
nodejs                        16.4.1      h92b4a50_0  conda-forge         
nodejs                        16.5.0      h92b4a50_0  conda-forge         
nodejs                        16.6.0      h92b4a50_0  conda-forge         
nodejs                        16.6.1      h92b4a50_0  conda-forge         
nodejs                        16.6.1      hb931c9a_0  pkgs/main           
nodejs                        16.9.0      h92b4a50_0  conda-forge         
nodejs                       16.10.0      h73e1104_1  conda-forge         
nodejs                       16.10.0      h92b4a50_0  conda-forge         
nodejs                       16.10.0      h92b4a50_1  conda-forge         
nodejs                       16.11.1      h73e1104_0  conda-forge         
nodejs                       16.11.1      h92b4a50_0  conda-forge         
nodejs                       16.12.0      h73e1104_0  conda-forge         
nodejs                       16.12.0      h8ca31f7_1  conda-forge         
nodejs                       16.12.0      h92b4a50_0  conda-forge         
nodejs                       16.12.0      hb5e7134_1  conda-forge         
nodejs                       16.13.0      h8ca31f7_0  conda-forge         
nodejs                       16.13.0      h8ca31f7_1  conda-forge         
nodejs                       16.13.0      h8ca31f7_2  conda-forge         
nodejs                       16.13.0      hb5e7134_0  conda-forge         
nodejs                       16.13.0      hb5e7134_1  conda-forge         
nodejs                       16.13.0      hb5e7134_2  conda-forge         
nodejs                       16.13.1      hb931c9a_0  pkgs/main           
nodejs                       16.13.2      h8ca31f7_2  conda-forge         
nodejs                       16.13.2      hb5e7134_2  conda-forge         
nodejs                       16.14.2      h784f1fd_0  conda-forge         
nodejs                       16.14.2      h8839609_1  conda-forge         
nodejs                       16.14.2      h96d913c_1  conda-forge         
nodejs                       16.14.2      hfba9c51_0  conda-forge         
nodejs                       16.15.0      h8839609_0  conda-forge         
nodejs                       16.15.0      h96d913c_0  conda-forge         
nodejs                       16.15.1      h8839609_0  conda-forge         
nodejs                       16.15.1      h96d913c_0  conda-forge         
nodejs                       16.16.0      h8839609_0  conda-forge         
nodejs                       16.16.0      h96d913c_0  conda-forge         
nodejs                       16.17.0      h8839609_0  conda-forge         
nodejs                       16.17.0      h96d913c_0  conda-forge         
nodejs                       16.17.1      h8839609_0  conda-forge         
nodejs                       16.17.1      h96d913c_0  conda-forge         
nodejs                       16.18.0      h8d033a5_0  conda-forge         
nodejs                       16.18.1      h8d033a5_0  conda-forge         
nodejs                       16.19.0      h4abf6b9_1  conda-forge         
nodejs                       16.19.0      h8d033a5_0  conda-forge         
nodejs                       16.20.2      h1990674_2  conda-forge         
nodejs                       16.20.2      hf52ce11_1  conda-forge         
nodejs                        17.1.0      h8ca31f7_1  conda-forge         
nodejs                        17.1.0      h8ca31f7_2  conda-forge         
nodejs                        17.1.0      hb5e7134_1  conda-forge         
nodejs                        17.1.0      hb5e7134_2  conda-forge         
nodejs                        17.4.0      h8ca31f7_0  conda-forge         
nodejs                        17.4.0      hb5e7134_0  conda-forge         
nodejs                        17.7.1      h784f1fd_0  conda-forge         
nodejs                        17.7.1      hfba9c51_0  conda-forge         
nodejs                        17.8.0      h784f1fd_0  conda-forge         
nodejs                        17.8.0      h8839609_1  conda-forge         
nodejs                        17.8.0      h96d913c_1  conda-forge         
nodejs                        17.8.0      hfba9c51_0  conda-forge         
nodejs                        17.9.0      h8839609_0  conda-forge         
nodejs                        17.9.0      h96d913c_0  conda-forge         
nodejs                        18.3.0      h8839609_0  conda-forge         
nodejs                        18.3.0      h96d913c_0  conda-forge         
nodejs                        18.5.0      h8839609_0  conda-forge         
nodejs                        18.5.0      h96d913c_0  conda-forge         
nodejs                        18.6.0      h8839609_0  conda-forge         
nodejs                        18.6.0      h96d913c_0  conda-forge         
nodejs                        18.7.0      h8839609_0  conda-forge         
nodejs                        18.7.0      h96d913c_0  conda-forge         
nodejs                        18.8.0      h8839609_0  conda-forge         
nodejs                        18.8.0      h96d913c_0  conda-forge         
nodejs                        18.9.0      h8839609_0  conda-forge         
nodejs                        18.9.0      h96d913c_0  conda-forge         
nodejs                        18.9.1      h8839609_0  conda-forge         
nodejs                        18.9.1      h96d913c_0  conda-forge         
nodejs                       18.10.0      h8839609_0  conda-forge         
nodejs                       18.10.0      h96d913c_0  conda-forge         
nodejs                       18.11.0      h8839609_0  conda-forge         
nodejs                       18.11.0      h96d913c_0  conda-forge         
nodejs                       18.12.1      h8839609_0  conda-forge         
nodejs                       18.12.1      h96d913c_0  conda-forge         
nodejs                       18.13.0      h8d033a5_0  conda-forge         
nodejs                       18.14.0      h8d033a5_0  conda-forge         
nodejs                       18.14.1      h8d033a5_0  conda-forge         
nodejs                       18.14.2      h8d033a5_0  conda-forge         
nodejs                       18.15.0      h4abf6b9_1  conda-forge         
nodejs                       18.15.0      h8d033a5_0  conda-forge         
nodejs                       18.15.0      ha637b67_0  pkgs/main           
nodejs                       18.16.0      h2d74bed_0  pkgs/main           
nodejs                       18.16.0      h2d74bed_1  pkgs/main           
nodejs                       18.16.0      ha637b67_1  pkgs/main           
nodejs                       18.16.1      hf52ce11_0  conda-forge         
nodejs                       18.17.1      h1990674_1  conda-forge         
nodejs                       18.17.1      hf52ce11_0  conda-forge         
nodejs                       18.18.2      h2d74bed_0  pkgs/main           
nodejs                       18.18.2      hb753e55_1  conda-forge         
nodejs                        20.1.0      hf52ce11_0  conda-forge         
nodejs                        20.5.1      hb753e55_1  conda-forge         
nodejs                        20.5.1      hf52ce11_0  conda-forge         
nodejs                        20.6.0      hb753e55_0  conda-forge         
nodejs                        20.6.1      hb753e55_0  conda-forge         
nodejs                        20.7.0      hb753e55_0  conda-forge         
nodejs                        20.8.0      hb753e55_0  conda-forge         
nodejs                        20.8.1      h1990674_0  conda-forge         
nodejs                        20.9.0      hb753e55_0  conda-forge         
(n20p3) intrepid-ibex@intrepid-ibex:~/2bhCode/express20.11AppP3.11$ conda deactivate n20p3

ArgumentError: deactivate does not accept arguments
remainder_args: ['n20p3']


(n20p3) intrepid-ibex@intrepid-ibex:~/2bhCode/express20.11AppP3.11$ conda deactivate
(base) intrepid-ibex@intrepid-ibex:~/2bhCode/express20.11AppP3.11$ conda env remove -n n20p3

Remove all packages in environment /home/intrepid-ibex/miniconda3/envs/n20p3:

(base) intrepid-ibex@intrepid-ibex:~/2bhCode/express20.11AppP3.11$ conda create -n n20p3 python=3.9 nodejs=20.9.0
Channels:
 - conda-forge
 - defaults
Platform: linux-64
Collecting package metadata (repodata.json): done
Solving environment: done

## Package Plan ##

  environment location: /home/intrepid-ibex/miniconda3/envs/n20p3

  added / updated specs:
    - nodejs=20.9.0
    - python=3.9


The following packages will be downloaded:

    package                    |            build
    ---------------------------|-----------------
    icu-73.2                   |       h59595ed_0        11.5 MB  conda-forge
    libuv-1.46.0               |       hd590300_0         872 KB  conda-forge
    nodejs-20.9.0              |       hb753e55_0        16.3 MB  conda-forge
    python-3.9.18              |h0755675_1_cpython        22.7 MB  conda-forge
    ------------------------------------------------------------
                                           Total:        51.4 MB

The following NEW packages will be INSTALLED:

  _libgcc_mutex      conda-forge/linux-64::_libgcc_mutex-0.1-conda_forge 
  _openmp_mutex      conda-forge/linux-64::_openmp_mutex-4.5-2_gnu 
  bzip2              conda-forge/linux-64::bzip2-1.0.8-hd590300_5 
  ca-certificates    conda-forge/linux-64::ca-certificates-2023.11.17-hbcca054_0 
  icu                conda-forge/linux-64::icu-73.2-h59595ed_0 
  ld_impl_linux-64   conda-forge/linux-64::ld_impl_linux-64-2.40-h41732ed_0 
  libffi             conda-forge/linux-64::libffi-3.4.2-h7f98852_5 
  libgcc-ng          conda-forge/linux-64::libgcc-ng-13.2.0-h807b86a_3 
  libgomp            conda-forge/linux-64::libgomp-13.2.0-h807b86a_3 
  libnsl             conda-forge/linux-64::libnsl-2.0.1-hd590300_0 
  libsqlite          conda-forge/linux-64::libsqlite-3.44.2-h2797004_0 
  libstdcxx-ng       conda-forge/linux-64::libstdcxx-ng-13.2.0-h7e041cc_3 
  libuuid            conda-forge/linux-64::libuuid-2.38.1-h0b41bf4_0 
  libuv              conda-forge/linux-64::libuv-1.46.0-hd590300_0 
  libxcrypt          conda-forge/linux-64::libxcrypt-4.4.36-hd590300_1 
  libzlib            conda-forge/linux-64::libzlib-1.2.13-hd590300_5 
  ncurses            conda-forge/linux-64::ncurses-6.4-h59595ed_2 
  nodejs             conda-forge/linux-64::nodejs-20.9.0-hb753e55_0 
  openssl            conda-forge/linux-64::openssl-3.2.0-hd590300_1 
  pip                conda-forge/noarch::pip-23.3.2-pyhd8ed1ab_0 
  python             conda-forge/linux-64::python-3.9.18-h0755675_1_cpython 
  readline           conda-forge/linux-64::readline-8.2-h8228510_1 
  setuptools         conda-forge/noarch::setuptools-69.0.3-pyhd8ed1ab_0 
  tk                 conda-forge/linux-64::tk-8.6.13-noxft_h4845f30_101 
  tzdata             conda-forge/noarch::tzdata-2023d-h0c530f3_0 
  wheel              conda-forge/noarch::wheel-0.42.0-pyhd8ed1ab_0 
  xz                 conda-forge/linux-64::xz-5.2.6-h166bdaf_0 
  zlib               conda-forge/linux-64::zlib-1.2.13-hd590300_5 


Proceed ([y]/n)? y


Downloading and Extracting Packages:
                                                                                                                                     
Preparing transaction: done                                                                                                          
Verifying transaction: done                                                                                                          
Executing transaction: done                                                                                                          
#
# To activate this environment, use
#
#     $ conda activate n20p3
#
# To deactivate an active environment, use
#
#     $ conda deactivate

(base) intrepid-ibex@intrepid-ibex:~/2bhCode/express20.11AppP3.11$ conda activate n20p3
(n20p3) intrepid-ibex@intrepid-ibex:~/2bhCode/express20.11AppP3.11$ no
node         nohup        nologin      nop          normalizer   notify-send  
(n20p3) intrepid-ibex@intrepid-ibex:~/2bhCode/express20.11AppP3.11$ node -v
v20.9.0
(n20p3) intrepid-ibex@intrepid-ibex:~/2bhCode/express20.11AppP3.11$ python -v
import _frozen_importlib # frozen
import _imp # builtin
import '_thread' # <class '_frozen_importlib.BuiltinImporter'>
import '_warnings' # <class '_frozen_importlib.BuiltinImporter'>
import '_weakref' # <class '_frozen_importlib.BuiltinImporter'>
import '_io' # <class '_frozen_importlib.BuiltinImporter'>
import 'marshal' # <class '_frozen_importlib.BuiltinImporter'>
import 'posix' # <class '_frozen_importlib.BuiltinImporter'>
import '_frozen_importlib_external' # <class '_frozen_importlib.FrozenImporter'>
# installing zipimport hook
import 'time' # <class '_frozen_importlib.BuiltinImporter'>
import 'zipimport' # <class '_frozen_importlib.FrozenImporter'>
# installed zipimport hook
# /home/intrepid-ibex/miniconda3/envs/n20p3/lib/python3.9/encodings/__pycache__/__init__.cpython-39.pyc matches /home/intrepid-ibex/miniconda3/envs/n20p3/lib/python3.9/encodings/__init__.py
# code object from '/home/intrepid-ibex/miniconda3/envs/n20p3/lib/python3.9/encodings/__pycache__/__init__.cpython-39.pyc'
# /home/intrepid-ibex/miniconda3/envs/n20p3/lib/python3.9/__pycache__/codecs.cpython-39.pyc matches /home/intrepid-ibex/miniconda3/envs/n20p3/lib/python3.9/codecs.py
# code object from '/home/intrepid-ibex/miniconda3/envs/n20p3/lib/python3.9/__pycache__/codecs.cpython-39.pyc'
import '_codecs' # <class '_frozen_importlib.BuiltinImporter'>
import 'codecs' # <_frozen_importlib_external.SourceFileLoader object at 0x7f530df6a4f0>
# /home/intrepid-ibex/miniconda3/envs/n20p3/lib/python3.9/encodings/__pycache__/aliases.cpython-39.pyc matches /home/intrepid-ibex/miniconda3/envs/n20p3/lib/python3.9/encodings/aliases.py
# code object from '/home/intrepid-ibex/miniconda3/envs/n20p3/lib/python3.9/encodings/__pycache__/aliases.cpython-39.pyc'
import 'encodings.aliases' # <_frozen_importlib_external.SourceFileLoader object at 0x7f530df03a90>
import 'encodings' # <_frozen_importlib_external.SourceFileLoader object at 0x7f530df6a310>
# /home/intrepid-ibex/miniconda3/envs/n20p3/lib/python3.9/encodings/__pycache__/utf_8.cpython-39.pyc matches /home/intrepid-ibex/miniconda3/envs/n20p3/lib/python3.9/encodings/utf_8.py
# code object from '/home/intrepid-ibex/miniconda3/envs/n20p3/lib/python3.9/encodings/__pycache__/utf_8.cpython-39.pyc'
import 'encodings.utf_8' # <_frozen_importlib_external.SourceFileLoader object at 0x7f530df6a340>
import '_signal' # <class '_frozen_importlib.BuiltinImporter'>
# /home/intrepid-ibex/miniconda3/envs/n20p3/lib/python3.9/encodings/__pycache__/latin_1.cpython-39.pyc matches /home/intrepid-ibex/miniconda3/envs/n20p3/lib/python3.9/encodings/latin_1.py
# code object from '/home/intrepid-ibex/miniconda3/envs/n20p3/lib/python3.9/encodings/__pycache__/latin_1.cpython-39.pyc'
import 'encodings.latin_1' # <_frozen_importlib_external.SourceFileLoader object at 0x7f530df03b80>
# /home/intrepid-ibex/miniconda3/envs/n20p3/lib/python3.9/__pycache__/io.cpython-39.pyc matches /home/intrepid-ibex/miniconda3/envs/n20p3/lib/python3.9/io.py
# code object from '/home/intrepid-ibex/miniconda3/envs/n20p3/lib/python3.9/__pycache__/io.cpython-39.pyc'
# /home/intrepid-ibex/miniconda3/envs/n20p3/lib/python3.9/__pycache__/abc.cpython-39.pyc matches /home/intrepid-ibex/miniconda3/envs/n20p3/lib/python3.9/abc.py
# code object from '/home/intrepid-ibex/miniconda3/envs/n20p3/lib/python3.9/__pycache__/abc.cpython-39.pyc'
import '_abc' # <class '_frozen_importlib.BuiltinImporter'>
import 'abc' # <_frozen_importlib_external.SourceFileLoader object at 0x7f530df03f70>
import 'io' # <_frozen_importlib_external.SourceFileLoader object at 0x7f530df03d60>
# /home/intrepid-ibex/miniconda3/envs/n20p3/lib/python3.9/__pycache__/site.cpython-39.pyc matches /home/intrepid-ibex/miniconda3/envs/n20p3/lib/python3.9/site.py
# code object from '/home/intrepid-ibex/miniconda3/envs/n20p3/lib/python3.9/__pycache__/site.cpython-39.pyc'
# /home/intrepid-ibex/miniconda3/envs/n20p3/lib/python3.9/__pycache__/os.cpython-39.pyc matches /home/intrepid-ibex/miniconda3/envs/n20p3/lib/python3.9/os.py
# code object from '/home/intrepid-ibex/miniconda3/envs/n20p3/lib/python3.9/__pycache__/os.cpython-39.pyc'
# /home/intrepid-ibex/miniconda3/envs/n20p3/lib/python3.9/__pycache__/stat.cpython-39.pyc matches /home/intrepid-ibex/miniconda3/envs/n20p3/lib/python3.9/stat.py
# code object from '/home/intrepid-ibex/miniconda3/envs/n20p3/lib/python3.9/__pycache__/stat.cpython-39.pyc'
import '_stat' # <class '_frozen_importlib.BuiltinImporter'>
import 'stat' # <_frozen_importlib_external.SourceFileLoader object at 0x7f530deb98e0>
# /home/intrepid-ibex/miniconda3/envs/n20p3/lib/python3.9/__pycache__/_collections_abc.cpython-39.pyc matches /home/intrepid-ibex/miniconda3/envs/n20p3/lib/python3.9/_collections_abc.py
# code object from '/home/intrepid-ibex/miniconda3/envs/n20p3/lib/python3.9/__pycache__/_collections_abc.cpython-39.pyc'
import '_collections_abc' # <_frozen_importlib_external.SourceFileLoader object at 0x7f530deb9970>
# /home/intrepid-ibex/miniconda3/envs/n20p3/lib/python3.9/__pycache__/posixpath.cpython-39.pyc matches /home/intrepid-ibex/miniconda3/envs/n20p3/lib/python3.9/posixpath.py
# code object from '/home/intrepid-ibex/miniconda3/envs/n20p3/lib/python3.9/__pycache__/posixpath.cpython-39.pyc'
# /home/intrepid-ibex/miniconda3/envs/n20p3/lib/python3.9/__pycache__/genericpath.cpython-39.pyc matches /home/intrepid-ibex/miniconda3/envs/n20p3/lib/python3.9/genericpath.py
# code object from '/home/intrepid-ibex/miniconda3/envs/n20p3/lib/python3.9/__pycache__/genericpath.cpython-39.pyc'
import 'genericpath' # <_frozen_importlib_external.SourceFileLoader object at 0x7f530ded9fa0>
import 'posixpath' # <_frozen_importlib_external.SourceFileLoader object at 0x7f530deb98b0>
import 'os' # <_frozen_importlib_external.SourceFileLoader object at 0x7f530df1bfd0>
# /home/intrepid-ibex/miniconda3/envs/n20p3/lib/python3.9/__pycache__/_sitebuiltins.cpython-39.pyc matches /home/intrepid-ibex/miniconda3/envs/n20p3/lib/python3.9/_sitebuiltins.py
# code object from '/home/intrepid-ibex/miniconda3/envs/n20p3/lib/python3.9/__pycache__/_sitebuiltins.cpython-39.pyc'
import '_sitebuiltins' # <_frozen_importlib_external.SourceFileLoader object at 0x7f530df2e8e0>
# /home/intrepid-ibex/miniconda3/envs/n20p3/lib/python3.9/__pycache__/_bootlocale.cpython-39.pyc matches /home/intrepid-ibex/miniconda3/envs/n20p3/lib/python3.9/_bootlocale.py
# code object from '/home/intrepid-ibex/miniconda3/envs/n20p3/lib/python3.9/__pycache__/_bootlocale.cpython-39.pyc'
import '_locale' # <class '_frozen_importlib.BuiltinImporter'>
import '_bootlocale' # <_frozen_importlib_external.SourceFileLoader object at 0x7f530de4b490>
# /home/intrepid-ibex/miniconda3/envs/n20p3/lib/python3.9/site-packages/_distutils_hack/__pycache__/__init__.cpython-39.pyc matches /home/intrepid-ibex/miniconda3/envs/n20p3/lib/python3.9/site-packages/_distutils_hack/__init__.py
# code object from '/home/intrepid-ibex/miniconda3/envs/n20p3/lib/python3.9/site-packages/_distutils_hack/__pycache__/__init__.cpython-39.pyc'
import '_distutils_hack' # <_frozen_importlib_external.SourceFileLoader object at 0x7f530de4bb20>
import 'site' # <_frozen_importlib_external.SourceFileLoader object at 0x7f530df1b850>
Python 3.9.18 | packaged by conda-forge | (main, Dec 23 2023, 16:33:10) 
[GCC 12.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
# extension module 'readline' loaded from '/home/intrepid-ibex/miniconda3/envs/n20p3/lib/python3.9/lib-dynload/readline.cpython-39-x86_64-linux-gnu.so'
# extension module 'readline' executed from '/home/intrepid-ibex/miniconda3/envs/n20p3/lib/python3.9/lib-dynload/readline.cpython-39-x86_64-linux-gnu.so'
import 'readline' # <_frozen_importlib_external.ExtensionFileLoader object at 0x7f530de4bfd0>
import 'atexit' # <class '_frozen_importlib.BuiltinImporter'>
# /home/intrepid-ibex/miniconda3/envs/n20p3/lib/python3.9/__pycache__/rlcompleter.cpython-39.pyc matches /home/intrepid-ibex/miniconda3/envs/n20p3/lib/python3.9/rlcompleter.py
# code object from '/home/intrepid-ibex/miniconda3/envs/n20p3/lib/python3.9/__pycache__/rlcompleter.cpython-39.pyc'
import 'rlcompleter' # <_frozen_importlib_external.SourceFileLoader object at 0x7f530de5f520>
>>> 
KeyboardInterrupt
>>> 
# clear builtins._
# clear sys.path
# clear sys.argv
# clear sys.ps1
# clear sys.ps2
# clear sys.last_type
# clear sys.last_value
# clear sys.last_traceback
# clear sys.path_hooks
# clear sys.path_importer_cache
# clear sys.meta_path
# clear sys.__interactivehook__
# restore sys.stdin
# restore sys.stdout
# restore sys.stderr
# cleanup[2] removing sys
# cleanup[2] removing builtins
# cleanup[2] removing _frozen_importlib
# cleanup[2] removing _imp
# cleanup[2] removing _thread
# cleanup[2] removing _warnings
# cleanup[2] removing _weakref
# cleanup[2] removing _io
# cleanup[2] removing marshal
# cleanup[2] removing posix
# cleanup[2] removing _frozen_importlib_external
# cleanup[2] removing time
# cleanup[2] removing zipimport
# destroy zipimport
# cleanup[2] removing _codecs
# cleanup[2] removing codecs
# cleanup[2] removing encodings.aliases
# cleanup[2] removing encodings
# destroy encodings
# cleanup[2] removing encodings.utf_8
# cleanup[2] removing _signal
# cleanup[2] removing encodings.latin_1
# cleanup[2] removing _abc
# cleanup[2] removing abc
# cleanup[2] removing io
# cleanup[2] removing __main__
# cleanup[2] removing _stat
# cleanup[2] removing stat
# cleanup[2] removing _collections_abc
# destroy _collections_abc
# cleanup[2] removing genericpath
# cleanup[2] removing posixpath
# cleanup[2] removing os.path
# cleanup[2] removing os
# cleanup[2] removing _sitebuiltins
# cleanup[2] removing _locale
# cleanup[2] removing _bootlocale
# destroy _bootlocale
# cleanup[2] removing _distutils_hack
# destroy _distutils_hack
# cleanup[2] removing site
# destroy site
# cleanup[2] removing readline
# cleanup[2] removing atexit
# cleanup[2] removing rlcompleter
# destroy rlcompleter
# destroy time
# destroy _abc
# destroy _sitebuiltins
# destroy io
# destroy abc
# destroy posixpath
# destroy _stat
# destroy genericpath
# destroy stat
# destroy _locale
# destroy os
# destroy atexit
# destroy __main__
# cleanup[3] wiping readline
# cleanup[3] wiping encodings.latin_1
# cleanup[3] wiping _signal
# cleanup[3] wiping encodings.utf_8
# cleanup[3] wiping encodings.aliases
# cleanup[3] wiping codecs
# cleanup[3] wiping _codecs
# cleanup[3] wiping _frozen_importlib_external
# cleanup[3] wiping posix
# cleanup[3] wiping marshal
# cleanup[3] wiping _io
# cleanup[3] wiping _weakref
# cleanup[3] wiping _warnings
# cleanup[3] wiping _thread
# cleanup[3] wiping _imp
# cleanup[3] wiping _frozen_importlib
# destroy _frozen_importlib_external
# destroy _imp
# destroy _weakref
# cleanup[3] wiping sys
# cleanup[3] wiping builtins
# destroy readline
# destroy _signal
# destroy marshal
# destroy io
# destroy _warnings
# destroy _thread
# destroy posix
# destroy _frozen_importlib
# clear sys.audit hooks
(n20p3) intrepid-ibex@intrepid-ibex:~/2bhCode/express20.11AppP3.11$ python --version
Python 3.9.18
(n20p3) intrepid-ibex@intrepid-ibex:~/2bhCode/express20.11AppP3.11$ cd ..
(n20p3) intrepid-ibex@intrepid-ibex:~/2bhCode$ node -v
v20.9.0
(n20p3) intrepid-ibex@intrepid-ibex:~/2bhCode$ npm -v
10.1.0
(n20p3) intrepid-ibex@intrepid-ibex:~/2bhCode$ npm install npm@latest

added 1 package in 3s

24 packages are looking for funding
  run `npm fund` for details
npm notice 
npm notice New minor version of npm available! 10.1.0 -> 10.3.0
npm notice Changelog: https://github.com/npm/cli/releases/tag/v10.3.0
npm notice Run npm install -g npm@10.3.0 to update!
npm notice 
(n20p3) intrepid-ibex@intrepid-ibex:~/2bhCode$ npm -v
10.1.0
(n20p3) intrepid-ibex@intrepid-ibex:~/2bhCode$ npm install -g npm@10.3.0

removed 55 packages, and changed 65 packages in 2s

24 packages are looking for funding
  run `npm fund` for details
(n20p3) intrepid-ibex@intrepid-ibex:~/2bhCode$ npm fund

2bhCode
├── https://github.com/chalk/chalk?sponsor=1
│   └── chalk@5.3.0
├── https://github.com/sponsors/sibiraj-s
│   └── ci-info@4.0.0
├── https://github.com/sponsors/isaacs
│   └── glob@10.3.10, foreground-child@3.1.1, signal-exit@4.1.0, jackspeak@2.3.6, path-scurry@1.10.1, minimatch@9.0.3, json-stringify-nice@1.1.4, promise-all-reject-late@1.0.1, promise-call-limit@1.0.2
├─┬ https://github.com/chalk/strip-ansi?sponsor=1
│ │ └── strip-ansi@7.1.0
│ └── https://github.com/chalk/ansi-regex?sponsor=1
│     └── ansi-regex@6.0.1
├── https://github.com/chalk/supports-color?sponsor=1
│   └── supports-color@9.4.0
└── https://github.com/sponsors/ljharb
    └── is-core-module@2.13.1, function-bind@1.1.2

(n20p3) intrepid-ibex@intrepid-ibex:~/2bhCode$ 
(n20p3) intrepid-ibex@intrepid-ibex:~/2bhCode$ npm -v
10.3.0
(n20p3) intrepid-ibex@intrepid-ibex:~/2bhCode$ node -v
v20.9.0
(n20p3) intrepid-ibex@intrepid-ibex:~/2bhCode$ python --version
Python 3.9.18
(n20p3) intrepid-ibex@intrepid-ibex:~/2bhCode$ mv express20.11AppP3.11 express20.9AppP3.9
(n20p3) intrepid-ibex@intrepid-ibex:~/2bhCode$ cd express20.9AppP3.9/
(n20p3) intrepid-ibex@intrepid-ibex:~/2bhCode/express20.9AppP3.9$ nano app.js
(n20p3) intrepid-ibex@intrepid-ibex:~/2bhCode/express20.9AppP3.9$ ls
app.js
(n20p3) intrepid-ibex@intrepid-ibex:~/2bhCode/express20.9AppP3.9$ npm init
This utility will walk you through creating a package.json file.
It only covers the most common items, and tries to guess sensible defaults.

See `npm help init` for definitive documentation on these fields
and exactly what they do.

Use `npm install <pkg>` afterwards to install a package and
save it as a dependency in the package.json file.

Press ^C at any time to quit.
package name: (express20.9appp3.9) ExpressApp
Sorry, name can no longer contain capital letters.
package name: (express20.9appp3.9) expressapp
version: (1.0.0) 
description: der Anfang mit NodeJS und Python
entry point: (app.js) 
test command: 
git repository: https://github.com/onlineCodes/notes
keywords: alle Schlüsselwörter
author: Stefan
license: (ISC) CC4
Sorry, license should be a valid SPDX license expression (without "LicenseRef"), "UNLICENSED", or "SEE LICENSE IN <filename>".
license: (ISC) CC-BY-SA-4.0
About to write to /home/intrepid-ibex/2bhCode/express20.9AppP3.9/package.json:

{
  "name": "expressapp",
  "version": "1.0.0",
  "description": "der Anfang mit NodeJS und Python",
  "main": "app.js",
  "scripts": {
    "test": "echo \"Error: no test specified\" && exit 1"
  },
  "repository": {
    "type": "git",
    "url": "git+https://github.com/onlineCodes/notes.git"
  },
  "keywords": [
    "alle",
    "Schlüsselwörter"
  ],
  "author": "Stefan",
  "license": "CC-BY-SA-4.0",
  "bugs": {
    "url": "https://github.com/onlineCodes/notes/issues"
  },
  "homepage": "https://github.com/onlineCodes/notes#readme"
}


Is this OK? (yes) 
(n20p3) intrepid-ibex@intrepid-ibex:~/2bhCode/express20.9AppP3.9$ ls
app.js  package.json
(n20p3) intrepid-ibex@intrepid-ibex:~/2bhCode/express20.9AppP3.9$ npm install express

added 62 packages, and audited 63 packages in 5s

11 packages are looking for funding
  run `npm fund` for details

found 0 vulnerabilities
(n20p3) intrepid-ibex@intrepid-ibex:~/2bhCode/express20.9AppP3.9$ node app.js
(node:35408) Warning: To load an ES module, set "type": "module" in the package.json or use the .mjs extension.
(Use `node --trace-warnings ...` to show where the warning was created)
/home/intrepid-ibex/2bhCode/express20.9AppP3.9/app.js:1
import express from 'express';
^^^^^^

SyntaxError: Cannot use import statement outside a module
    at internalCompileFunction (node:internal/vm:73:18)
    at wrapSafe (node:internal/modules/cjs/loader:1153:20)
    at Module._compile (node:internal/modules/cjs/loader:1205:27)
    at Module._extensions..js (node:internal/modules/cjs/loader:1295:10)
    at Module.load (node:internal/modules/cjs/loader:1091:32)
    at Module._load (node:internal/modules/cjs/loader:938:12)
    at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:83:12)
    at node:internal/main/run_main_module:23:47

Node.js v20.9.0
(n20p3) intrepid-ibex@intrepid-ibex:~/2bhCode/express20.9AppP3.9$ nano package
package.json       package-lock.json  
(n20p3) intrepid-ibex@intrepid-ibex:~/2bhCode/express20.9AppP3.9$ nano package.json 
(n20p3) intrepid-ibex@intrepid-ibex:~/2bhCode/express20.9AppP3.9$ node app.js
Server running on port 3000
^C
(n20p3) intrepid-ibex@intrepid-ibex:~/2bhCode/express20.9AppP3.9$ nano package.json 
(n20p3) intrepid-ibex@intrepid-ibex:~/2bhCode/express20.9AppP3.9$ node app.js
Server running on port 3000
^C
(n20p3) intrepid-ibex@intrepid-ibex:~/2bhCode/express20.9AppP3.9$ nano app.js
(n20p3) intrepid-ibex@intrepid-ibex:~/2bhCode/express20.9AppP3.9$ 
(n20p3) intrepid-ibex@intrepid-ibex:~/2bhCode/express20.9AppP3.9$ 
(n20p3) intrepid-ibex@intrepid-ibex:~/2bhCode/express20.9AppP3.9$ 
(n20p3) intrepid-ibex@intrepid-ibex:~/2bhCode/express20.9AppP3.9$ ls
app.js  node_modules  package.json  package-lock.json
(n20p3) intrepid-ibex@intrepid-ibex:~/2bhCode/express20.9AppP3.9$ nano package.json 
(n20p3) intrepid-ibex@intrepid-ibex:~/2bhCode/express20.9AppP3.9$ nano app.js
(n20p3) intrepid-ibex@intrepid-ibex:~/2bhCode/express20.9AppP3.9$ node app.js
Server läuft auf localhost Port 2024
^C
(n20p3) intrepid-ibex@intrepid-ibex:~/2bhCode/express20.9AppP3.9$ 
/volume1/web/dokuwiki/data/pages/playground/about/coworking/conda_python_node.txt · Zuletzt geändert: 2025/01/26 19:38 von 217.182.134.134