Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

'"...\MyEnv\Scripts\jupyter-nbextension.exe"' is not recognized as an internal or external command, operable program or batch file. #1660

Open
amole-arup opened this issue Apr 22, 2024 · 0 comments

Comments

@amole-arup
Copy link

I tried to create an environment using conda env create -f file.yml, containing python 3.10 and jupyter, nbconvert and ipympl using conda-forge channel. It completed "transaction preparation" and "verification" and was carrying out the "transaction execution" when it failed with the following error: "C:\Users\user.name\AppData\Local\miniforge3\envs\MyEnv\Scripts\jupyter-nbextension.exe" is not recognized as an internal or external command, operable program or batch file.

Any idea why this should be the case and what we can do to fix it?

The full error is as follows:

(base) C:\Users\user.name>conda env create -f "YAML-files\MyEnv.yml"
Retrieving notices: ...working... done
Collecting package metadata (repodata.json): done
Solving environment: done


==> WARNING: A newer version of conda exists. <==
  current version: 23.3.1
  latest version: 24.3.0

Please update conda by running

    $ conda update -n base -c conda-forge conda

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

     conda install conda=24.3.0



Downloading and Extracting Packages

Preparing transaction: done
Verifying transaction: done
Executing transaction: | '"C:\Users\user.name\AppData\Local\miniforge3\envs\MyEnv\Scripts\jupyter-nbextension.exe"' is not recognized as an internal or external command,
operable program or batch file.

done
ERROR conda.core.link:_execute(740): An error occurred while installing package 'conda-forge::widgetsnbextension-3.5.2-py310h5588dad_1'.
Rolling back transaction: done

LinkError: post-link script failed for package conda-forge::widgetsnbextension-3.5.2-py310h5588dad_1
location of failed script: C:\Users\user.name\AppData\Local\miniforge3\envs\MyEnv\Scripts\.widgetsnbextension-post-link.bat
==> script messages <==
'"C:\Users\user.name\AppData\Local\miniforge3\envs\MyEnv2\Scripts\jupyter-nbextension.exe"' is not recognized as an internal or external command,
operable program or batch file.

==> script output <==
stdout:
stderr:
return code: 1

()


(base) C:\Users\user.name>conda activate MyEnv

(MyEnv) C:\Users\user.name>conda list
# packages in environment at C:\Users\user.name\AppData\Local\miniforge3\envs\MyEnv:
#
# Name                    Version                   Build  Channel

(MyEnv) C:\Users\user.name>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant