-5

I am doing a project in python where I have a very large dataset where I have to do a fisher exact test. This must be done 600,000,000 times so efficiency is quite important. However, with the scipy package this takes 50 hours, but I have read that https://pypi.python.org/pypi/fisher/ should be much faster. But I don't understand how to get it installed in Windows 8.

I have tried using: python setup.py install, this gives the error:

D:\Programmer\Python\Scripts\fisher-0.1.4>python setup.py install

running install
running build
running build_py
running build_ext
building 'fisher/cfisher' extension
error: Unable to find vcvarsall.bat

what is wrong?

Oerd
  • 2,256
  • 1
  • 21
  • 35
Acarbalacar
  • 714
  • 2
  • 7
  • 19
  • You asked a [question with the same title](http://stackoverflow.com/questions/24288172/installing-a-python-module-on-windows-8) an hour ago that you deleted. Care to explain? – wnnmaw Jun 18 '14 at 16:12
  • Try `pip install fisher`. –  Jun 18 '14 at 16:15
  • Note that you'll need Cython and a C compiler to build the package from source. –  Jun 18 '14 at 16:17
  • I have tried pip install fisher also. It gives another error, but I want paste it all into here since its quite long, but the last 3 lines is: Cannot export initfisher/cfisher: symbol not defined collect2.exe: error: ld returned 1 exit status error: command 'gcc' failed with exit status 1 – Acarbalacar Jun 18 '14 at 16:37
  • You need a C compiler. VC++, or mingw, cygwin, whatever works for you. That's what the error is about. –  Jun 19 '14 at 08:22

1 Answers1

0

This is how you do it:

Type into the Command Prompt window:

set path=%path%;C:\Python27\

And hit enter.

Use the complete path to the folder using CD.

eg: cd c:\Users\fisher-0.1.4

Then type python setup.py install

wnnmaw
  • 5,444
  • 3
  • 38
  • 63
Aaron Misquith
  • 621
  • 1
  • 7
  • 11