Python Forum
Installing packages of Conda / Miniconda
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Installing packages of Conda / Miniconda
#1
Hallo,

I've bought an Book "Data Science mit Python" and I'm trying to install necessary programms and featurs.

At first i installed
http://conda.pydata.org/miniconda.html
and I can see it in start-menu:
https://share-your-photo.com/e69d79ae0a

Then I opened Anaconda Powershell Prompt (miniconda 3) and inputed the command:
conda install numpy pandas scikit-learn matplotlib seaborn ipython-notebook

On this step I get following:
https://share-your-photo.com/ed88d12bab

Location of installed Miniconda is on my disc here:
https://share-your-photo.com/c185df6bb2

What I do false?
Could you help me to install the necessary packages?
Reply
#2
The Anaconda prompt should activate (base) environment,now it does not something is wrong.
A environment most always be activated (base),now can install or make new own environment.
I always use cmder ,but can show how to it manually in cmd.
C:\Users\Tom>g:
G:\>cd miniconda3\Scripts
G:\miniconda3\Scripts>activate
# See that  (base) is activated
(base) G:\miniconda3\Scripts>conda -V
conda 22.11.1

# Now eg will pip point to miniconda
(base) G:\miniconda3\Scripts>pip -V
pip 22.3.1 from G:\miniconda3\lib\site-packages\pip (python 3.9)
I would create a new environment and not use base.
So this also install new python 3.11.4 version,and some basic libraries(can install more later)
conda create --name myenv conda jupyterlab pandas spyder matplotlib python=3.11.4
When on (base) switch like this.
(base) G:\miniconda3>activate myenv
(myenv) G:\miniconda3>
Reply
#3
(Sep-18-2023, 12:27 PM)snippsat Wrote: The Anaconda prompt should activate (base) environment,now it does not something is wrong.
A environment most always be activated (base),now can install or make new own environment.
I always use cmder ,but can show how to it manually in cmd.
C:\Users\Tom>g:
G:\>cd miniconda3\Scripts
G:\miniconda3\Scripts>activate
# See that  (base) is activated
(base) G:\miniconda3\Scripts>conda -V
conda 22.11.1

# Now eg will pip point to miniconda
(base) G:\miniconda3\Scripts>pip -V
pip 22.3.1 from G:\miniconda3\lib\site-packages\pip (python 3.9)
I would create a new environment and not use base.
So this also install new python 3.11.4 version,and some basic libraries(can install more later)
conda create --name myenv conda jupyterlab pandas spyder matplotlib python=3.11.4
When on (base) switch like this.
(base) G:\miniconda3>activate myenv
(myenv) G:\miniconda3>


Thank you very much. I have done that you said (but I got an impression some processes were not fully 100 % finished).
(base) is on.

In the book is written to perform the command:
(base) C:\ProgramData\miniconda3>conda install numpy pandas scikit-learn matplotlib seaborn ipython-notebook

1. Was so the list 'numpy pandas scikit-learn matplotlib seaborn' installed ?
2. It comes an error to install the 'ipython-notebook'

(base) C:\ProgramData\miniconda3>conda create --name myenv conda numpy pandas scikit-learn matplotlib seaborn ipython-notebook
Collecting package metadata (current_repodata.json): done
Solving environment: unsuccessful attempt using repodata from current_repodata.json, retrying with next repodata source.
Collecting package metadata (repodata.json): done
Solving environment: failed

PackagesNotFoundError: The following packages are not available from current channels:

- ipython-notebook

Current channels:

- https://repo.anaconda.com/pkgs/main/win-64
- https://repo.anaconda.com/pkgs/main/noarch
- https://repo.anaconda.com/pkgs/r/win-64
- https://repo.anaconda.com/pkgs/r/noarch
- https://repo.anaconda.com/pkgs/msys2/win-64
- https://repo.anaconda.com/pkgs/msys2/noarch

To search for alternate channels that may provide the conda package you're
looking for, navigate to

https://anaconda.org

and use the search bar at the top of the page.



3. EnvironmentNotWritableError: The current user does not have write permissions to the target environment.
environment location: C:\ProgramData\miniconda3

The following packages will be UPDATED:

ca-certificates 2023.05.30-haa95532_0 --> 2023.08.22-haa95532_0
certifi 2023.5.7-py311haa95532_0 --> 2023.7.22-py311haa95532_0
conda 23.5.2-py311haa95532_0 --> 23.7.4-py311haa95532_0
openssl 3.0.9-h2bbff1b_0 --> 3.0.10-h2bbff1b_2


Proceed ([y]/n)? y


Downloading and Extracting Packages

Preparing transaction: done
Verifying transaction: failed

EnvironmentNotWritableError: The current user does not have write permissions to the target environment.
environment location: C:\ProgramData\miniconda3



(base) C:\ProgramData\miniconda3>



In case it would be necessary, I have saved (as odt, txt or a number of jpg) the history what I did in cmd-window

I'm asking for futher helping to Point 2, Point 3: to possibility of using ipython-notebook and to solve: "The current user does not have write permissions to the target environment"
Reply
#4
My futher steps:

(base) C:\ProgramData\miniconda3>conda install ipython
Retrieving notices: ...working... done
Collecting package metadata (current_repodata.json): done
Solving environment: done

## Package Plan ##

environment location: C:\ProgramData\miniconda3

added / updated specs:
- ipython


The following NEW packages will be INSTALLED:

asttokens pkgs/main/noarch::asttokens-2.0.5-pyhd3eb1b0_0
backcall pkgs/main/noarch::backcall-0.2.0-pyhd3eb1b0_0
decorator pkgs/main/noarch::decorator-5.1.1-pyhd3eb1b0_0
executing pkgs/main/noarch::executing-0.8.3-pyhd3eb1b0_0
ipython pkgs/main/win-64::ipython-8.15.0-py311haa95532_0
jedi pkgs/main/win-64::jedi-0.18.1-py311haa95532_1
matplotlib-inline pkgs/main/win-64::matplotlib-inline-0.1.6-py311haa95532_0
parso pkgs/main/noarch::parso-0.8.3-pyhd3eb1b0_0
pickleshare pkgs/main/noarch::pickleshare-0.7.5-pyhd3eb1b0_1003
prompt-toolkit pkgs/main/win-64::prompt-toolkit-3.0.36-py311haa95532_0
pure_eval pkgs/main/noarch::pure_eval-0.2.2-pyhd3eb1b0_0
pygments pkgs/main/win-64::pygments-2.15.1-py311haa95532_1
stack_data pkgs/main/noarch::stack_data-0.2.0-pyhd3eb1b0_0
traitlets pkgs/main/win-64::traitlets-5.7.1-py311haa95532_0
wcwidth pkgs/main/noarch::wcwidth-0.2.5-pyhd3eb1b0_0

