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

Add support for Jax on Windows #438

Closed
dwang55 opened this issue Feb 23, 2019 · 31 comments · Fixed by #4843
Closed

Add support for Jax on Windows #438

dwang55 opened this issue Feb 23, 2019 · 31 comments · Fixed by #4843
Labels
build contributions welcome The JAX team has not prioritized work on this. Community contributions are welcome. good first issue Good for newcomers

Comments

@dwang55
Copy link

dwang55 commented Feb 23, 2019

I failed to build jax from source with(similar with #253, but my system is win):
Traceback (most recent call last):
File "build/build.py", line 308, in
main()
File "build/build.py", line 304, in main
[":install_xla_in_source_tree", os.getcwd()])
File "build/build.py", line 50, in shell
output = subprocess.check_output(cmd)
File "C:\Users\wangd\AppData\Local\Programs\Python\Python36\lib\subprocess.py", line 336, in check_output
**kwargs).stdout
File "C:\Users\wangd\AppData\Local\Programs\Python\Python36\lib\subprocess.py", line 418, in run
output=stdout, stderr=stderr)
subprocess.CalledProcessError: Command '['C:\bazel\bazel.EXE', 'run', '--verbose_failures=true', '--config=mkl_open_source_only', ':install_xla_in_source_tree', 'C:\Users\wangd\jax\build']' returned non-zero exit status 2.

@mattjj
Copy link
Collaborator

mattjj commented Feb 23, 2019

Thanks for raising this.

JAX doesn’t support Windows right now, though it may be that the only thing standing in our way is getting the build to work. If Tensorflow can be built with XLA on Windows, then it should be possible to build JAX too, with some revisions to our own build scripts to fix issues like this.

Getting JAX on Windows is out of scope for us for now, just because we need to prioritize other kinds of progress. But contributions are welcome!

@mattjj
Copy link
Collaborator

mattjj commented Feb 23, 2019

On second thought, let’s leave this issue open with a “contributions welcome” tag so that it’s visible to others.

@mattjj mattjj added good first issue Good for newcomers and removed wontfix labels Feb 23, 2019
@dwang55
Copy link
Author

dwang55 commented Feb 24, 2019

Thanks for the response! I'm following the instruction from Eric Jang's MAML tutorial. Maybe it's helpful to illustrate it in README for beginners on machine learning like me.

@hawkinsp hawkinsp changed the title Failed to build jax from source on Windows Add support for Jax on Windows Mar 14, 2019
@Prasitt
Copy link

Prasitt commented Mar 22, 2019

7.2

@christopher-hesse
Copy link

christopher-hesse commented Apr 9, 2019

Looks like XLA does not compile on Windows as of version v2.0.0-alpha and v1.13.1: tensorflow/tensorflow#25773

@christopher-hesse
Copy link

That issue has been fixed, so it's possible that jax compiles on windows now. In the meantime, I installed the CPU only version of jax using Windows Subsystem for Linux and it seems to work fine there.

@hawkinsp hawkinsp added the contributions welcome The JAX team has not prioritized work on this. Community contributions are welcome. label May 30, 2019
@peterdsharpe
Copy link

peterdsharpe commented Sep 27, 2019

Confirming @cclauss 's report - I was also able to successfully build the CPU-only version on Windows Subsystem for Linux. If you use PyCharm as your IDE, you can even link it to your Windows version of PyCharm.

@RobeeF
Copy link

RobeeF commented Mar 30, 2020

Hello JAX Team,

Is developing a Windows version of JAX now on the agenda or do you still have other more urgent developments ?

Thanks in advance !

@mattjj
Copy link
Collaborator

mattjj commented Mar 30, 2020

Thanks for asking!

Windows support is still not on the agenda. We're maxed out on other things, and moreover no one on the JAX team is a Windows user, which only makes development harder.

That's why this issue remains as a "contributions welcome" item, especially from people who know how to develop on Windows!

@Artem-B
Copy link
Contributor

Artem-B commented Mar 30, 2020

There's been a fair amount of progress making XLA available on windows, which is a prerequisite for JAX. It will be available in TF 2.2 but the nightlies and 2.2rc builds should already have it enabled. I have no clue whether JAX will need additional work, but it would be mostly on JAX side. I would not be surprised if it would just build&work now.

@mattjj
Copy link
Collaborator

mattjj commented Mar 30, 2020

Thanks for pointing that out, @Artem-B !

JAX is almost pure Python and so I'm optimistic it'll work well once XLA is available.

@RobeeF
Copy link

RobeeF commented Mar 30, 2020

Thanks a lot for your very quick responses!
I will stay tuned.

