Code Monkey home page Code Monkey logo

Comments (11)

jasongrout avatar jasongrout commented on September 26, 2024

In fact this also has a problem:

Edit: Changed the first line of the example to include --override-channels to reproduce the issue.

>conda create -n jlabtutorial -c conda-forge  --override-channels python=3.7 nodejs
Collecting package metadata (current_repodata.json): done
Solving environment: failed
Collecting package metadata (repodata.json): done
Solving environment: failed

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

  - nodejs -> vs2015_runtime
  - python=3.7 -> openssl[version='>=1.1.1a,<1.1.2a'] -> vc=14

Current channels:

  - https://conda.anaconda.org/conda-forge/win-64
  - https://conda.anaconda.org/conda-forge/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.

from jupyterlab-feedstock.

mwcraig avatar mwcraig commented on September 26, 2024

@mariusvniekerk -- any ideas here?

from jupyterlab-feedstock.

ian-r-rose avatar ian-r-rose commented on September 26, 2024

@jasongrout Perhaps related to conda-forge/jupyterlab_server-feedstock#9 , from 5 days ago?

from jupyterlab-feedstock.

mwcraig avatar mwcraig commented on September 26, 2024

@jasongrout -- as a workaround, don't use the --override-channels option. pulling from defaults and conda-forge seems to work (the environment is currently installing, so I haven't tested functionality yet)

from jupyterlab-feedstock.

mwcraig avatar mwcraig commented on September 26, 2024

It looks like the issue is that neither vc nor vs_2015_runtime are in conda-forge on the main label.

from jupyterlab-feedstock.

mwcraig avatar mwcraig commented on September 26, 2024

@jasongrout -- the decision was mad to stop vendoring the microsoft runtimes in conda-forge because 1) doing so was causing conflicts within conda-forge because of compilation against different versions of the runtime and 2) conda-forge does not build the runtime. The runtimes are pulled from defaults.

You can accomplish what you want (conda-forge first, ignoring whatever other channel settings the user may have) with:

conda create -n jlabtutorial --strict-channel-priority -c conda-forge -c defaults  --override-channels python=3.7 nodejs

When I do that on windows everything comes from conda-forge except the runtimes, which are pulled from defaults.

I don't think there is anything to fix -- if this workaround works for you the issue can be closed.

from jupyterlab-feedstock.

jasongrout avatar jasongrout commented on September 26, 2024

the decision was mad to stop vendoring the microsoft runtimes

I assume you mean "made", not "mad" as in it was insane to stop vendoring runtimes?

from jupyterlab-feedstock.

mwcraig avatar mwcraig commented on September 26, 2024

Oops, yes "made" 🤣

from jupyterlab-feedstock.

mariusvniekerk avatar mariusvniekerk commented on September 26, 2024

@mwcraig Thats the correct approach.

from jupyterlab-feedstock.

jasongrout avatar jasongrout commented on September 26, 2024

To be more precise, for people that have redefined the defaults channel, this works:

conda create -n jlabtutorial --strict-channel-priority -c conda-forge -c anaconda  --override-channels python=3.7 nodejs

Does that look right to you?

from jupyterlab-feedstock.

jasongrout avatar jasongrout commented on September 26, 2024

Also this works:

conda create -n jlabtutorial --strict-channel-priority -c conda-forge -c anaconda  --override-channels jupyterlab=1

I suppose if you wanted to be really strict, you'd do something like

conda create -n jlabtutorial --override-channels -c anaconda <vc runtime packages>
conda activate jlabtutorial
conda install --override-channels -c conda-forge <rest of packages>

Thanks again! Closing as answered

from jupyterlab-feedstock.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.