The following packages will be UPDATED:

ca-certificates 2023.05.30-haa95532_0 --> 2023.08.22-haa95532_0
certifi 2023.5.7-py311haa95532_0 --> 2023.7.22-py311haa95532_0
conda 23.5.2-py311haa95532_0 --> 23.7.4-py311haa95532_0
openssl 3.0.9-h2bbff1b_0 --> 3.0.10-h2bbff1b_2


Proceed ([y]/n)? y


Downloading and Extracting Packages

Preparing transaction: done
Verifying transaction: failed


I would like to ask to install and start ipython...
Reply
#5
(Sep-19-2023, 12:51 AM)Liki Wrote: "The current user does not have write permissions to the target environment"
Run cmd as admin
(Sep-19-2023, 01:27 AM)Liki Wrote: I would like to ask to install and start ipython...
When environment activated,you just type what you want to start jupyter lab(NoteBook), ipython(REPL), spyder(Editor).
Reply
#6
thank you.
wanted is on this step: to start ipython-shell and jupiter-Notebook.

I started today cmd as admin and activated (base) succesfull.
but the activating myenv didn't run today:


C:\ProgramData\miniconda3\Scripts>activate

(base) C:\ProgramData\miniconda3\Scripts>cd C:\ProgramData\miniconda3

(base) C:\ProgramData\miniconda3>activate myenv

EnvironmentNameNotFound: Could not find conda environment: myenv
You can list all discoverable environments with `conda info --envs`.



(base) C:\ProgramData\miniconda3>conda -V
conda 23.5.2

(base) C:\ProgramData\miniconda3>conda info --envs
# conda environments:
#
base                  *  C:\ProgramData\miniconda3


(base) C:\ProgramData\miniconda3>
I hope, I have installed the necessary packages (and whenn not all - then most of them).

Should I every time (by cmd-newstart, as I would call ipython-shell and jupiter-Notebook) activate the (base) and myenv?

Could you show please, what should I do/type in new started cmd as admin, to call ipython-shell and jupiter-Notebook?

Futher step: trying to install ipython-notebook:

(base) C:\ProgramData\miniconda3>conda create --name myenv conda ipython-notebook
Collecting package metadata (current_repodata.json): done
Solving environment: unsuccessful attempt using repodata from current_repodata.json, retrying with next repodata source.
Collecting package metadata (repodata.json): done
Solving environment: failed

PackagesNotFoundError: The following packages are not available from current channels:

  - ipython-notebook

Current channels:

  - https://repo.anaconda.com/pkgs/main/win-64
  - https://repo.anaconda.com/pkgs/main/noarch
  - https://repo.anaconda.com/pkgs/r/win-64
  - https://repo.anaconda.com/pkgs/r/noarch
  - https://repo.anaconda.com/pkgs/msys2/win-64
  - https://repo.anaconda.com/pkgs/msys2/noarch

To search for alternate channels that may provide the conda package you're
looking for, navigate to

    https://anaconda.org

and use the search bar at the top of the page.

(base) C:\ProgramData\miniconda3>
next step is:

(base) C:\ProgramData\miniconda3>conda create --name myenv conda jupyterlab pandas spyder matplotlib python=3.11.4 numpy scikit-learn seaborn ipython
Collecting package metadata (current_repodata.json): done
Solving environment: unsuccessful attempt using repodata from current_repodata.json, retrying with next repodata source.
Collecting package metadata (repodata.json): done
Solving environment: done


==> WARNING: A newer version of conda exists. <==
  current version: 23.5.2
  latest version: 23.7.4

Please update conda by running

    $ conda update -n base -c defaults conda

Or to minimize the number of packages updated during conda update use

     conda install conda=23.7.4



## Package Plan ##

  environment location: C:\ProgramData\miniconda3\envs\myenv

  added / updated specs:
    - conda
    - ipython
    - jupyterlab
    - matplotlib
    - numpy
    - pandas
    - python=3.11.4
    - scikit-learn
    - seaborn
    - spyder


The following packages will be downloaded:

    package                    |            build
    ---------------------------|-----------------
    mypy_extensions-1.0.0      |  py311haa95532_0          14 KB
    pytz-2023.3.post1          |  py311haa95532_0         218 KB
    ------------------------------------------------------------
                                           Total:         232 KB

