GithubHelp home page GithubHelp logo

Using it on Windows? about mne-icalabel HOT 12 CLOSED

mne-tools avatar mne-tools commented on May 26, 2024
Using it on Windows?

from mne-icalabel.

Comments (12)

mscheltienne avatar mscheltienne commented on May 26, 2024 1

Yes, but I'm not using conda and I'm getting PyTorch from pip. Works like a charm :)

from mne-icalabel.

mscheltienne avatar mscheltienne commented on May 26, 2024 1

On windows, I grab the installer 64 bits here: https://www.python.org/downloads/release/python-3912/ (or a different version), install it for all users (I don't like installing in the user directories), and add the python directories to the system path (through the installer).
Then, since I'm using Spyder as IDE, I usually install it in the base environment with py -m pip install spyder. I create a virtual env for whatever project I'm working on with py -m venv name, and activate it with name/Scripts/activate.bat.
Then, I install the dependencies I need, e.g.:

py -m pip install --upgrade pip setuptools wheel
py -m pip install spyder-kernels matplotlib pyqt5
py -m pip install numpy scipy mne torch

I'm doing very similarly on Linux or macOS where I install python via the package manage or homebrew and repeat the other steps.

The beauty of python, you have 100 different ways of setting it up.. and messing it up! Someone recently shared this nice illustration for macOS:

python_environment

from mne-icalabel.

adam2392 avatar adam2392 commented on May 26, 2024 1

I haven't used a Windows computer in over 5-10(?) years now, so unfortunately I cannot help :p

from mne-icalabel.

hoechenberger avatar hoechenberger commented on May 26, 2024 1

Yes, same … But I suppose I should get one specifically for this kind of stuff

from mne-icalabel.

anbara avatar anbara commented on May 26, 2024 1

Hello, I report that my windows machine can run mne-icalabel on micromamba environment.
The solution is simply to add a pytorch channel.

micromamba create -n hoge python=3.10 mne=1.3 mne-icalabel=0.4 -c conda-forge -c pytorch

Additionally, the installation document (Installation via Cond) includes wrong information.
This command does not install mne-icalabel on windows.
I think you had better update the documentation.

This project is very great for me. Thanks to all contributors. 😄

from mne-icalabel.

mscheltienne avatar mscheltienne commented on May 26, 2024 1

Hello, thanks for the report. I will try to fix the documentation for conda.

from mne-icalabel.

jacobf18 avatar jacobf18 commented on May 26, 2024 1

@hoechenberger @mscheltienne I opened a pull request that adds support for ONNX on top of PyTorch. I have not tested it personally on windows (outside the GitHub unit-tests), but there is a conda-forge link to the onnxruntime library. We can add additional functionality to choose which underlying library to use when installing mne-icalable if installing PyTorch is a problem.

from mne-icalabel.

hoechenberger avatar hoechenberger commented on May 26, 2024

How do you install Python?

Edit: and NumPy :)

from mne-icalabel.

hoechenberger avatar hoechenberger commented on May 26, 2024

The comic is outdated, macOS doesn't ship with system Python anymore :)

from mne-icalabel.

mscheltienne avatar mscheltienne commented on May 26, 2024

I'm still running 11.6 Big Sur, too scared to update :)
Glad to know that they finally got rid of this 2.7 default version!

from mne-icalabel.

jacobf18 avatar jacobf18 commented on May 26, 2024

@hoechenberger I'm not using a windows machine, but if you want to try installing PyTorch on your own and using the source code from git directly, the PyTorch page describes how to install it on windows: https://pytorch.org/get-started/locally/.

from mne-icalabel.

hoechenberger avatar hoechenberger commented on May 26, 2024

cc @larsoner, we should try that for our Windows standalone MNE installers

from mne-icalabel.

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.