You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I searched open reports and couldn't find a duplicate
What happened?
What I did:
on a Windows 10 machine with anaconda3 running conda 23.7.4, I created a test environment "test_env" using conda create -n test_env python=3.12.
I then activated the environment (conda activate test_env) and installed ipykernel with conda install ipykernel
Following the section "Commandline Usage" of https://conda.github.io/conda-pack/, I then moved the environment to another (offline) Windows 10 computer with miniconda3 running conda 24.9.2
On that computer I inspected the file kernel.json (located at "C:\Users<my_user>\AppData\Local\anaconda3\envs\test_env\share\jupyter\kernels\python3" on the first computer, and at "C:\Users<my_user>\AppData\Local\miniconda3\envs\test_env\share\jupyter\kernels\python3" on the second computer), and could see that the first "argv" entry had been changed from "C:/Users/<my_user>/AppData/Local/anaconda3/envs/test_env\python.exe" (see the uploaded kernel.json file) to something very different and obviously wrong.
Activating the environment and running conda-unpack, I saw that the same path was changed to ""//?/C:/Users/<my_user>/AppData/Local/miniconda3/envs/test_env\python.exe", which is as I expected, except for the "//?/" prefix.
Is this a bug, or have I done something incorrectly?
Note that manually removing the prefix in the kernel.json file caused the desired behaviour (jupyter notebook was able to find and use the environment). Also note that in step 5 above, I activated the environment using conda activate test_env instead of source my_env/bin/activate which was described in https://conda.github.io/conda-pack/, as that command did not work.
Checklist
What happened?
What I did:
conda create -n test_env python=3.12
.conda activate test_env
) and installed ipykernel withconda install ipykernel
conda-unpack
, I saw that the same path was changed to ""//?/C:/Users/<my_user>/AppData/Local/miniconda3/envs/test_env\python.exe", which is as I expected, except for the "//?/" prefix.Is this a bug, or have I done something incorrectly?
Note that manually removing the prefix in the kernel.json file caused the desired behaviour (jupyter notebook was able to find and use the environment). Also note that in step 5 above, I activated the environment using
conda activate test_env
instead ofsource my_env/bin/activate
which was described in https://conda.github.io/conda-pack/, as that command did not work.Additional Context
kernel.json
The text was updated successfully, but these errors were encountered: