-
Notifications
You must be signed in to change notification settings - Fork 69
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
Installation problems on Windows #33
Comments
Does it work if you create and activate a new environment first? btw I don't know if you saw, but there's now also a package on |
I tried the conda-forge package: after |
I get the same error with the conda package. I will try with fresh env and other computers tomorrow. |
I have also seen this (or a very similar) error message with conda on Windows. It seems like the |
I would strongly suggest to install into a fresh environment, or else solving will take ages (or never finish), and chances are you will totally screw up your current (base) environment, as you‘ll end up with a mix of conda-forge and defaults packages. |
Thanks, I'll try that!
I know, I will test on a fresh env for sure - I am trying to persuade some of my friends to teach with mnelab instead of eeglab and a ready-made conda env recipe will be the simplest solution for them and their students. However, for myself I am ready to make extra effort to have everything working in one env. I already have some packages from conda and some from conda-forge and so far it is working fine. I am aware of the dangers though, thanks. :) |
@hoechenberger |
I don't think this is specific for this package because this has happened to me so often that I don't want to use conda. But exactly for this reason I'm not a conda expert, maybe it's just me and I keep screwing it up for whatever reason. It'd be interesting to learn which packages from the conda-forge channel are installed as dependencies - other than MNE itself I think everything else should be present in the default channel. |
😄 I have very similar experience but with |
Yep, I can only speak for macOS/Linux.
The code explicitly creates a new env, but if you want we can also re-word the preceding sentence. However, I'd be interested if this is specific for this package - but this should be discussed at https://github.com/conda-forge/mnelab-feedstock/issues. |
Often one might want to use defaults channel as the default and only install packages not present there from conda-forge, especially in the base environment, like: conda install -c defaults -c conda-forge mnelab Anyway python packaging is notably horrible, and almost always good idea to use environments. |
Generally, it's not a great idea to mix Until recently, one would constantly run into trouble with packages depending on mathematical libraries, like
Installing So to cut the long story short:
|
Wow, this sounds really complicated given that conda should simplify Python package management. I never had problems with installing What about the alternative that is already mentioned at the bottom of the README.md:
This works and doesn't screw up the base env because no additional deps are pulled in ( |
Ah wait, it doesn't work because pip also installs |
But you can do this:
|
@cbrnr If one follows the current |
Yes I know, but should we mention the other option? I imagine that people might have reasons to install MNELAB into their base env (so it's always available without the additional activation command). |
Yeah we could do that, I still believe it's... not a great thing to do. but who am I to judge :) |
@cbrnr I can do a PR on this later today |
You're the conda expert, so if you say it should be done as it is currently in the README, there's no need to describe a stupid way. Also, let's make things not overly complicated - if someone uses conda there is one way to install it. |
This would of course also skip |
Yes, I don't need mayavi 😄 - but I get the point, my setup is very special, so let's not get into that. If someone really wants to install a barebones MNE + MNELAB in a conda base env, they will figure it out (or I will tell them upon request). |
I'd like to hear @mmagnuski's opinion on that :) |
Yes, let's wait. Just to make it clear, |
I think there are many good reasons to have a good working base conda environment with everything one needs and create additional envs only when there are conflicts that one is not able to avoid. In my context for example, I was trying to simplify things for my students, who often feel uncomfortable installing packages in python from console - asking them to have separate envs for different things, or even just one env might be too much, unfortunatelly. |
* DOC: Urge users to install into dedicated conda env x-ref GH-33 * DOC: Style; add entry point command for pip instructions * DOC: MNELAB spelling
@mmagnuski |
Sure, no offence. :) |
Using the default command
pip install mnelab
on Windows I get:strangely, I get it even when I run it in command prompt with administrator privileges. When I run using
pip install mnelab --user
the script themnelab.exe
is put in a separate directory and does not do anything. When I then first activate my base anaconda env (it is my default python so I don't know why it makes any difference) and then dopip install mnelab
- I get everything installed in one directory butmnelab.exe
still does not work.When I try to import mnelab in python I get:
I might have been unlucky - I can test tomorrow on other Windows computers.
The text was updated successfully, but these errors were encountered: