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

Install SimPEG on windows #719

Closed
jc-barreto opened this issue Aug 14, 2018 · 15 comments
Closed

Install SimPEG on windows #719

jc-barreto opened this issue Aug 14, 2018 · 15 comments

Comments

@jc-barreto
Copy link

Hello,

I'm trying to install SimPEG, but I'm getting an error.
When I try through the prompt line, with the command pip install SimPEG, installs all the packages but when arrives in the discretize I get an error:

image

image

And when I try to run the setup.py file I have the same error:

image

image

I already installed the Microsoft Visual C++ 2008 from here https://www.microsoft.com/en-ca/download/details.aspx?id=29
But still getting the error...
Someone knows how I can fix this?

Thanks a lot

@jc-barreto jc-barreto changed the title Install SimPEG on windowns Install SimPEG on windows Aug 14, 2018
@lheagy
Copy link
Member

lheagy commented Aug 14, 2018

Hi @jc-barreto, can you try installing the latest Visual C++ from here: https://support.microsoft.com/en-ca/help/2977003/the-latest-supported-visual-c-downloads (should be 2017) and give it another try?

Let us know how it goes!

cc @fourndo

@fourndo
Copy link
Member

fourndo commented Aug 14, 2018

@jc-barreto : I had users being more successful with the Build Tools, although it is a larger installation.

https://visualstudio.microsoft.com/visual-cpp-build-tools/

@jc-barreto
Copy link
Author

Hello,
Thank you very much.
I think is done. The second tip, installing just the Build tools didn't work, so I installed all the Visual Studio 2017.

image

Now I'm trying to run SimPEG to see if the installation was really successful, BUT I'm a layperson on this subject. I have tried to run the DC_inversio_2D_example from notebooks and I got an error, so I don't know if is because the installation wasn't successful or it is because I'm running the notebook wrong...

image

Some tip?

@fourndo
Copy link
Member

fourndo commented Aug 16, 2018

@jc-barreto 👍 Ok great, thanks for letting us know about Visual Studio.

Can you try opening a command window and type:

pip install pymatsolver
image

Then restart your kernel and run all

@jc-barreto
Copy link
Author

Thanks.

I did that...
image

image

image

But in my pymatsolver folder doesn't exist "PardisoSolver" I don't know why...

image

@fourndo
Copy link
Member

fourndo commented Aug 16, 2018

Same here
image

Hmmm not too sure. Let me dig into this...

@fourndo
Copy link
Member

fourndo commented Aug 16, 2018

@jc-barreto How about pyMKL, can you try a pip install?

pip install pyMKL

image

@jc-barreto
Copy link
Author

Yeah... I tried this before too =(

image

@jc-barreto
Copy link
Author

I didn't install Python through anaconda, I already had installed when I installed anaconda, do you think this matter?

@lheagy
Copy link
Member

lheagy commented Aug 16, 2018

Hi @jc-barreto: can you try conda install mkl? (mkl is distributed through conda and needs some of the conda libraries and I don't think the pip install can handle this)

I just saw your updated message - installations and managing your environment will be much(!) easier if you use ananconda to install python (https://www.anaconda.com/download). Use python 3.6 and the windows install

@jc-barreto
Copy link
Author

Hello,
I uninstalled python and anaconda, and then installed python through Anaconda.
Now the example it's working. Thank you! =)

@lheagy
Copy link
Member

lheagy commented Aug 20, 2018

Excellent, I am glad you are up and running @jc-barreto!!

@xtt790894620
Copy link

Hello,
Thank you very much.
I think is done. The second tip, installing just the Build tools didn't work, so I installed all the Visual Studio 2017.

image

Now I'm trying to run SimPEG to see if the installation was really successful, BUT I'm a layperson on this subject. I have tried to run the DC_inversio_2D_example from notebooks and I got an error, so I don't know if is because the installation wasn't successful or it is because I'm running the notebook wrong...

image

Some tip?
i have met the same troubl,how can i get through it?

@xtt790894620
Copy link

image
image

@fourndo
Copy link
Member

fourndo commented Jan 8, 2019

@xtt790894620 Looks like VS is still giving you trouble indeed.
I am not sure which one you have downloaded and installed, but this one works on all PCs I seen so far:
Visual Studio Community
image

Make sure during the installation that you've selected the Desktop develpmoent with C++ option.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants