I already read this and checked the Official documentation, but none of them helped.
As first attempt I tried this:
conda create --name myclone --clone base
but I get many errors like the following:
ClobberError: This transaction has incompatible packages due to a shared path.
packages: defaults/win-64::jupyterlab-3.4.4-py39haa95532_0, defaults/win-64::_ipyw_jlab_nb_ext_conf-0.1.0-py39haa95532_0
path: 'scripts/jupyter-labhub-script.py'
Then, I tried the alternative route with
conda list --explicit > spec-file.txt
conda create --channel conda-forge --name myenv --file spec-file.txt
conda install --name myenv --file spec-file.txt
getting the following output:
Collecting package metadata (current_repodata.json): done
Solving environment: failed with repodata from current_repodata.json, will retry with next repodata source.
Collecting package metadata (repodata.json): done
Solving environment: failed
PackagesNotFoundError: The following packages are not available from current channels:
- / / c o n d a . a n a c o n d a . o r g / c o n d a - f o r g e / n o a r c h / s p h i n x - i n l i n e - t a b s - 2 0 2 2 . 1 . 2 b 1 1 - p y h d 8 e d 1 a b _ 0 . t a r . b z 2
- / / r e p o . a n a c o n d a . c o m / p k g s / m a i n / n o a r c h / s p h i n x c o n t r i b - h t m l h e l p - 2 . 0 . 0 - p y h d 3 e b 1 b 0 _ 0 . c o n d a
- / / r e p o . a n a c o n d a . c o m / p k g s / m a i n / n o a r c h / i t e m l o a d e r s - 1 . 0 . 4 - p y h d 3 e b 1 b 0 _ 1 . c o n d a
...
Current channels:
- https://conda.anaconda.org/conda-forge/win-64
- https://conda.anaconda.org/conda-forge/noarch
- 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.
As a novice, I was not aware of virtual environments, so I installed many packages in my base
(many of them were only available on conda-forge
).
Now, I want to create a virtual environment based on my base
env but I am failing and I would appreciate some help.
Running on Windows 10
.