Py2Exe Scikit-Image编译缺少mkl_intel_thread.dll

时间:2016-02-13 20:05:25

标签: python python-3.4 py2exe

使用py2exe和Scikit-Image我正在尝试编译图像编辑程序。 我的环境是Windows 10 64位32gbs ram Intel i7和32位Python 3.4。 我跑的时候

while(true) { /* Put whole logic inside this loop */

        /* Think of a condition to break this loop */

        do {
            System.out.print("Please make a deposit: ");
            deposit = sc.nextInt();
            if ((deposit > bank))
                System.out.println("Insufficient funds, please enter a valid amount");
        }// end of do
        while (deposit > bank);
        System.out.println("You have successfully made a deposit of " + cf.format(deposit));
        bank = bank - deposit;
        System.out.println("Your new bank balance is " + cf.format(bank));

    do { /* Add a do-while to check if deposit is exhausted or not */
        do {
            System.out.print("Enter your bet: ");
            bet = sc.nextInt();
            if ((bet > deposit))
                System.out.println("Insufficient funds please enter a valid amount or add more funds" + "\nYour current allowance is: " + cf.format(deposit));
            if ((bet > max) || (bet <= 0))
                System.out.println("Maximum bet is " + cf.format(max) + " you entered " + cf.format(bet) + "\nPlease enter a valid amount");
        }// end of do
        while ((bet <= 0) || (bet > max || bet > deposit));
        System.out.print("Thank you for your bet of " + cf.format(bet) + " Your money is good here!\n");
        deposit = deposit - bet;
        System.out.println("You have " + cf.format(deposit) + " left to spend");
    } while(deposit > 0);

}

使用此setup.py

python setup.py py2exe

它编译了这个警告

from distutils.core import setup
import py2exe
import scipy.linalg.cython_blas

opts = {"py2exe": {
"includes": ['scipy',
'scipy.linalg.cython_blas','scipy.linalg.cython_lapack','scipy.sparse.csgraph._validation','scipy.linalg']}}
setup(options=opts,console=['glitchArray.py'])

当我运行编译的exe并留在dist中时,我得到了这个:

Error: Namespace packages not yet supported: Skipping package 'mpl_toolkits'

  43 missing Modules
  ------------------

这个程序在解释器中运行得很好,但可执行文件除了抛出英特尔致命错误外都没有。

遵循此示例py2exe: MKL FATAL ERROR: Cannot load mkl_intel_thread.dll也没有帮助。

0 个答案:

没有答案