【问题标题】:Entought Canopy Python and PyinstallerEnthought Canopy Python 和 Pyinstaller
【发布时间】:2015-01-21 14:40:22
【问题描述】:

我是这里的新手,也是 Python 的新手。我正在为图形插值做一些编程,其中数据是从一些 .txt 文件中取出的。以下是一些导入的模块(以及一个小的开始部分):

import matplotlib.pyplot as plt
import numpy as np
import os
import itertools
from scipy.signal import argrelextrema 
from scipy import interpolate 


os.chdir("C:\Si_growth_calib")

is_valid = 0

while not is_valid: 
    try:
        file_x = str(raw_input("Enter your x_file name: "))
        file_y = str(raw_input("Enter your y_file name: "))

        x = np.loadtxt(file_x)
        y = np.loadtxt(file_y)
        is_valid = 1
    except ValueError:
        print("No such file, try again")

在 Python 中,程序可以完美运行。安装 Pyinstall(2.1.1dev - 普通的 2.1 根本不起作用)并在程序上运行它后,我得到一个 .exe 文件。之后我只能输入我想要导入的文件名,然后我得到一些快速的控制台退出,我什至无法识别那里的错误......我只能用截图选项捕获它们。他们在这里:

***mk2_mc3.dll *** failed with error 126: The specified module could not be found 
***mk2_def.dll *** failed with error 126: The specified module could not be found 
MKL FATAL ERROR: Cannot load neither mk2_mc3.dll nor mk2_def.dll 

【问题讨论】:

  • 你能发布一些你遇到的错误吗?
  • 我遇到的错误:***mk2_mc3.dll *** failed with error 126: The specified module could not be found ***mk2_def.dll *** failed with error 126:找不到指定的模块 MKL 致命错误:无法加载 mk2_mc3.dll 和 mk2_def.dll

标签: python numpy scipy pyinstaller canopy


【解决方案1】:

PyInstaller 和 canpoy 似乎有几个 bug 报告,如果你查看 enthought bugtracker 可以看到一些。我看到了这篇文章,也许这可能是你的问题,或者至少是相关的:pyinstaller error: cannot find scipy (No module named _ufuncs_cxx)

【讨论】:

    猜你喜欢
    • 2013-06-01
    • 2015-12-31
    • 2013-04-15
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多