Problems installing scikit-bio on Windows

When trying to install scikit-bio toolkit via pip on Windows XP using Python 2.78 and Visual C ++ 2008 Express Edition, the process is interrupted by the following message issued by VC:

cl : Command line error D8021 : invalid numeric argument '/Wno-error=declaration
-after-statement' 

      

Regarding this error, the Microsoft Developer Network website simply says:

invalid numeric argument 'number'

A number greater than 65,534 was specified as a numeric argument.

      

I have not tried to install scikit-bio on Linux (Ubuntu 12.04 Precise) yet, but I am under the impression that it will work fine (as does anything about Linux).

Has anyone succeeded in installing scikit-bio on Windows (XP, 7, 8)? Any hints?

Thanks in advance!

+3


source to share


3 answers


I have installed Anaconda Python (3.5) on a Windows 10 machine. As you know, there is no official scikit-bio version for this platform, but you can install it using this workaround:

  • Download the latest source from Scikit-bio Github repository .
  • Using a tool like 7-zip, unzip it to your home directory.
  • Open a command line client and change to the source directory

    cd %HOMEPATH%\scikit-bio-master
    
          

  • Using Notepad ++ edit setup.py file

    "C:\Program Files (x86)\Notepad++\notepad++" setup.py
    
          

  • Find the line where the ssw_extra_compile_args variable is defined and change it. You can comment out the previous version and override the variable on a new line:

    #ssw_extra_compile_args = ['-Wno-error=declaration-after-statement']
    ssw_extra_compile_args = []
    
          

  • Save your changes, close the editor and run the installation using this command:

    python setup.py install
    
          

  • Hope you don't get any error messages. Open an Anaconda Python session (using command python

    ) and check if Scikit-Bio was installed correctly using print(skbio.art)

    .



Scikit-Bio on Windows 10

BTW, I already installed Visual Studio 2015 Community Edition with C ++ SDK features enabled to meet the compiler requirements for installing the package (Scikit-Bio).

+5


source


Scikit-bio does not officially support windows at this time. We'd definitely be interested to hear about how people put the effort into installing, testing, and using scikit-bio on Windows, but we don't have developers with experience in this area.



This is related to biocore / skbio # 941 .

+4


source


I tried to install scikit bio on windows-10 following this instruction. But now I get this error: "No local packages or working download links found for hdmedians> = 0.13 error: Could not find a suitable distribution for Requirement.parse ('hdmedians> = 0.13')"

Any solution to this?

0


source







All Articles