The following NEW packages will be INSTALLED:

  aiofiles           pkgs/main/win-64::aiofiles-22.1.0-py311haa95532_0
  aiosqlite          pkgs/main/win-64::aiosqlite-0.18.0-py311haa95532_0
  alabaster          pkgs/main/noarch::alabaster-0.7.12-pyhd3eb1b0_0
  anyio              pkgs/main/win-64::anyio-3.5.0-py311haa95532_0
  argon2-cffi        pkgs/main/noarch::argon2-cffi-21.3.0-pyhd3eb1b0_0
  argon2-cffi-bindi~ pkgs/main/win-64::argon2-cffi-bindings-21.2.0-py311h2bbff1b_0
  arrow              pkgs/main/win-64::arrow-1.2.3-py311haa95532_1
  astroid            pkgs/main/win-64::astroid-2.14.2-py311haa95532_0
  asttokens          pkgs/main/noarch::asttokens-2.0.5-pyhd3eb1b0_0
  atomicwrites       pkgs/main/noarch::atomicwrites-1.4.0-py_0
  attrs              pkgs/main/win-64::attrs-22.1.0-py311haa95532_0
  autopep8           pkgs/main/noarch::autopep8-1.6.0-pyhd3eb1b0_1
  babel              pkgs/main/win-64::babel-2.11.0-py311haa95532_0
  backcall           pkgs/main/noarch::backcall-0.2.0-pyhd3eb1b0_0
  bcrypt             pkgs/main/win-64::bcrypt-3.2.0-py311h2bbff1b_1
  beautifulsoup4     pkgs/main/win-64::beautifulsoup4-4.12.2-py311haa95532_0
  binaryornot        pkgs/main/noarch::binaryornot-0.4.4-pyhd3eb1b0_1
  black              pkgs/main/win-64::black-23.3.0-py311haa95532_0
  blas               pkgs/main/win-64::blas-1.0-mkl
  bleach             pkgs/main/noarch::bleach-4.1.0-pyhd3eb1b0_0
  boltons            pkgs/main/win-64::boltons-23.0.0-py311haa95532_0
  bottleneck         pkgs/main/win-64::bottleneck-1.3.5-py311h5bb9823_0
  brotli             pkgs/main/win-64::brotli-1.0.9-h2bbff1b_7
  brotli-bin         pkgs/main/win-64::brotli-bin-1.0.9-h2bbff1b_7
  brotlipy           pkgs/main/win-64::brotlipy-0.7.0-py311h2bbff1b_1002
  bzip2              pkgs/main/win-64::bzip2-1.0.8-he774522_0
  ca-certificates    pkgs/main/win-64::ca-certificates-2023.08.22-haa95532_0
  certifi            pkgs/main/win-64::certifi-2023.7.22-py311haa95532_0
  cffi               pkgs/main/win-64::cffi-1.15.1-py311h2bbff1b_3
  chardet            pkgs/main/win-64::chardet-4.0.0-py311haa95532_1003
  charset-normalizer pkgs/main/noarch::charset-normalizer-2.0.4-pyhd3eb1b0_0
  click              pkgs/main/win-64::click-8.0.4-py311haa95532_0
  cloudpickle        pkgs/main/win-64::cloudpickle-2.2.1-py311haa95532_0
  colorama           pkgs/main/win-64::colorama-0.4.6-py311haa95532_0
  comm               pkgs/main/win-64::comm-0.1.2-py311haa95532_0
  conda              pkgs/main/win-64::conda-23.7.4-py311haa95532_0
  conda-package-han~ pkgs/main/win-64::conda-package-handling-2.2.0-py311haa95532_0
  conda-package-str~ pkgs/main/win-64::conda-package-streaming-0.9.0-py311haa95532_0
  contourpy          pkgs/main/win-64::contourpy-1.0.5-py311h59b6b97_0
  cookiecutter       pkgs/main/noarch::cookiecutter-1.7.3-pyhd3eb1b0_0
  cryptography       pkgs/main/win-64::cryptography-41.0.3-py311h89fc84f_0
  cycler             pkgs/main/noarch::cycler-0.11.0-pyhd3eb1b0_0
  debugpy            pkgs/main/win-64::debugpy-1.6.7-py311hd77b12b_0
  decorator          pkgs/main/noarch::decorator-5.1.1-pyhd3eb1b0_0
  defusedxml         pkgs/main/noarch::defusedxml-0.7.1-pyhd3eb1b0_0
  diff-match-patch   pkgs/main/noarch::diff-match-patch-20200713-pyhd3eb1b0_0
  dill               pkgs/main/win-64::dill-0.3.7-py311haa95532_0
  docstring-to-mark~ pkgs/main/win-64::docstring-to-markdown-0.11-py311haa95532_0
  docutils           pkgs/main/win-64::docutils-0.18.1-py311haa95532_3
  entrypoints        pkgs/main/win-64::entrypoints-0.4-py311haa95532_0
  executing          pkgs/main/noarch::executing-0.8.3-pyhd3eb1b0_0
  flake8             pkgs/main/win-64::flake8-6.0.0-py311haa95532_0
  fonttools          pkgs/main/noarch::fonttools-4.25.0-pyhd3eb1b0_0
  freetype           pkgs/main/win-64::freetype-2.12.1-ha860e81_0
  giflib             pkgs/main/win-64::giflib-5.2.1-h8cc25b3_3
  glib               pkgs/main/win-64::glib-2.69.1-h5dc1a3c_2
  icc_rt             pkgs/main/win-64::icc_rt-2022.1.0-h6049295_2
  icu                pkgs/main/win-64::icu-58.2-ha925a31_3
  idna               pkgs/main/win-64::idna-3.4-py311haa95532_0
  imagesize          pkgs/main/win-64::imagesize-1.4.1-py311haa95532_0
  importlib-metadata pkgs/main/win-64::importlib-metadata-6.0.0-py311haa95532_0
  importlib_metadata pkgs/main/noarch::importlib_metadata-6.0.0-hd3eb1b0_0
  inflection         pkgs/main/win-64::inflection-0.5.1-py311haa95532_0
  intel-openmp       pkgs/main/win-64::intel-openmp-2023.1.0-h59b6b97_46319
  intervaltree       pkgs/main/noarch::intervaltree-3.1.0-pyhd3eb1b0_0
  ipykernel          pkgs/main/win-64::ipykernel-6.25.0-py311h746a85d_0
  ipython            pkgs/main/win-64::ipython-8.15.0-py311haa95532_0
  ipython_genutils   pkgs/main/noarch::ipython_genutils-0.2.0-pyhd3eb1b0_1
  isort              pkgs/main/noarch::isort-5.9.3-pyhd3eb1b0_0
  jaraco.classes     pkgs/main/noarch::jaraco.classes-3.2.1-pyhd3eb1b0_0
  jedi               pkgs/main/win-64::jedi-0.18.1-py311haa95532_1
  jellyfish          pkgs/main/win-64::jellyfish-0.9.0-py311h2bbff1b_0
  jinja2             pkgs/main/win-64::jinja2-3.1.2-py311haa95532_0
  jinja2-time        pkgs/main/noarch::jinja2-time-0.2.0-pyhd3eb1b0_3
  joblib             pkgs/main/win-64::joblib-1.2.0-py311haa95532_0
  jpeg               pkgs/main/win-64::jpeg-9e-h2bbff1b_1
  json5              pkgs/main/noarch::json5-0.9.6-pyhd3eb1b0_0
  jsonpatch          pkgs/main/noarch::jsonpatch-1.32-pyhd3eb1b0_0
  jsonpointer        pkgs/main/noarch::jsonpointer-2.1-pyhd3eb1b0_0
  jsonschema         pkgs/main/win-64::jsonschema-4.17.3-py311haa95532_0
  jupyter_client     pkgs/main/win-64::jupyter_client-7.4.9-py311haa95532_0
  jupyter_core       pkgs/main/win-64::jupyter_core-5.3.0-py311haa95532_0
  jupyter_events     pkgs/main/win-64::jupyter_events-0.6.3-py311haa95532_0
  jupyter_server     pkgs/main/win-64::jupyter_server-1.23.4-py311haa95532_0
  jupyter_server_fi~ pkgs/main/win-64::jupyter_server_fileid-0.9.0-py311haa95532_0
  jupyter_server_yd~ pkgs/main/win-64::jupyter_server_ydoc-0.8.0-py311haa95532_1
  jupyter_ydoc       pkgs/main/win-64::jupyter_ydoc-0.2.4-py311haa95532_0
  jupyterlab         pkgs/main/win-64::jupyterlab-3.6.3-py311haa95532_0
  jupyterlab_pygmen~ pkgs/main/noarch::jupyterlab_pygments-0.1.2-py_0
  jupyterlab_server  pkgs/main/win-64::jupyterlab_server-2.22.0-py311haa95532_0
  keyring            pkgs/main/win-64::keyring-23.13.1-py311haa95532_0
  kiwisolver         pkgs/main/win-64::kiwisolver-1.4.4-py311hd77b12b_0
  krb5               pkgs/main/win-64::krb5-1.20.1-h5b6d351_0
  lazy-object-proxy  pkgs/main/win-64::lazy-object-proxy-1.6.0-py311h2bbff1b_0
  lerc               pkgs/main/win-64::lerc-3.0-hd77b12b_0
  libbrotlicommon    pkgs/main/win-64::libbrotlicommon-1.0.9-h2bbff1b_7
  libbrotlidec       pkgs/main/win-64::libbrotlidec-1.0.9-h2bbff1b_7
  libbrotlienc       pkgs/main/win-64::libbrotlienc-1.0.9-h2bbff1b_7
  libclang           pkgs/main/win-64::libclang-14.0.6-default_hb5a9fac_1
  libclang13         pkgs/main/win-64::libclang13-14.0.6-default_h8e68704_1
  libdeflate         pkgs/main/win-64::libdeflate-1.17-h2bbff1b_0
  libffi             pkgs/main/win-64::libffi-3.4.4-hd77b12b_0
  libiconv           pkgs/main/win-64::libiconv-1.16-h2bbff1b_2
  libpng             pkgs/main/win-64::libpng-1.6.39-h8cc25b3_0
  libpq              pkgs/main/win-64::libpq-12.15-h906ac69_1
  libsodium          pkgs/main/win-64::libsodium-1.0.18-h62dcd97_0
  libspatialindex    pkgs/main/win-64::libspatialindex-1.9.3-h6c2663c_0
  libtiff            pkgs/main/win-64::libtiff-4.5.1-hd77b12b_0
  libwebp            pkgs/main/win-64::libwebp-1.2.4-hbc33d0d_1
  libwebp-base       pkgs/main/win-64::libwebp-base-1.2.4-h2bbff1b_1
  libxml2            pkgs/main/win-64::libxml2-2.10.4-h0ad7f3c_1
  libxslt            pkgs/main/win-64::libxslt-1.1.37-h2bbff1b_1
  lxml               pkgs/main/win-64::lxml-4.9.3-py311h09808a7_0
  lz4-c              pkgs/main/win-64::lz4-c-1.9.4-h2bbff1b_0
  markupsafe         pkgs/main/win-64::markupsafe-2.1.1-py311h2bbff1b_0
  matplotlib         pkgs/main/win-64::matplotlib-3.7.2-py311haa95532_0
  matplotlib-base    pkgs/main/win-64::matplotlib-base-3.7.2-py311hf62ec03_0
  matplotlib-inline  pkgs/main/win-64::matplotlib-inline-0.1.6-py311haa95532_0
  mccabe             pkgs/main/noarch::mccabe-0.7.0-pyhd3eb1b0_0
  menuinst           pkgs/main/win-64::menuinst-1.4.19-py311h59b6b97_1
  mistune            pkgs/main/win-64::mistune-0.8.4-py311h2bbff1b_1000
  mkl                pkgs/main/win-64::mkl-2023.1.0-h6b88ed4_46357
  mkl-service        pkgs/main/win-64::mkl-service-2.4.0-py311h2bbff1b_1
  mkl_fft            pkgs/main/win-64::mkl_fft-1.3.8-py311h2bbff1b_0
  mkl_random         pkgs/main/win-64::mkl_random-1.2.4-py311h59b6b97_0
  more-itertools     pkgs/main/noarch::more-itertools-8.12.0-pyhd3eb1b0_0
  munkres            pkgs/main/noarch::munkres-1.1.4-py_0
  mypy_extensions    pkgs/main/win-64::mypy_extensions-1.0.0-py311haa95532_0
  nbclassic          pkgs/main/win-64::nbclassic-0.5.5-py311haa95532_0
  nbclient           pkgs/main/win-64::nbclient-0.5.13-py311haa95532_0
  nbconvert          pkgs/main/win-64::nbconvert-6.5.4-py311haa95532_0
  nbformat           pkgs/main/win-64::nbformat-5.9.2-py311haa95532_0
  nest-asyncio       pkgs/main/win-64::nest-asyncio-1.5.6-py311haa95532_0
  notebook           pkgs/main/win-64::notebook-6.5.4-py311haa95532_1
  notebook-shim      pkgs/main/win-64::notebook-shim-0.2.2-py311haa95532_0
  numexpr            pkgs/main/win-64::numexpr-2.8.4-py311h1fcbade_1
  numpy              pkgs/main/win-64::numpy-1.25.2-py311hdab7c0b_0
  numpy-base         pkgs/main/win-64::numpy-base-1.25.2-py311hd01c5d8_0
  numpydoc           pkgs/main/win-64::numpydoc-1.5.0-py311haa95532_0
  openssl            pkgs/main/win-64::openssl-3.0.10-h2bbff1b_2
  packaging          pkgs/main/win-64::packaging-23.1-py311haa95532_0
  pandas             pkgs/main/win-64::pandas-2.0.3-py311hf62ec03_0
  pandocfilters      pkgs/main/noarch::pandocfilters-1.5.0-pyhd3eb1b0_0
  paramiko           pkgs/main/noarch::paramiko-2.8.1-pyhd3eb1b0_0
  parso              pkgs/main/noarch::parso-0.8.3-pyhd3eb1b0_0
  pathspec           pkgs/main/win-64::pathspec-0.10.3-py311haa95532_0
  pcre               pkgs/main/win-64::pcre-8.45-hd77b12b_0
  pexpect            pkgs/main/noarch::pexpect-4.8.0-pyhd3eb1b0_3
  pickleshare        pkgs/main/noarch::pickleshare-0.7.5-pyhd3eb1b0_1003
  pillow             pkgs/main/win-64::pillow-9.4.0-py311hd77b12b_0
  pip                pkgs/main/win-64::pip-23.2.1-py311haa95532_0
  platformdirs       pkgs/main/win-64::platformdirs-3.10.0-py311haa95532_0
  pluggy             pkgs/main/win-64::pluggy-1.0.0-py311haa95532_1
  ply                pkgs/main/win-64::ply-3.11-py311haa95532_0
  poyo               pkgs/main/noarch::poyo-0.5.0-pyhd3eb1b0_0
  prometheus_client  pkgs/main/win-64::prometheus_client-0.14.1-py311haa95532_0
  prompt-toolkit     pkgs/main/win-64::prompt-toolkit-3.0.36-py311haa95532_0
  psutil             pkgs/main/win-64::psutil-5.9.0-py311h2bbff1b_0
  ptyprocess         pkgs/main/noarch::ptyprocess-0.7.0-pyhd3eb1b0_2
  pure_eval          pkgs/main/noarch::pure_eval-0.2.2-pyhd3eb1b0_0
  pycodestyle        pkgs/main/win-64::pycodestyle-2.10.0-py311haa95532_0
  pycosat            pkgs/main/win-64::pycosat-0.6.4-py311h2bbff1b_0
  pycparser          pkgs/main/noarch::pycparser-2.21-pyhd3eb1b0_0
  pydocstyle         pkgs/main/win-64::pydocstyle-6.3.0-py311haa95532_0
  pyflakes           pkgs/main/win-64::pyflakes-3.0.1-py311haa95532_0
  pygments           pkgs/main/win-64::pygments-2.15.1-py311haa95532_1
  pylint             pkgs/main/win-64::pylint-2.16.2-py311haa95532_0
  pylint-venv        pkgs/main/win-64::pylint-venv-2.3.0-py311haa95532_0
  pyls-spyder        pkgs/main/noarch::pyls-spyder-0.4.0-pyhd3eb1b0_0
  pynacl             pkgs/main/win-64::pynacl-1.5.0-py311h8cc25b3_0
  pyopenssl          pkgs/main/win-64::pyopenssl-23.2.0-py311haa95532_0
  pyparsing          pkgs/main/win-64::pyparsing-3.0.9-py311haa95532_0
  pyqt               pkgs/main/win-64::pyqt-5.15.7-py311hd77b12b_0
  pyqt5-sip          pkgs/main/win-64::pyqt5-sip-12.11.0-py311hd77b12b_0
  pyqtwebengine      pkgs/main/win-64::pyqtwebengine-5.15.7-py311hd77b12b_0
  pyrsistent         pkgs/main/win-64::pyrsistent-0.18.0-py311h2bbff1b_0
  pysocks            pkgs/main/win-64::pysocks-1.7.1-py311haa95532_0
  python             pkgs/main/win-64::python-3.11.4-he1021f5_0
  python-dateutil    pkgs/main/noarch::python-dateutil-2.8.2-pyhd3eb1b0_0
  python-fastjsonsc~ pkgs/main/win-64::python-fastjsonschema-2.16.2-py311haa95532_0
  python-json-logger pkgs/main/win-64::python-json-logger-2.0.7-py311haa95532_0
  python-lsp-black   pkgs/main/win-64::python-lsp-black-1.2.1-py311haa95532_0
  python-lsp-jsonrpc pkgs/main/noarch::python-lsp-jsonrpc-1.0.0-pyhd3eb1b0_0
  python-lsp-server  pkgs/main/win-64::python-lsp-server-1.7.2-py311haa95532_0
  python-slugify     pkgs/main/noarch::python-slugify-5.0.2-pyhd3eb1b0_0
  python-tzdata      pkgs/main/noarch::python-tzdata-2023.3-pyhd3eb1b0_0
  pytoolconfig       pkgs/main/win-64::pytoolconfig-1.2.5-py311haa95532_1
  pytz               pkgs/main/win-64::pytz-2023.3.post1-py311haa95532_0
  pywin32            pkgs/main/win-64::pywin32-305-py311h2bbff1b_0
  pywin32-ctypes     pkgs/main/win-64::pywin32-ctypes-0.2.0-py311haa95532_1000
  pywinpty           pkgs/main/win-64::pywinpty-2.0.10-py311h5da7b33_0
  pyyaml             pkgs/main/win-64::pyyaml-6.0-py311h2bbff1b_1
  pyzmq              pkgs/main/win-64::pyzmq-23.2.0-py311hd77b12b_0
  qdarkstyle         pkgs/main/noarch::qdarkstyle-3.0.2-pyhd3eb1b0_0
  qstylizer          pkgs/main/win-64::qstylizer-0.2.2-py311haa95532_0
  qt-main            pkgs/main/win-64::qt-main-5.15.2-h879a1e9_9
  qt-webengine       pkgs/main/win-64::qt-webengine-5.15.9-h5bd16bc_7
  qtawesome          pkgs/main/win-64::qtawesome-1.2.2-py311haa95532_0
  qtconsole          pkgs/main/win-64::qtconsole-5.4.2-py311haa95532_0
  qtpy               pkgs/main/win-64::qtpy-2.2.0-py311haa95532_0
  qtwebkit           pkgs/main/win-64::qtwebkit-5.212-h2bbfb41_5
  requests           pkgs/main/win-64::requests-2.31.0-py311haa95532_0
  rfc3339-validator  pkgs/main/win-64::rfc3339-validator-0.1.4-py311haa95532_0
  rfc3986-validator  pkgs/main/win-64::rfc3986-validator-0.1.1-py311haa95532_0
  rope               pkgs/main/win-64::rope-1.7.0-py311haa95532_0
  rtree              pkgs/main/win-64::rtree-1.0.1-py311h2eaa2aa_0
  ruamel.yaml        pkgs/main/win-64::ruamel.yaml-0.17.21-py311h2bbff1b_0
  scikit-learn       pkgs/main/win-64::scikit-learn-1.2.2-py311hd77b12b_1
  scipy              pkgs/main/win-64::scipy-1.11.1-py311hc1ccb85_0
  seaborn            pkgs/main/win-64::seaborn-0.12.2-py311haa95532_0
  send2trash         pkgs/main/noarch::send2trash-1.8.0-pyhd3eb1b0_1
  setuptools         pkgs/main/win-64::setuptools-68.0.0-py311haa95532_0
  sip                pkgs/main/win-64::sip-6.6.2-py311hd77b12b_0
  six                pkgs/main/noarch::six-1.16.0-pyhd3eb1b0_1
  sniffio            pkgs/main/win-64::sniffio-1.2.0-py311haa95532_1
  snowballstemmer    pkgs/main/noarch::snowballstemmer-2.2.0-pyhd3eb1b0_0
  sortedcontainers   pkgs/main/noarch::sortedcontainers-2.4.0-pyhd3eb1b0_0
  soupsieve          pkgs/main/win-64::soupsieve-2.4-py311haa95532_0
  sphinx             pkgs/main/win-64::sphinx-5.0.2-py311haa95532_0
  sphinxcontrib-app~ pkgs/main/noarch::sphinxcontrib-applehelp-1.0.2-pyhd3eb1b0_0
  sphinxcontrib-dev~ pkgs/main/noarch::sphinxcontrib-devhelp-1.0.2-pyhd3eb1b0_0
  sphinxcontrib-htm~ pkgs/main/noarch::sphinxcontrib-htmlhelp-2.0.0-pyhd3eb1b0_0
  sphinxcontrib-jsm~ pkgs/main/noarch::sphinxcontrib-jsmath-1.0.1-pyhd3eb1b0_0
  sphinxcontrib-qth~ pkgs/main/noarch::sphinxcontrib-qthelp-1.0.3-pyhd3eb1b0_0
  sphinxcontrib-ser~ pkgs/main/noarch::sphinxcontrib-serializinghtml-1.1.5-pyhd3eb1b0_0
  spyder             pkgs/main/win-64::spyder-5.4.3-py311haa95532_1
  spyder-kernels     pkgs/main/win-64::spyder-kernels-2.4.4-py311haa95532_0
  sqlite             pkgs/main/win-64::sqlite-3.41.2-h2bbff1b_0
  stack_data         pkgs/main/noarch::stack_data-0.2.0-pyhd3eb1b0_0
  tbb                pkgs/main/win-64::tbb-2021.8.0-h59b6b97_0
  terminado          pkgs/main/win-64::terminado-0.17.1-py311haa95532_0
  text-unidecode     pkgs/main/noarch::text-unidecode-1.3-pyhd3eb1b0_0
  textdistance       pkgs/main/noarch::textdistance-4.2.1-pyhd3eb1b0_0
  threadpoolctl      pkgs/main/noarch::threadpoolctl-2.2.0-pyh0d69192_0
  three-merge        pkgs/main/noarch::three-merge-0.1.1-pyhd3eb1b0_0
  tinycss2           pkgs/main/win-64::tinycss2-1.2.1-py311haa95532_0
  tk                 pkgs/main/win-64::tk-8.6.12-h2bbff1b_0
  toml               pkgs/main/noarch::toml-0.10.2-pyhd3eb1b0_0
  tomlkit            pkgs/main/win-64::tomlkit-0.11.1-py311haa95532_0
  toolz              pkgs/main/win-64::toolz-0.12.0-py311haa95532_0
  tornado            pkgs/main/win-64::tornado-6.3.2-py311h2bbff1b_0
  tqdm               pkgs/main/win-64::tqdm-4.65.0-py311h746a85d_0
  traitlets          pkgs/main/win-64::traitlets-5.7.1-py311haa95532_0
  typing-extensions  pkgs/main/win-64::typing-extensions-4.7.1-py311haa95532_0
  typing_extensions  pkgs/main/win-64::typing_extensions-4.7.1-py311haa95532_0
  tzdata             pkgs/main/noarch::tzdata-2023c-h04d1e81_0
  ujson              pkgs/main/win-64::ujson-5.4.0-py311hd77b12b_0
  unidecode          pkgs/main/noarch::unidecode-1.2.0-pyhd3eb1b0_0
  urllib3            pkgs/main/win-64::urllib3-1.26.16-py311haa95532_0
  vc                 pkgs/main/win-64::vc-14.2-h21ff451_1
  vs2015_runtime     pkgs/main/win-64::vs2015_runtime-14.27.29016-h5e58377_2
  watchdog           pkgs/main/win-64::watchdog-2.1.6-py311haa95532_0
  wcwidth            pkgs/main/noarch::wcwidth-0.2.5-pyhd3eb1b0_0
  webencodings       pkgs/main/win-64::webencodings-0.5.1-py311haa95532_1
  websocket-client   pkgs/main/win-64::websocket-client-0.58.0-py311haa95532_4
  whatthepatch       pkgs/main/win-64::whatthepatch-1.0.2-py311haa95532_0
  wheel              pkgs/main/win-64::wheel-0.38.4-py311haa95532_0
  win_inet_pton      pkgs/main/win-64::win_inet_pton-1.1.0-py311haa95532_0
  winpty             pkgs/main/win-64::winpty-0.4.3-4
  wrapt              pkgs/main/win-64::wrapt-1.14.1-py311h2bbff1b_0
  xz                 pkgs/main/win-64::xz-5.4.2-h8cc25b3_0
  y-py               pkgs/main/win-64::y-py-0.5.9-py311hb6bf4ef_0
  yaml               pkgs/main/win-64::yaml-0.2.5-he774522_0
  yapf               pkgs/main/noarch::yapf-0.31.0-pyhd3eb1b0_0
  ypy-websocket      pkgs/main/win-64::ypy-websocket-0.8.2-py311haa95532_0
  zeromq             pkgs/main/win-64::zeromq-4.3.4-hd77b12b_0
  zipp               pkgs/main/win-64::zipp-3.11.0-py311haa95532_0
  zlib               pkgs/main/win-64::zlib-1.2.13-h8cc25b3_0
  zstandard          pkgs/main/win-64::zstandard-0.19.0-py311h2bbff1b_0
  zstd               pkgs/main/win-64::zstd-1.5.5-hd43e919_0


