Code Monkey home page Code Monkey logo

Comments (3)

SuperSandro2000 avatar SuperSandro2000 commented on June 14, 2024 1

My first recommendation is to not use conda on NixOS because it downloads pre-compiled binaries which require patching.

Also Python 3.6 is out of support in nixpkgs. Currently only Python 3.9 and 3.10 are supported.

You must add /host/usr/lib/wsl/lib to the LD_LIBRARY_PATH or the dynamic libraries fails to load

That is likely because wsl can't write the ld preload file to /etc. Maybe we can hardcode that. I found the error in the beginning of dmesg.

If you are required to use python 3.6 and conda to get your work done I would recommend to stay on Ubuntu.


PS: I personally wouldn't use conda on any Linux or Windows because the constraint resolver is slow and presents very bad recommendations. Also it usually majorly differs from Linux production environments which requires you to build two setups.

from nixos-wsl.

nzbr avatar nzbr commented on June 14, 2024

From https://github.com/microsoft/tensorflow-directml:

Note: Python 3.8 or newer is not currently supported. To use the official PyPi packages, the CPython interpreter is required. NumPy 1.19.4 is requires the KB4598291 to properly work on Windows.

So unless Microsoft updates tensorflow-directml to support Python >= 3.9, I don't see a way to get this to work on NixOS without major workarounds like patching conda binaries or using the python derivation from an older NixOS version

from nixos-wsl.

shayne avatar shayne commented on June 14, 2024

So unless Microsoft updates tensorflow-directml to support Python >= 3.9, I don't see a way to get this to work on NixOS without major workarounds like patching conda binaries or using the python derivation from an older NixOS version

Will close for now given that state of things. It's also my experience that the approach Microsoft took here isn't ideal since it not only does it require the specific Python packages, but also code changes. Not being able to easily collaborate with non WSL users or pull in code from GitHub without making extensive changes is unfortunate. I may be wrong or missed something here!

Thanks all!

from nixos-wsl.

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.