Comments (3)
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.
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.
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)
- The new tarballBuilder fails when HOME variable set on execution host HOT 1
- Allow running custom commands in the tarball builder
- Clean install fails at sudo nixos-rebuild switch HOT 3
- /run/user/$UID has 0755 access permissions by default HOT 4
- 23.11: `types.string` is deprecated HOT 3
- nixos-rebuild fails after import due to clap_lex requiring rust >= 1.70.0 HOT 7
- nixos-wsl-utils build fail (rustc ist too old) HOT 5
- WSLg desktop integration does not show apps in Start menu and correct icons for GUI apps HOT 2
- Systemctl with user flag don't work HOT 5
- Make configuration.nix writeable by root HOT 6
- Processing fstab with mount -a failed. HOT 8
- Possibilty to add search entry when /etc/resolv.conf is generated HOT 2
- Symbolic Link Error When Using `wsl.useWindowsDriver` HOT 1
- Add rescue shell to launcher
- Allow rollbacks through the launcher
- Embed version information in channels HOT 1
- nu shell (nushell) with no PATH set on nixos-wsl HOT 15
- How can I run NixOS on WSL2 on Windows 11 inside VirtualBox?
- Unable to connect to internet and update channels upon creating NixOS WSL2 instance HOT 8
- Launcher: Check if WSL is installed
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nixos-wsl.