Proceed ([y]/n)?
so after it i hope to call 'ipython'.
I have added 'ipython' instead of 'ipython-notebook' and packages which were given in the book. As I see in last step all packages that I have given to 'myenv' seems to be catched.

now I will type 'y' :

Proceed ([y]/n)? y


Downloading and Extracting Packages

Preparing transaction: done
Verifying transaction: done
Executing transaction: \

    Windows 64-bit packages of scikit-learn can be accelerated using scikit-learn-intelex.
    More details are available here: https://intel.github.io/scikit-learn-intelex

    For example:

        $ conda install scikit-learn-intelex
        $ python -m sklearnex my_application.py


done
#
# To activate this environment, use
#
#     $ conda activate myenv
#
# To deactivate an active environment, use
#
#     $ conda deactivate


(base) C:\ProgramData\miniconda3>
Now I see:
# To activate this environment, use
#
#     $ conda activate myenv
and
environment location: C:\ProgramData\miniconda3\envs\myenv
If I would close the cmd and tomorrow will it open new:

in which way I will come on this environment? Simple by typing
cd C:\ProgramData\miniconda3\envs\myenv
?
and there I type 'ipython' and '$ jupiter notebook' or 'jupiter lab' ?

Is the Downloading and Extracting Packages from the list not more necessary again and by every time that I open cmd and would call 'ipython'?

