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

Make PyHawkes installable on Windows #8

Open
Caijiawen opened this issue Mar 14, 2017 · 6 comments
Open

Make PyHawkes installable on Windows #8

Caijiawen opened this issue Mar 14, 2017 · 6 comments

Comments

@Caijiawen
Copy link

when i use

python setup.py build_ext --inplace

to install this package , error happens and the main part is :

writing build\temp.win-amd64-2.7\Release\pyhawkes\internals\continuous_time_helpers.def
c:\Rtools\mingw_32\bin\gcc.exe -DMS_WIN64 -shared -s build\temp.win-amd64-2.7\Release\pyhawkes\internals\continuous_time_helpers.o build\temp.win-amd64-2.7\Release\pyhawkes\internals\continuous_time_helpers.def -LC:\Users\hp\Anaconda2\libs -LC:\Users\hp\Anaconda2\PCbuild\amd64 -LC:\Users\hp\Anaconda2\PC\VS9.0\amd64 -lpython27 -lmsvcr90 -o C:\Users\hp\Desktop\pyhawkes-master\pyhawkes-master\pyhawkes\internals\continuous_time_helpers.pyd -fopenmp
C:\Users\hp\Anaconda2\libs/libpython27.dll.a: error adding symbols: File format not recognized
collect2.exe: error: ld returned 1 exit status
error: command 'c:\Rtools\mingw_32\bin\gcc.exe' failed with exit status 1

how can i solve this problem?

@jayeshchoudhari
Copy link
Contributor

There are number of prerequisites/requirements before you run this. I do not know whether Anaconda does give you all. Do check that once.

@slinderman
Copy link
Owner

Thanks for raising this issue. Unfortunately I haven't done any testing on Windows. One of the first issues will be handling the GSL dependency.

I'm going to work on cleaning up the installation process by making the dependence on GSL and OpenMP optional, but that will take some time. I've opened a new issue to track this: #10

@slinderman slinderman changed the title Installation error Make PyHawkes installable on Windows Mar 28, 2017
@slinderman
Copy link
Owner

Hi @Caijiawen, I've updated the PyHawkes installation procedure so that at least the default, single-threaded version should run on Windows. It does, however, still rely on Cython, so that may pose some problems. Can you please give pip install pyhawkes or python setup.py install (on the latest from master) a shot and see if it works for you? If not, I can also make Cython optional by shipping the source files.

@Yoln1
Copy link

Yoln1 commented May 10, 2017

Hi @slinderman ,

I had to specify the use of VisualC++14 installer instead of GCC on windows, but everything went fine when running the following from terminal, for both pyhawkes and pybasicbayes:

pip3.5 install --global-option build_ext --global-option --compiler=msvc pyhawkes

Thanks for your great work on that package!

@ScottishFold007
Copy link

I can do this,just by:
python setup.py build

image

@simhadribhargava
Copy link

Hi @slinderman I am unable to pyhawkes package on my Jupyter notebook on windows.

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

6 participants