@ImNotMyself
Copy link

Hello JAX Team

TensorFlow 2.2.0 has been released, and XLA is marked available on Windows in its release note. May I know if there’s any plan or progress on Windows version of JAX ?

@agktogether
Copy link

agktogether commented May 16, 2020

@mattjj JAX is writting in python and c++ ,so it gotta not be problem for being compatible for windows
both them have your compiler and independent of os layer??
your architecture what is mage?

@mattjj
Copy link
Collaborator

mattjj commented May 16, 2020

I think the latest attempt to build on Windows is in #2582. Maybe the TF 2.2 release makes it even easier!

In any case, we don't have the bandwidth on the JAX core team to work on a Windows build (none of us have Windows machines either!), but contributions here are more than welcome.

@agktogether
Copy link

@mattjj ubuntu or Linux like systems are not perfect for GUI Computing and coding but windows although is very weak and stupid in developing, you can use other OS for generating software for another OS
it is possible...any way all of us is its architecture not me

@michaelosthege
Copy link

Unfortunately WSL2 is not the ultimate solution: Accessibility for many Python users is terrible and installing WSL2 installation requires admin permissions, which for good reasons are not given by default in many companies.

I'd offer to help, but I have no clue about compiler settings..

@enojoker
Copy link

It seems that the build script is the only thing stopping people from using JAX on windows now. Could you guys look into it? There are many use cases in the windows system.

@hawkinsp
Copy link
Collaborator

@cloudhan submitted PR #4843 which allows JAX to build and run on Windows. There are still a few things for us to do:

  • not all tests pass (PRs welcome!)
  • we will need to set up CI testing and include wheel builds in our releases.

But this is wonderful progress! Thanks @cloudhan !

@elisim
Copy link

elisim commented May 17, 2021

Hi, any progress of supporting JAX for windows?
Alternatively, please consider changing the error msg to something for informative:

ModuleNotFoundError: jax requires jaxlib to be installed. See https://github.com/google/jax#installation for installation instructions.

@javrtg
Copy link

javrtg commented Jul 8, 2021

As a begginer myself with wsl2 and linux, is there a sort of step-by-step tutorial that shows how to get jax up and running?
Concretely, I am interested in using jax in a conda environment (idk if this is possible at the moment),

btw amazing work!

@tanujdhiman
Copy link

Hello everybody !!
Is it now working in windows ? with pip install jaxlib.
Thanks

@cloudhan
Copy link
Contributor

@tanujdhiman just try https://github.com/cloudhan/jax-windows-builder

@sew2022
Copy link

sew2022 commented Mar 7, 2023

Could not find a version that satisfies the requirement jaxlib (from versions: none)

@FurkanGozukara
Copy link

this is beyond unacceptable

single person able to provide windows version but you can't as google?

https://github.com/cloudhan/jax-windows-builder

codesavory added a commit to codesavory/stable3D that referenced this issue May 7, 2023
@r3z8
Copy link

r3z8 commented Oct 31, 2023

Thanks for raising this.

JAX doesn’t support Windows right now, though it may be that the only thing standing in our way is getting the build to work. If Tensorflow can be built with XLA on Windows, then it should be possible to build JAX too, with some revisions to our own build scripts to fix issues like this.

Getting JAX on Windows is out of scope for us for now, just because we need to prioritize other kinds of progress. But contributions are welcome!

Hi, Hope all is well for you
Is this still the case? I've been dealing with Jax not being supported on windows and I was wondering if the support is going to be around any time soon? or is it in your schedule for future?

I should add that I need the jaxlib=0.3.15 for windows while it is only available for linux at the moment.

Thanks in advance

@hawkinsp
Copy link
Collaborator

@r3z8 JAX does make Windows CPU releases these days. But we only started doing that during the 0.4 series and we won't be going back and retroactively making Windows releases for older JAX versions, I'm afraid.

I think your best bet, if you need on old JAX version on Windows, would be to use WSL2 and install the Linux version. But going forward we're doing our best to support Windows on CPU (with help from the community).

@FurkanGozukara
Copy link

@r3z8 JAX does make Windows CPU releases these days. But we only started doing that during the 0.4 series and we won't be going back and retroactively making Windows releases for older JAX versions, I'm afraid.

I think your best bet, if you need on old JAX version on Windows, would be to use WSL2 and install the Linux version. But going forward we're doing our best to support Windows on CPU (with help from the community).

this is great news

but what about Jax GPU for Windows?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
build contributions welcome The JAX team has not prioritized work on this. Community contributions are welcome. good first issue Good for newcomers
Projects
None yet
Development

Successfully merging a pull request may close this issue.