what is wrong here? I expected calling of 'ipython':

(base) C:\ProgramData\miniconda3>cd C:\ProgramData\miniconda3\envs\myenv

(base) C:\ProgramData\miniconda3\envs\myenv>ipython
Der Befehl "ipython" ist entweder falsch geschrieben oder
konnte nicht gefunden werden.

(base) C:\ProgramData\miniconda3\envs\myenv>
futher:

(base) C:\ProgramData\miniconda3>cd C:\ProgramData\miniconda3\envs\myenv

(base) C:\ProgramData\miniconda3\envs\myenv>ipython
Der Befehl "ipython" ist entweder falsch geschrieben oder
konnte nicht gefunden werden.

(base) C:\ProgramData\miniconda3\envs\myenv>$ conda activate myenv
Der Befehl "$" ist entweder falsch geschrieben oder
konnte nicht gefunden werden.

(base) C:\ProgramData\miniconda3\envs\myenv>cd C:\ProgramData\miniconda3
I'm trying so, but so I can not activate 'myenv'
and following can not call 'ipython' Sick :

(base) C:\ProgramData\miniconda3>$ conda activate myenv
Der Befehl "$" ist entweder falsch geschrieben oder
konnte nicht gefunden werden.

(base) C:\ProgramData\miniconda3>
Huh
Reply
#7
(Sep-19-2023, 07:06 PM)Liki Wrote: I'm trying so, but so I can not activate 'myenv'
It only activate myenv so when you are in (base).
(base) C:\ProgramData\miniconda3>activate myenv.

As mentation before when in (myenv),to start NoteBook you type jupyter lab,this is the new one the old was ipython-notebook.
Look at JupyterLab: A Next-Generation Notebook Interface.
Reply
#8
https://share-your-photo.com/9297bf16d8
(Sep-19-2023, 07:22 PM)snippsat Wrote:
(Sep-19-2023, 07:06 PM)Liki Wrote: I'm trying so, but so I can not activate 'myenv'
It only activate myenv so when you are in (base).
(base) C:\ProgramData\miniconda3>activate myenv.

As mentation before when in (myenv),to start NoteBook you type jupyter lab,this is the new one the old was ipython-notebook.
Look at JupyterLab: A Next-Generation Notebook Interface.

thank you:

(base) C:\ProgramData\miniconda3>activate myenv

(myenv) C:\ProgramData\miniconda3>jupiter lab
Der Befehl "jupiter" ist entweder falsch geschrieben oder
konnte nicht gefunden werden.

(myenv) C:\ProgramData\miniconda3>jupyter lab
[I 2023-09-19 22:06:18.067 ServerApp] jupyter_server_fileid | extension was successfully linked.
[I 2023-09-19 22:06:18.078 ServerApp] jupyter_server_ydoc | extension was successfully linked.
[I 2023-09-19 22:06:18.094 ServerApp] jupyterlab | extension was successfully linked.
[I 2023-09-19 22:06:18.106 ServerApp] nbclassic | extension was successfully linked.
[I 2023-09-19 22:06:18.116 ServerApp] Writing Jupyter server cookie secret to C:\Users\HP\AppData\Roaming\jupyter\runtime\jupyter_cookie_secret
[I 2023-09-19 22:06:24.580 ServerApp] notebook_shim | extension was successfully linked.
[I 2023-09-19 22:06:24.795 ServerApp] notebook_shim | extension was successfully loaded.
[I 2023-09-19 22:06:24.796 FileIdExtension] Configured File ID manager: ArbitraryFileIdManager
[I 2023-09-19 22:06:24.805 FileIdExtension] ArbitraryFileIdManager : Configured root dir: C:/ProgramData/miniconda3
[I 2023-09-19 22:06:24.805 FileIdExtension] ArbitraryFileIdManager : Configured database path: C:\Users\HP\AppData\Roaming\jupyter\file_id_manager.db
[I 2023-09-19 22:06:24.866 FileIdExtension] ArbitraryFileIdManager : Successfully connected to database file.
[I 2023-09-19 22:06:24.867 FileIdExtension] ArbitraryFileIdManager : Creating File ID tables and indices with journal_mode = DELETE
[I 2023-09-19 22:06:25.264 ServerApp] jupyter_server_fileid | extension was successfully loaded.
[I 2023-09-19 22:06:25.269 ServerApp] jupyter_server_ydoc | extension was successfully loaded.
[I 2023-09-19 22:06:25.278 LabApp] JupyterLab extension loaded from C:\ProgramData\miniconda3\envs\myenv\Lib\site-packages\jupyterlab
[I 2023-09-19 22:06:25.282 LabApp] JupyterLab application directory is C:\ProgramData\miniconda3\envs\myenv\share\jupyter\lab
[I 2023-09-19 22:06:25.306 ServerApp] jupyterlab | extension was successfully loaded.

  _   _          _      _
 | | | |_ __  __| |__ _| |_ ___
 | |_| | '_ \/ _` / _` |  _/ -_)
  \___/| .__/\__,_\__,_|\__\___|
       |_|

