- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
希望你能帮我这个忙!
我正在使用pyinstaller从python构建一个独立的应用程序。
当我从anaconda提示符下运行时,该应用程序运行良好。但是,当我双击运行它时,
它在行崩溃:fig = plt.Figure(figsize=(canvas_width/100, canvas_height/100),dpi=100)
我通过在此行之前和之后打印测试来弄清楚这一点。
这是我导入的软件包:
import sys
import platform
import os
import os.path
from os.path import dirname
from tkinter import *
from tkinter import filedialog
from PIL import Image, ImageTk
import seaborn as sns
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
from matplotlib import *
from pylab import *
from pdf2image import convert_from_path
from shapely.geometry import Point, LineString, Polygon
from matplotlib.backends.backend_tkagg import FigureCanvasTkAgg
from matplotlib.figure import Figure
这是我在anaconda提示符中运行pyinstaller时得到的结果(如您所见,我正在尝试将matplotlib和tkinter包含在hiddenimports中,但没有任何变化):
(base) C:\Users\Jerome\Documents\Roberto Perso\Codage\VIBRALAM V5>pyinstaller --onedir --hidden-import=tkinter --hidden-import=matplotlib GUI_PROGR4_support.py
48 INFO: PyInstaller: 4.0.dev0
48 INFO: Python: 3.7.6 (conda)
48 INFO: Platform: Windows-10-10.0.18362-SP0
49 INFO: wrote C:\Users\Jerome\Documents\Roberto Perso\Codage\PROGR V5\GUI_PROGRV4_support.spec
51 INFO: UPX is not available.
52 INFO: Extending PYTHONPATH with paths
['C:\\Users\\Jerome\\Documents\\Roberto Perso\\Codage\\PROGR V5',
'C:\\Users\\Jerome\\Documents\\Roberto Perso\\Codage\\PROGR V5']
68 INFO: checking Analysis
144 INFO: Building because hiddenimports changed
145 INFO: Initializing module dependency graph...
148 INFO: Caching module graph hooks...
159 INFO: Analyzing base_library.zip ...
2813 INFO: Caching module dependency graph...
2900 INFO: running Analysis Analysis-00.toc
2914 INFO: Adding Microsoft.Windows.Common-Controls to dependent assemblies of final executable
required by c:\users\jerome\anaconda3\python.exe
3142 INFO: Analyzing C:\Users\Jerome\Documents\Roberto Perso\Codage\VIBRALAM V5\GUI_PROGRV4_support.py
3986 INFO: Processing pre-find module path hook distutils from 'c:\\users\\jerome\\anaconda3\\lib\\site-packages\\PyInstaller\\hooks\\pre_find_module_path\\hook-distutils.py'.
3987 INFO: distutils: retargeting to non-venv dir 'c:\\users\\jerome\\anaconda3\\lib'
5179 INFO: Processing pre-find module path hook site from 'c:\\users\\jerome\\anaconda3\\lib\\site-packages\\PyInstaller\\hooks\\pre_find_module_path\\hook-site.py'.
5180 INFO: site: retargeting to fake-dir 'c:\\users\\jerome\\anaconda3\\lib\\site-packages\\PyInstaller\\fake-modules'
6854 INFO: Processing pre-safe import module hook setuptools.extern.six.moves from 'c:\\users\\jerome\\anaconda3\\lib\\site-packages\\PyInstaller\\hooks\\pre_safe_import_module\\hook-setuptools.extern.six.moves.py'.
11166 INFO: Processing pre-safe import module hook six.moves from 'c:\\users\\jerome\\anaconda3\\lib\\site-packages\\PyInstaller\\hooks\\pre_safe_import_module\\hook-six.moves.py'.
17063 INFO: Processing pre-safe import module hook urllib3.packages.six.moves from 'c:\\users\\jerome\\anaconda3\\lib\\site-packages\\PyInstaller\\hooks\\pre_safe_import_module\\hook-urllib3.packages.six.moves.py'.
36092 INFO: Processing module hooks...
36093 INFO: Loading module hook 'hook-certifi.py' from 'c:\\users\\jerome\\anaconda3\\lib\\site-packages\\_pyinstaller_hooks_contrib\\hooks\\stdhooks'...
36098 INFO: Loading module hook 'hook-cryptography.py' from 'c:\\users\\jerome\\anaconda3\\lib\\site-packages\\_pyinstaller_hooks_contrib\\hooks\\stdhooks'...
36298 INFO: Loading module hook 'hook-IPython.py' from 'c:\\users\\jerome\\anaconda3\\lib\\site-packages\\_pyinstaller_hooks_contrib\\hooks\\stdhooks'...
36712 INFO: Excluding import 'gtk'
36717 INFO: Excluding import 'tkinter'
36721 INFO: Removing import of tkinter from module IPython.lib.clipboard
36722 INFO: Excluding import 'PyQt4'
36727 INFO: Removing import of PyQt4 from module IPython.external.qt_loaders
36728 INFO: Excluding import 'PySide'
36732 INFO: Removing import of PySide from module IPython.external.qt_loaders
36733 INFO: Excluding import 'PyQt5'
36739 INFO: Removing import of PyQt5.QtCore from module IPython.external.qt_loaders
36739 INFO: Removing import of PyQt5.QtGui from module IPython.external.qt_loaders
36739 INFO: Removing import of PyQt5 from module IPython.external.qt_loaders
36740 INFO: Removing import of PyQt5.QtSvg from module IPython.external.qt_loaders
36741 INFO: Removing import of PyQt5.QtWidgets from module IPython.external.qt_loaders
36742 INFO: Excluding import 'matplotlib'
36748 INFO: Removing import of matplotlib.backend_bases from module IPython.core.pylabtools
36748 INFO: Removing import of matplotlib.figure from module IPython.core.pylabtools
36748 INFO: Removing import of matplotlib._pylab_helpers from module IPython.core.pylabtools
36749 INFO: Removing import of matplotlib from module IPython.core.pylabtools
36749 INFO: Removing import of matplotlib.pyplot from module IPython.core.pylabtools
36751 INFO: Loading module hook 'hook-jedi.py' from 'c:\\users\\jerome\\anaconda3\\lib\\site-packages\\_pyinstaller_hooks_contrib\\hooks\\stdhooks'...
37856 INFO: Loading module hook 'hook-jinja2.py' from 'c:\\users\\jerome\\anaconda3\\lib\\site-packages\\_pyinstaller_hooks_contrib\\hooks\\stdhooks'...
37871 INFO: Loading module hook 'hook-jsonschema.py' from 'c:\\users\\jerome\\anaconda3\\lib\\site-packages\\_pyinstaller_hooks_contrib\\hooks\\stdhooks'...
37890 INFO: Loading module hook 'hook-nbconvert.py' from 'c:\\users\\jerome\\anaconda3\\lib\\site-packages\\_pyinstaller_hooks_contrib\\hooks\\stdhooks'...
38004 INFO: Loading module hook 'hook-nbformat.py' from 'c:\\users\\jerome\\anaconda3\\lib\\site-packages\\_pyinstaller_hooks_contrib\\hooks\\stdhooks'...
38054 INFO: Loading module hook 'hook-notebook.py' from 'c:\\users\\jerome\\anaconda3\\lib\\site-packages\\_pyinstaller_hooks_contrib\\hooks\\stdhooks'...
40204 INFO: Loading module hook 'hook-pycparser.py' from 'c:\\users\\jerome\\anaconda3\\lib\\site-packages\\_pyinstaller_hooks_contrib\\hooks\\stdhooks'...
40205 INFO: Loading module hook 'hook-shapely.py' from 'c:\\users\\jerome\\anaconda3\\lib\\site-packages\\_pyinstaller_hooks_contrib\\hooks\\stdhooks'...
40209 INFO: Loading module hook 'hook-zmq.py' from 'c:\\users\\jerome\\anaconda3\\lib\\site-packages\\_pyinstaller_hooks_contrib\\hooks\\stdhooks'...
40763 INFO: Loading module hook 'hook-distutils.py' from 'c:\\users\\jerome\\anaconda3\\lib\\site-packages\\PyInstaller\\hooks'...
40765 INFO: Loading module hook 'hook-encodings.py' from 'c:\\users\\jerome\\anaconda3\\lib\\site-packages\\PyInstaller\\hooks'...
40832 INFO: Loading module hook 'hook-importlib_metadata.py' from 'c:\\users\\jerome\\anaconda3\\lib\\site-packages\\PyInstaller\\hooks'...
40834 INFO: Loading module hook 'hook-lib2to3.py' from 'c:\\users\\jerome\\anaconda3\\lib\\site-packages\\PyInstaller\\hooks'...
40868 INFO: Loading module hook 'hook-matplotlib.backends.py' from 'c:\\users\\jerome\\anaconda3\\lib\\site-packages\\PyInstaller\\hooks'...
41348 INFO: Matplotlib backend "GTK": ignored
Gtk* backend requires pygtk to be installed.
41707 INFO: Matplotlib backend "GTKAgg": ignored
Gtk* backend requires pygtk to be installed.
41950 INFO: Matplotlib backend "GTKCairo": ignored
No module named 'gtk'
42310 INFO: Matplotlib backend "GTK3Agg": ignored
The Gtk3 backend requires PyGObject or pgi
42549 INFO: Matplotlib backend "GTK3Cairo": ignored
cairo backend requires that cairocffi or pycairo is installed
42921 INFO: Matplotlib backend "MacOSX": ignored
cannot import name '_macosx' from 'matplotlib.backends' (c:\users\jerome\anaconda3\lib\site-packages\matplotlib\backends\__init__.py)
43758 INFO: Matplotlib backend "nbAgg": added
44244 INFO: Matplotlib backend "Qt4Agg": added
44494 INFO: Matplotlib backend "Qt4Cairo": ignored
cairo backend requires that cairocffi or pycairo is installed
44933 INFO: Matplotlib backend "Qt5Agg": added
45329 INFO: Matplotlib backend "Qt5Cairo": ignored
cairo backend requires that cairocffi or pycairo is installed
45737 INFO: Matplotlib backend "TkAgg": added
46055 INFO: Matplotlib backend "TkCairo": ignored
cairo backend requires that cairocffi or pycairo is installed
46580 INFO: Matplotlib backend "WebAgg": added
46959 INFO: Matplotlib backend "WX": ignored
Matplotlib backend_wx and backend_wxagg require wxPython>=2.9
47217 INFO: Matplotlib backend "WXAgg": ignored
No module named 'wx'
47501 INFO: Matplotlib backend "WXCairo": ignored
No module named 'wx'
47894 INFO: Matplotlib backend "agg": added
48316 INFO: Matplotlib backend "cairo": ignored
cairo backend requires that cairocffi or pycairo is installed
48620 INFO: Matplotlib backend "gdk": ignored
No module named 'gobject'
49196 INFO: Matplotlib backend "pdf": added
49846 INFO: Matplotlib backend "pgf": added
50277 INFO: Matplotlib backend "ps": added
50686 INFO: Matplotlib backend "svg": added
51087 INFO: Matplotlib backend "template": added
51298 INFO: Loading module hook 'hook-matplotlib.py' from 'c:\\users\\jerome\\anaconda3\\lib\\site-packages\\PyInstaller\\hooks'...
51557 INFO: Loading module hook 'hook-numpy.core.py' from 'c:\\users\\jerome\\anaconda3\\lib\\site-packages\\PyInstaller\\hooks'...
51648 INFO: MKL libraries found when importing numpy. Adding MKL to binaries
51653 INFO: Loading module hook 'hook-numpy.py' from 'c:\\users\\jerome\\anaconda3\\lib\\site-packages\\PyInstaller\\hooks'...
51656 INFO: Loading module hook 'hook-pandas.py' from 'c:\\users\\jerome\\anaconda3\\lib\\site-packages\\PyInstaller\\hooks'...
52512 INFO: Loading module hook 'hook-PIL.Image.py' from 'c:\\users\\jerome\\anaconda3\\lib\\site-packages\\PyInstaller\\hooks'...
52972 INFO: Loading module hook 'hook-PIL.py' from 'c:\\users\\jerome\\anaconda3\\lib\\site-packages\\PyInstaller\\hooks'...
52978 INFO: Excluding import 'tkinter'
52988 INFO: Removing import of tkinter from module PIL.ImageTk
52990 INFO: Import to be excluded not found: 'FixTk'
52994 INFO: Excluding import 'PyQt4'
53000 INFO: Excluding import 'PySide'
53006 INFO: Excluding import 'PyQt5'
53009 INFO: Removing import of PyQt5.QtGui from module PIL.ImageQt
53010 INFO: Removing import of PyQt5.QtCore from module PIL.ImageQt
53010 INFO: Loading module hook 'hook-PIL.SpiderImagePlugin.py' from 'c:\\users\\jerome\\anaconda3\\lib\\site-packages\\PyInstaller\\hooks'...
53016 INFO: Import to be excluded not found: 'FixTk'
53017 INFO: Excluding import 'tkinter'
53023 INFO: Loading module hook 'hook-pkg_resources.py' from 'c:\\users\\jerome\\anaconda3\\lib\\site-packages\\PyInstaller\\hooks'...
53457 INFO: Processing pre-safe import module hook win32com from 'c:\\users\\jerome\\anaconda3\\lib\\site-packages\\_pyinstaller_hooks_contrib\\hooks\\pre_safe_import_module\\hook-win32com.py'.
53764 WARNING: Hidden import "pkg_resources.py2_warn" not found!
53767 INFO: Excluding import '__main__'
53772 INFO: Removing import of __main__ from module pkg_resources
53772 INFO: Loading module hook 'hook-pygments.py' from 'c:\\users\\jerome\\anaconda3\\lib\\site-packages\\PyInstaller\\hooks'...
55849 INFO: Loading module hook 'hook-PyQt5.py' from 'c:\\users\\jerome\\anaconda3\\lib\\site-packages\\PyInstaller\\hooks'...
62204 INFO: Loading module hook 'hook-PyQt5.QtCore.py' from 'c:\\users\\jerome\\anaconda3\\lib\\site-packages\\PyInstaller\\hooks'...
62263 INFO: Loading module hook 'hook-PyQt5.QtGui.py' from 'c:\\users\\jerome\\anaconda3\\lib\\site-packages\\PyInstaller\\hooks'...
62377 INFO: Loading module hook 'hook-PyQt5.QtSvg.py' from 'c:\\users\\jerome\\anaconda3\\lib\\site-packages\\PyInstaller\\hooks'...
62765 INFO: Loading module hook 'hook-PyQt5.QtWidgets.py' from 'c:\\users\\jerome\\anaconda3\\lib\\site-packages\\PyInstaller\\hooks'...
63027 INFO: Loading module hook 'hook-pytz.py' from 'c:\\users\\jerome\\anaconda3\\lib\\site-packages\\PyInstaller\\hooks'...
63197 INFO: Loading module hook 'hook-scipy.linalg.py' from 'c:\\users\\jerome\\anaconda3\\lib\\site-packages\\PyInstaller\\hooks'...
63198 INFO: Loading module hook 'hook-scipy.py' from 'c:\\users\\jerome\\anaconda3\\lib\\site-packages\\PyInstaller\\hooks'...
63202 INFO: Loading module hook 'hook-scipy.sparse.csgraph.py' from 'c:\\users\\jerome\\anaconda3\\lib\\site-packages\\PyInstaller\\hooks'...
63205 INFO: Loading module hook 'hook-scipy.special._ellip_harm_2.py' from 'c:\\users\\jerome\\anaconda3\\lib\\site-packages\\PyInstaller\\hooks'...
63206 INFO: Loading module hook 'hook-scipy.special._ufuncs.py' from 'c:\\users\\jerome\\anaconda3\\lib\\site-packages\\PyInstaller\\hooks'...
63207 INFO: Loading module hook 'hook-scipy.stats._stats.py' from 'c:\\users\\jerome\\anaconda3\\lib\\site-packages\\PyInstaller\\hooks'...
63209 INFO: Loading module hook 'hook-setuptools.py' from 'c:\\users\\jerome\\anaconda3\\lib\\site-packages\\PyInstaller\\hooks'...
c:\users\jerome\anaconda3\lib\site-packages\setuptools\distutils_patch.py:26: UserWarning: Distutils was imported before Setuptools. This usage is discouraged and may exhibit undesirable behaviors or errors. Please use Setuptools' objects directly or at least import Setuptools first.
"Distutils was imported before Setuptools. This usage is discouraged "
63782 INFO: Loading module hook 'hook-sqlite3.py' from 'c:\\users\\jerome\\anaconda3\\lib\\site-packages\\PyInstaller\\hooks'...
63851 INFO: Loading module hook 'hook-sysconfig.py' from 'c:\\users\\jerome\\anaconda3\\lib\\site-packages\\PyInstaller\\hooks'...
63852 INFO: Loading module hook 'hook-wcwidth.py' from 'c:\\users\\jerome\\anaconda3\\lib\\site-packages\\PyInstaller\\hooks'...
63859 INFO: Loading module hook 'hook-xml.dom.domreg.py' from 'c:\\users\\jerome\\anaconda3\\lib\\site-packages\\PyInstaller\\hooks'...
63859 INFO: Loading module hook 'hook-xml.etree.cElementTree.py' from 'c:\\users\\jerome\\anaconda3\\lib\\site-packages\\PyInstaller\\hooks'...
63860 INFO: Loading module hook 'hook-xml.py' from 'c:\\users\\jerome\\anaconda3\\lib\\site-packages\\PyInstaller\\hooks'...
63861 INFO: Loading module hook 'hook-_tkinter.py' from 'c:\\users\\jerome\\anaconda3\\lib\\site-packages\\PyInstaller\\hooks'...
64000 INFO: checking Tree
64037 INFO: checking Tree
64049 INFO: Loading module hook 'hook-pythoncom.py' from 'c:\\users\\jerome\\anaconda3\\lib\\site-packages\\_pyinstaller_hooks_contrib\\hooks\\stdhooks'...
64380 INFO: Loading module hook 'hook-pywintypes.py' from 'c:\\users\\jerome\\anaconda3\\lib\\site-packages\\_pyinstaller_hooks_contrib\\hooks\\stdhooks'...
64699 INFO: Loading module hook 'hook-win32com.py' from 'c:\\users\\jerome\\anaconda3\\lib\\site-packages\\_pyinstaller_hooks_contrib\\hooks\\stdhooks'...
65310 INFO: Looking for ctypes DLLs
65511 INFO: Analyzing run-time hooks ...
65530 INFO: Including run-time hook 'c:\\users\\jerome\\anaconda3\\lib\\site-packages\\PyInstaller\\hooks\\rthooks\\pyi_rth_multiprocessing.py'
65538 INFO: Including run-time hook 'c:\\users\\jerome\\anaconda3\\lib\\site-packages\\PyInstaller\\hooks\\rthooks\\pyi_rth_pkgres.py'
65542 INFO: Including run-time hook 'c:\\users\\jerome\\anaconda3\\lib\\site-packages\\PyInstaller\\hooks\\rthooks\\pyi_rth_win32comgenpy.py'
65545 INFO: Including run-time hook 'c:\\users\\jerome\\anaconda3\\lib\\site-packages\\PyInstaller\\hooks\\rthooks\\pyi_rth_pyqt5.py'
65548 INFO: Including run-time hook 'c:\\users\\jerome\\anaconda3\\lib\\site-packages\\_pyinstaller_hooks_contrib\\hooks\\rthooks\\pyi_rth_traitlets.py'
65549 INFO: Including run-time hook 'c:\\users\\jerome\\anaconda3\\lib\\site-packages\\_pyinstaller_hooks_contrib\\hooks\\rthooks\\pyi_rth_certifi.py'
65553 INFO: Including run-time hook 'c:\\users\\jerome\\anaconda3\\lib\\site-packages\\PyInstaller\\hooks\\rthooks\\pyi_rth_mplconfig.py'
65555 INFO: Including run-time hook 'c:\\users\\jerome\\anaconda3\\lib\\site-packages\\PyInstaller\\hooks\\rthooks\\pyi_rth_mpldata.py'
65557 INFO: Including run-time hook 'c:\\users\\jerome\\anaconda3\\lib\\site-packages\\PyInstaller\\hooks\\rthooks\\pyi_rth__tkinter.py'
65597 INFO: Looking for dynamic libraries
65844 WARNING: lib not found: mpich2mpi.dll dependency of c:\users\jerome\anaconda3\Library\bin\mkl_blacs_mpich2_ilp64.dll
66787 WARNING: lib not found: msmpi.dll dependency of c:\users\jerome\anaconda3\Library\bin\mkl_blacs_msmpi_lp64.dll
67101 WARNING: lib not found: impi.dll dependency of c:\users\jerome\anaconda3\Library\bin\mkl_blacs_intelmpi_ilp64.dll
67249 WARNING: lib not found: msmpi.dll dependency of c:\users\jerome\anaconda3\Library\bin\mkl_blacs_msmpi_ilp64.dll
67531 WARNING: lib not found: mpich2mpi.dll dependency of c:\users\jerome\anaconda3\Library\bin\mkl_blacs_mpich2_lp64.dll
67730 WARNING: lib not found: pgf90.dll dependency of c:\users\jerome\anaconda3\Library\bin\mkl_pgi_thread.dll
67732 WARNING: lib not found: pgf90rtl.dll dependency of c:\users\jerome\anaconda3\Library\bin\mkl_pgi_thread.dll
67734 WARNING: lib not found: pgc14.dll dependency of c:\users\jerome\anaconda3\Library\bin\mkl_pgi_thread.dll
67741 WARNING: lib not found: impi.dll dependency of c:\users\jerome\anaconda3\Library\bin\mkl_blacs_intelmpi_lp64.dll
69355 INFO: Looking for eggs
69355 INFO: Using Python library c:\users\jerome\anaconda3\python37.dll
69356 INFO: Found binding redirects:
[]
69378 INFO: Warnings written to C:\Users\Jerome\Documents\Roberto Perso\Codage\PROGR V5\build\GUI_PROGRV4_support\warn-GUI_PROGRV4_support.txt
69716 INFO: Graph cross-reference written to C:\Users\Jerome\Documents\Roberto Perso\Codage\PROGR V5\build\GUI_PROGRV4_support\xref-GUI_PROGRV4_support.html
69919 INFO: checking PYZ
69939 INFO: Building because toc changed
69940 INFO: Building PYZ (ZlibArchive) C:\Users\Jerome\Documents\Roberto Perso\Codage\PROGR V5\build\GUI_PROGRV4_support\PYZ-00.pyz
73732 INFO: Building PYZ (ZlibArchive) C:\Users\Jerome\Documents\Roberto Perso\Codage\PROGR V5\build\GUI_PROGRV4_support\PYZ-00.pyz completed successfully.
73800 INFO: checking PKG
73801 INFO: Building because C:\Users\Jerome\Documents\Roberto Perso\Codage\PROGR V5\build\GUI_PROGRV4_support\PYZ-00.pyz changed
73804 INFO: Building PKG (CArchive) PKG-00.pkg
73836 INFO: Building PKG (CArchive) PKG-00.pkg completed successfully.
73837 INFO: Bootloader c:\users\jerome\anaconda3\lib\site-packages\PyInstaller\bootloader\Windows-64bit\run.exe
73837 INFO: checking EXE
73841 INFO: Rebuilding EXE-00.toc because pkg is more recent
73841 INFO: Building EXE from EXE-00.toc
73843 INFO: Appending archive to EXE C:\Users\Jerome\Documents\Roberto Perso\Codage\PROGR V5\build\GUI_PROGRV4_support\GUI_PROGRV4_support.exe
73856 INFO: Building EXE from EXE-00.toc completed successfully.
73866 INFO: checking COLLECT
237791 INFO: Building COLLECT COLLECT-00.toc
248399 INFO: Building COLLECT COLLECT-00.toc completed successfully.
如果有帮助,我可以在PAGE软件上构建GUI。
最佳答案
我正在使用pyinstaller 3.6和matplotlib 3.2.2,并在构建exe时收到类似的错误消息。就我而言,该应用程序在我的计算机上运行没有问题,但是当分发给其他人时,当他们尝试创建绘图时它崩溃了。我用单行创建了一个测试文件。
import matplotlib.pyplot as plt
C:\Users\joltman\AppData\Local\Continuum\miniconda3\envs\spce_4\lib\site-packages\setuptools\distutils_patch.py:26: UserWarning: Distutils was imported before Setuptools. This usage is discouraged and may exhibit undesirable behaviors or errors. Pleaseuse Setuptools' objects directly or at least import Setuptools first."Distutils was imported before Setuptools. This usage is discouraged "
171972 INFO: Looking for dynamic libraries172132 WARNING: lib not found: impi.dll dependency of C:\Users\joltman\AppData\Local\Continuum\miniconda3\envs\spce_4\Library\bin\mkl_blacs_intelmpi_lp64.dll172245 WARNING: lib not found: pgc14.dll dependency of C:\Users\joltman\AppData\Local\Continuum\miniconda3\envs\spce_4\Library\bin\mkl_pgi_thread.dll172249 WARNING: lib not found: pgf90.dll dependency of C:\Users\joltman\AppData\Local\Continuum\miniconda3\envs\spce_4\Library\bin\mkl_pgi_thread.dll172255 WARNING: lib not found: pgf90rtl.dll dependency of C:\Users\joltman\AppData\Local\Continuum\miniconda3\envs\spce_4\Library\bin\mkl_pgi_thread.dll172853 WARNING: lib not found: impi.dll dependency of C:\Users\joltman\AppData\Local\Continuum\miniconda3\envs\spce_4\Library\bin\mkl_blacs_intelmpi_ilp64.dll173190 WARNING: lib not found: msmpi.dll dependency of C:\Users\joltman\AppData\Local\Continuum\miniconda3\envs\spce_4\Library\bin\mkl_blacs_msmpi_lp64.dll173445 WARNING: lib not found: mpich2mpi.dll dependency of C:\Users\joltman\AppData\Local\Continuum\miniconda3\envs\spce_4\Library\bin\mkl_blacs_mpich2_ilp64.dll173747 WARNING: lib not found: msmpi.dll dependency of C:\Users\joltman\AppData\Local\Continuum\miniconda3\envs\spce_4\Library\bin\mkl_blacs_msmpi_ilp64.dll173935 WARNING: lib not found: mpich2mpi.dll dependency of C:\Users\joltman\AppData\Local\Continuum\miniconda3\envs\spce_4\Library\bin\mkl_blacs_mpich2_lp64.dll
关于python - 为什么我的pyinstaller python程序在双击而不是在cmd运行时崩溃,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/63018829/
我正在处理一组标记为 160 个组的 173k 点。我想通过合并最接近的(到 9 或 10 个组)来减少组/集群的数量。我搜索过 sklearn 或类似的库,但没有成功。 我猜它只是通过 knn 聚类
我有一个扁平数字列表,这些数字逻辑上以 3 为一组,其中每个三元组是 (number, __ignored, flag[0 or 1]),例如: [7,56,1, 8,0,0, 2,0,0, 6,1,
我正在使用 pipenv 来管理我的包。我想编写一个 python 脚本来调用另一个使用不同虚拟环境(VE)的 python 脚本。 如何运行使用 VE1 的 python 脚本 1 并调用另一个 p
假设我有一个文件 script.py 位于 path = "foo/bar/script.py"。我正在寻找一种在 Python 中通过函数 execute_script() 从我的主要 Python
这听起来像是谜语或笑话,但实际上我还没有找到这个问题的答案。 问题到底是什么? 我想运行 2 个脚本。在第一个脚本中,我调用另一个脚本,但我希望它们继续并行,而不是在两个单独的线程中。主要是我不希望第
我有一个带有 python 2.5.5 的软件。我想发送一个命令,该命令将在 python 2.7.5 中启动一个脚本,然后继续执行该脚本。 我试过用 #!python2.7.5 和http://re
我在 python 命令行(使用 python 2.7)中,并尝试运行 Python 脚本。我的操作系统是 Windows 7。我已将我的目录设置为包含我所有脚本的文件夹,使用: os.chdir("
剧透:部分解决(见最后)。 以下是使用 Python 嵌入的代码示例: #include int main(int argc, char** argv) { Py_SetPythonHome
假设我有以下列表,对应于及时的股票价格: prices = [1, 3, 7, 10, 9, 8, 5, 3, 6, 8, 12, 9, 6, 10, 13, 8, 4, 11] 我想确定以下总体上最
所以我试图在选择某个单选按钮时更改此框架的背景。 我的框架位于一个类中,并且单选按钮的功能位于该类之外。 (这样我就可以在所有其他框架上调用它们。) 问题是每当我选择单选按钮时都会出现以下错误: co
我正在尝试将字符串与 python 中的正则表达式进行比较,如下所示, #!/usr/bin/env python3 import re str1 = "Expecting property name
考虑以下原型(prototype) Boost.Python 模块,该模块从单独的 C++ 头文件中引入类“D”。 /* file: a/b.cpp */ BOOST_PYTHON_MODULE(c)
如何编写一个程序来“识别函数调用的行号?” python 检查模块提供了定位行号的选项,但是, def di(): return inspect.currentframe().f_back.f_l
我已经使用 macports 安装了 Python 2.7,并且由于我的 $PATH 变量,这就是我输入 $ python 时得到的变量。然而,virtualenv 默认使用 Python 2.6,除
我只想问如何加快 python 上的 re.search 速度。 我有一个很长的字符串行,长度为 176861(即带有一些符号的字母数字字符),我使用此函数测试了该行以进行研究: def getExe
list1= [u'%app%%General%%Council%', u'%people%', u'%people%%Regional%%Council%%Mandate%', u'%ppp%%Ge
这个问题在这里已经有了答案: Is it Pythonic to use list comprehensions for just side effects? (7 个答案) 关闭 4 个月前。 告
我想用 Python 将两个列表组合成一个列表,方法如下: a = [1,1,1,2,2,2,3,3,3,3] b= ["Sun", "is", "bright", "June","and" ,"Ju
我正在运行带有最新 Boost 发行版 (1.55.0) 的 Mac OS X 10.8.4 (Darwin 12.4.0)。我正在按照说明 here构建包含在我的发行版中的教程 Boost-Pyth
学习 Python,我正在尝试制作一个没有任何第 3 方库的网络抓取工具,这样过程对我来说并没有简化,而且我知道我在做什么。我浏览了一些在线资源,但所有这些都让我对某些事情感到困惑。 html 看起来
我是一名优秀的程序员,十分优秀!