Read the migration plan to Notebook 7 to learn about the new features and the actions to take if you are using extensions.

https://jupyter-notebook.readthedocs.io/en/latest/migrate_to_notebook7.html

Please note that updating to Notebook 7 might break some of your extensions.

[I 2023-09-19 22:06:25.407 ServerApp] nbclassic | extension was successfully loaded.
[I 2023-09-19 22:06:25.414 ServerApp] Serving notebooks from local directory: C:\ProgramData\miniconda3
[I 2023-09-19 22:06:25.414 ServerApp] Jupyter Server 1.23.4 is running at:
[I 2023-09-19 22:06:25.415 ServerApp] http://localhost:8888/lab?token=b64394d59e87694909b3d15ee60370cdc26a8ac35348273f
[I 2023-09-19 22:06:25.416 ServerApp]  or http://127.0.0.1:8888/lab?token=b64394d59e87694909b3d15ee60370cdc26a8ac35348273f
[I 2023-09-19 22:06:25.416 ServerApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
[C 2023-09-19 22:06:25.575 ServerApp]

    To access the server, open this file in a browser:
        file:///C:/Users/HP/AppData/Roaming/jupyter/runtime/jpserver-10044-open.html
    Or copy and paste one of these URLs:
        http://localhost:8888/lab?token=b64394d59e87694909b3d15ee60370cdc26a8ac35348273f
     or http://127.0.0.1:8888/lab?token=b64394d59e87694909b3d15ee60370cdc26a8ac35348273f
0.02s - Debugger warning: It seems that frozen modules are being used, which may
0.00s - make the debugger miss breakpoints. Please pass -Xfrozen_modules=off
0.00s - to python to disable frozen modules.
0.01s - Note: Debugging will proceed. Set PYDEVD_DISABLE_FILE_VALIDATION=1 to disable this validation.
[W 2023-09-19 22:06:33.525 ServerApp] 404 GET /api/me?1695153989454 (::1) 1629.50ms referer=http://localhost:8888/lab
[W 2023-09-19 22:06:34.775 LabApp] Could not determine jupyterlab build status without nodejs
İmage


https://share-your-photo.com/9297bf16d8
Reply
#9
(Sep-19-2023, 07:22 PM)snippsat Wrote:
(Sep-19-2023, 07:06 PM)Liki Wrote: I'm trying so, but so I can not activate 'myenv'
It only activate myenv so when you are in (base).
(base) C:\ProgramData\miniconda3>activate myenv.

As mentation before when in (myenv),to start NoteBook you type jupyter lab,this is the new one the old was ipython-notebook.
Look at JupyterLab: A Next-Generation Notebook Interface.

1. If I will close the cmd now: can I open Jupiterlab
a) without cmd from my PC now?:
b) only if I comes in new opened cmd in (base) -> myenv
(myenv) C:\ProgramData\miniconda3>jupiter lab 
?
c) should I not download the packages (ipython, jupyter lab .....) again by new opening of cmd? Would be now enough,
only to come in new opened cmd on
(myenv) C:\ProgramData\miniconda3>jupiter lab 
?

2. Now is my cursor in cmd inactiv: I can not type anything in cmd more. Can I switch in cmd to type-mode back?
a) because I would like to type
(myenv) C:\ProgramData\miniconda3>ipython
Reply
#10
(Sep-19-2023, 08:44 PM)Liki Wrote: 1. If I will close the cmd now: can I open Jupiterlab
a) without cmd from my PC now?:
No,you always start for command line.
Make a shortcuts(copy line to cmd) to start myenv with one line in cmd.
C:\ProgramData\miniconda3\Script\activate myenv  
(Sep-19-2023, 08:44 PM)Liki Wrote: ?
c) should I not download the packages (ipython, jupyter lab .....) again by new opening of cmd?
No,for you now all is ok.
(Sep-19-2023, 08:44 PM)Liki Wrote: 2. Now is my cursor in cmd inactiv: I sould not type anything in cmd more. Can I switch to type-mode back?
a) because I would like to type
Same as you do with jupyter lab if you type ipython then will the IPython REPL start.
Same with spyder this will start spyder editor.
So all is done from command line.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Pycharm and Conda annalma 4 2,574 Jan-05-2021, 04:16 PM
Last Post: paul18fr
  installing anaconda packages offline HulkHogansArmsArePythons 4 7,409 Feb-18-2020, 08:23 PM
Last Post: jefsummers
  Installing pip packages on Windows 10 tablet jazmad 5 4,241 Oct-24-2018, 10:37 AM
Last Post: jazmad
  missing pandas even if in conda list metalray 2 3,481 May-29-2018, 12:52 PM
Last Post: metalray
  Installing packages through Anaconda? Athenaeum 5 15,725 Oct-08-2017, 03:17 AM
Last Post: Athenaeum

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020