ymhld 发表于 2020-3-21 15:16

运行没有问题,打包成exe,总是提示出错

本帖最后由 ymhld 于 2020-3-21 17:22 编辑

import pandas as pd               #导入panads
import random                                                #产生随机数用
import pyperclip                                        #粘贴板用

number=int(input('个数 '))
num_mean=float(input('均值 '))
num_std=float(input('均方差 '))
num_min=float(input('最小值 '))
num_max=float(input('最大值 '))
#
# number=5
# num_mean=5.2
# num_std=2.3
# num_min=2.1
# num_max=10.2
if num_mean>num_max or num_mean<num_min:
      input('无法计算,退出')
      exit(0)
# df = pandas.DataFrame(numpy.random.randint(0,100,size=(10, 4)), columns=list('ABCD')) # 0,100指定随机数为0到100之间(包括0,不包括100),size = (10,4)指定数据为10行4列,column指定列名
df = pd.DataFrame(, columns=list('A'))
max_std=df['A'].std(ddof=1)
if num_std>=max_std:
      input('标准差输入错误,无法计算,退出')
      exit(0)
flag=True
count=1
while flag:
      df = pd.DataFrame(, columns=list('A'))
      #print(df)
      #print(df['A'].mean(),df['A'].max(),df['A'].min(),df['A'].std)
      dfmax,dfmin=df['A'].max(),df['A'].min()
      if df['A'].mean()>num_mean:
                df_place=dfmax-(df['A'].mean()-num_mean)*number
                if df_place>num_min:
                        df.replace(dfmax,df_place,inplace=True)
                else:
                        continue
      else:
                df_place=dfmin+(num_mean-df['A'].mean())*number
                if df_place<num_max:
                        df.replace(dfmin,df_place,inplace=True)
                else:
                        continue
      count+=1
      if count%1000==0:
                print('已经尝试 %s 次'%count,flush=True)
      # print('处理前',df)
      # print('处理前指标',df.describe())
      # print(df['A'].std(ddof=1),type(df['A'].std(ddof=1)))#默认是除以n-1 的,即是无偏的,有偏,需要加上参数ddof=0
      if abs(df['A'].std(ddof=1)-num_std)<0.001:#or count>20000:
                flag=False
print('要求输出:%d 个   最小值: %.4f    最大值: %.4f   均值: %.4f    均方差: %.4f'%(number,num_min,num_max,num_mean,num_std))
print('处理后',df)
print('处理后指标',df.describe())
alists=df['A'].tolist()
print(alists)
pyperclip.copy(",".join(str(i) for i in alists))input('运行结束,已将数据复制至粘贴板,按回车后退出......')

生成了exe,但总是提示:重新安了numpy
还是出错




这是在build下的txt文件内容:





This file lists modules PyInstaller was not able to find. This does not
necessarily mean this module is required for running you program. Python and
Python 3rd-party packages include a lot of conditional or optional modules. For
example the module 'ntpath' only exists on Windows, whereas the module
'posixpath' only exists on Posix systems.


Types if import:
* top-level: imported at the top-level - look at these first
* conditional: imported within an if-statement
* delayed: imported from within a function
* optional: imported within a try-except-statement


IMPORTANT: Do NOT post this list to the issue-tracker. Use it as a basis for
         yourself tracking down the missing module. Thanks!


missing module named _posixsubprocess - imported by subprocess (optional), multiprocessing.util (delayed)
missing module named 'org.python' - imported by copy (optional), setuptools.sandbox (conditional), xml.sax (delayed, conditional)
missing module named _frozen_importlib_external - imported by importlib._bootstrap (delayed), importlib (optional), importlib.abc (optional), zipimport (top-level)
excluded module named _frozen_importlib - imported by importlib (optional), importlib.abc (optional), zipimport (top-level), PyInstaller.loader.pyimod02_archive (delayed, conditional)
missing module named urllib.quote - imported by urllib (delayed), py._path.svnwc (delayed)
missing module named urllib.FancyURLopener - imported by urllib (conditional, optional), pygments.lexers._sourcemod_builtins (conditional, optional)
missing module named urllib.urlretrieve - imported by urllib (conditional, optional), pygments.lexers._php_builtins (conditional, optional)
missing module named urllib.urlopen - imported by urllib (delayed, optional), lxml.html (delayed, optional), pygments.lexers._lua_builtins (conditional, optional), pygments.lexers._postgres_builtins (conditional, optional)
missing module named urllib.urlencode - imported by urllib (delayed, conditional, optional), IPython.lib.display (delayed, conditional, optional), lxml.html (delayed, optional)
missing module named urllib.pathname2url - imported by urllib (conditional), PyInstaller.lib.modulegraph._compat (conditional)
missing module named grp - imported by shutil (optional), tarfile (optional), pathlib (delayed), distutils.archive_util (optional), py._path.local (delayed)
missing module named pwd - imported by posixpath (delayed, conditional), shutil (optional), tarfile (optional), pathlib (delayed, conditional, optional), http.server (delayed, optional), webbrowser (delayed), distutils.util (delayed, conditional, optional), distutils.archive_util (optional), netrc (delayed, conditional), getpass (delayed), py._path.local (delayed)
missing module named posix - imported by os (conditional, optional), shutil (conditional)
missing module named resource - imported by posix (top-level), IPython.utils.timing (optional)
missing module named System - imported by traitlets.traitlets (delayed, conditional), IPython.utils._process_cli (top-level)
missing module named __builtin__ - imported by numpy.core.numerictypes (conditional), numpy.core.numeric (conditional), numpy.lib.function_base (conditional), numpy.lib._iotools (conditional), numpy.ma.core (conditional), scipy._lib.six (conditional), numpy.distutils.misc_util (delayed, conditional), numpy (conditional), pyparsing (conditional), ipython_genutils.py3compat (conditional), jedi._compatibility (optional), pkg_resources._vendor.pyparsing (conditional), py._builtin (conditional), setuptools._vendor.pyparsing (conditional)
missing module named vms_lib - imported by platform (delayed, conditional, optional)
missing module named 'java.lang' - imported by platform (delayed, optional), xml.sax._exceptions (conditional)
missing module named java - imported by platform (delayed)
missing module named _scproxy - imported by urllib.request (conditional)
missing module named termios - imported by tty (top-level), getpass (optional), prompt_toolkit.output.vt100 (delayed), prompt_toolkit.input.vt100 (top-level), IPython.core.page (delayed, optional), py._io.terminalwriter (delayed, conditional)
missing module named _posixshmem - imported by multiprocessing.shared_memory (conditional), multiprocessing.resource_tracker (conditional)
missing module named multiprocessing.set_start_method - imported by multiprocessing (top-level), multiprocessing.spawn (top-level)
missing module named multiprocessing.get_start_method - imported by multiprocessing (top-level), multiprocessing.spawn (top-level)
missing module named multiprocessing.get_context - imported by multiprocessing (top-level), multiprocessing.pool (top-level), multiprocessing.managers (top-level), multiprocessing.sharedctypes (top-level)
missing module named multiprocessing.TimeoutError - imported by multiprocessing (top-level), multiprocessing.pool (top-level)
missing module named multiprocessing.BufferTooShort - imported by multiprocessing (top-level), multiprocessing.connection (top-level)
missing module named multiprocessing.AuthenticationError - imported by multiprocessing (top-level), multiprocessing.connection (top-level)
missing module named multiprocessing.Pool - imported by multiprocessing (top-level), scipy._lib._util (top-level)
missing module named asyncio.DefaultEventLoopPolicy - imported by asyncio (delayed, conditional), asyncio.events (delayed, conditional)
missing module named readline - imported by cmd (delayed, conditional, optional), code (delayed, conditional, optional), pdb (delayed, optional), pstats (conditional, optional), _pytest.capture (delayed, conditional, optional)
missing module named org - imported by pickle (optional)
missing module named _winreg - imported by platform (delayed, optional), numpy.distutils.cpuinfo (delayed, conditional, optional), jedi.api.environment (delayed, optional), pkg_resources._vendor.appdirs (delayed, conditional), pygments.formatters.img (optional)
missing module named StringIO - imported by setuptools._vendor.six (conditional), PyInstaller.lib.modulegraph._compat (conditional), PyInstaller.lib.modulegraph.zipio (conditional), numpy.testing._private.utils (conditional), numpy.lib.utils (delayed, conditional), numpy.lib.format (delayed, conditional), scipy._lib.six (conditional), six (conditional), xlsxwriter.compatibility (optional), simplejson.compat (conditional, optional), pkg_resources._vendor.six (conditional), py._io.capture (optional)
missing module named pyimod03_importers - imported by PyInstaller.loader.pyimod02_archive (delayed, conditional), C:\Users\Administrator\AppData\Local\Programs\Python\Python38\Lib\site-packages\PyInstaller\loader\rthooks\pyi_rth_pkgres.py (top-level)
missing module named _uuid - imported by uuid (optional)
missing module named ordereddict - imported by pyparsing (optional), pkg_resources._vendor.pyparsing (optional), setuptools._vendor.pyparsing (optional)
missing module named 'com.sun' - imported by pkg_resources._vendor.appdirs (delayed, conditional, optional)
missing module named com - imported by pkg_resources._vendor.appdirs (delayed)
missing module named 'pkg_resources.extern.pyparsing' - imported by pkg_resources._vendor.packaging.markers (top-level), pkg_resources._vendor.packaging.requirements (top-level)
missing module named pkg_resources.extern.packaging - imported by pkg_resources.extern (top-level), pkg_resources (top-level)
missing module named pkg_resources.extern.appdirs - imported by pkg_resources.extern (top-level), pkg_resources (top-level)
missing module named 'pkg_resources.extern.six.moves' - imported by pkg_resources (top-level), pkg_resources._vendor.packaging.requirements (top-level)
missing module named pkg_resources.extern.six - imported by pkg_resources.extern (top-level), pkg_resources (top-level), pkg_resources.py31compat (top-level)
missing module named 'multiprocessing.forking' - imported by C:\Users\Administrator\AppData\Local\Programs\Python\Python38\Lib\site-packages\PyInstaller\loader\rthooks\pyi_rth_multiprocessing.py (optional)
missing module named PyQt4 - imported by pandas.io.clipboard.clipboards (delayed, optional), pandas.io.clipboard (delayed, conditional, optional), pyperclip (delayed, conditional, optional)
missing module named PyQt5 - imported by pandas.io.clipboard (delayed, conditional, optional), pyperclip (delayed, conditional, optional)
missing module named qtpy - imported by pandas.io.clipboard.clipboards (delayed, optional), pandas.io.clipboard (delayed, conditional, optional), pyperclip (delayed, conditional, optional)
missing module named AppKit - imported by pyperclip (delayed, conditional, optional)
missing module named Foundation - imported by pyperclip (delayed, conditional, optional)
missing module named 'PyQt4.QtGui' - imported by pyperclip (delayed, optional)
missing module named 'PyQt5.QtWidgets' - imported by pandas.io.clipboard.clipboards (delayed, optional), pyperclip (delayed, optional)
missing module named 'qtpy.QtWidgets' - imported by pyperclip (delayed, optional)
missing module named gtk - imported by pyperclip (delayed, conditional, optional)
missing module named psutil - imported by numpy.testing._private.utils (delayed, optional), scipy._lib._testutils (delayed, optional)
missing module named twisted - imported by _pytest.unittest (delayed)
missing module named zope - imported by _pytest.unittest (delayed)
missing module named py.process - imported by py (top-level), py._path.svnurl (top-level)
missing module named py.path - imported by py (top-level), py._path.svnurl (top-level)
missing module named apipkg - imported by py (optional)
missing module named UserDict - imported by attr._compat (conditional), pytz.lazy (optional), simplejson.ordered_dict (top-level)
missing module named importlib_metadata - imported by pluggy.manager (conditional), _pytest.compat (conditional)
missing module named pexpect - imported by IPython.utils._process_posix (top-level), _pytest.pytester (conditional)
missing module named pathlib2 - imported by _pytest.pathlib (conditional), pickleshare (optional)
missing module named fcntl - imported by atomicwrites (optional), prompt_toolkit.output.vt100 (delayed), py._io.terminalwriter (delayed, conditional)
missing module named typing_extensions - imported by _pytest._code.code (conditional), _pytest._code.source (conditional), prompt_toolkit.formatted_text.base (conditional), prompt_toolkit.layout.containers (conditional)
missing module named argcomplete - imported by _pytest._argcomplete (conditional, optional)
missing module named syslog - imported by py._log.log (delayed, optional)
missing module named 'py.builtin' - imported by py._io.terminalwriter (top-level)
missing module named compiler - imported by py._code._assertionold (top-level)
missing module named numpy.lib.i0 - imported by numpy.lib (top-level), numpy.dual (top-level)
missing module named commands - imported by numpy.distutils.cpuinfo (conditional)
missing module named setuptools.extern.packaging - imported by setuptools.extern (top-level), setuptools.dist (top-level), setuptools.command.egg_info (top-level)
missing module named 'setuptools.extern.six' - imported by setuptools (top-level), setuptools.extension (top-level)
missing module named 'setuptools.extern.packaging.version' - imported by setuptools.config (top-level), setuptools.msvc (top-level)
missing module named setuptools.extern.six.moves.filterfalse - imported by setuptools.extern.six.moves (top-level), setuptools.dist (top-level), setuptools.msvc (top-level)
missing module named setuptools.extern.six.moves.filter - imported by setuptools.extern.six.moves (top-level), setuptools.dist (top-level), setuptools.ssl_support (top-level), setuptools.command.py36compat (top-level)
missing module named _manylinux - imported by setuptools.pep425tags (delayed, optional)
missing module named 'setuptools.extern.packaging.utils' - imported by setuptools.wheel (top-level)
missing module named wincertstore - imported by setuptools.ssl_support (delayed, optional)
missing module named 'backports.ssl_match_hostname' - imported by setuptools.ssl_support (optional)
missing module named 'setuptools._vendor.six.moves' - imported by 'setuptools._vendor.six.moves' (top-level)
missing module named 'setuptools.extern.pyparsing' - imported by setuptools._vendor.packaging.requirements (top-level), setuptools._vendor.packaging.markers (top-level)
missing module named setuptools.extern.six.moves.map - imported by setuptools.extern.six.moves (top-level), setuptools.dist (top-level), setuptools.command.easy_install (top-level), setuptools.sandbox (top-level), setuptools.package_index (top-level), setuptools.ssl_support (top-level), setuptools.command.egg_info (top-level), setuptools.namespaces (top-level)
runtime module named setuptools.extern.six.moves - imported by setuptools.dist (top-level), setuptools.py33compat (top-level), configparser (top-level), setuptools.command.easy_install (top-level), setuptools.sandbox (top-level), setuptools.command.setopt (top-level), setuptools.package_index (top-level), setuptools.ssl_support (top-level), setuptools.command.egg_info (top-level), setuptools.command.py36compat (top-level), setuptools.namespaces (top-level), setuptools.msvc (top-level), 'setuptools._vendor.six.moves' (top-level)
missing module named setuptools.extern.six - imported by setuptools.extern (top-level), setuptools.monkey (top-level), setuptools.dist (top-level), setuptools.extern.six.moves (top-level), setuptools.py33compat (top-level), setuptools.config (top-level), setuptools.command.easy_install (top-level), setuptools.sandbox (top-level), setuptools.py27compat (top-level), setuptools.package_index (top-level), setuptools.wheel (top-level), setuptools.pep425tags (top-level), setuptools.command.egg_info (top-level), setuptools.command.sdist (top-level), setuptools.command.bdist_egg (top-level), setuptools.unicode_utils (top-level), setuptools.command.develop (top-level)
missing module named 'numpy_distutils.cpuinfo' - imported by numpy.f2py.diagnose (delayed, conditional, optional)
missing module named 'numpy_distutils.fcompiler' - imported by numpy.f2py.diagnose (delayed, conditional, optional)
missing module named 'numpy_distutils.command' - imported by numpy.f2py.diagnose (delayed, conditional, optional)
missing module named numpy_distutils - imported by numpy.f2py.diagnose (delayed, optional)
missing module named numpy.testing.knownfailureif - imported by numpy.testing (optional), IPython.external.decorators (optional)
missing module named numpy.testing.KnownFailure - imported by numpy.testing (optional), IPython.external.decorators (optional)
missing module named 'nose.plugins' - imported by numpy.testing._private.noseclasses (top-level), numpy.testing._private.nosetester (delayed), IPython.testing.iptest (top-level), IPython.testing.plugin.ipdoctest (top-level), IPython.external.decorators._numpy_testing_noseclasses (top-level)
missing module named numpy.core.number - imported by numpy.core (delayed), numpy.testing._private.utils (delayed)
missing module named numpy.core.integer - imported by numpy.core (top-level), numpy.fft.helper (top-level)
missing module named numpy.core.conjugate - imported by numpy.core (top-level), numpy.fft._pocketfft (top-level)
missing module named numpy.core.sign - imported by numpy.core (top-level), numpy.linalg.linalg (top-level)
missing module named numpy.core.divide - imported by numpy.core (top-level), numpy.linalg.linalg (top-level)
missing module named numpy.core.object_ - imported by numpy.core (top-level), numpy.linalg.linalg (top-level), numpy.testing._private.utils (delayed)
missing module named numpy.core.geterrobj - imported by numpy.core (top-level), numpy.linalg.linalg (top-level)
missing module named numpy.core.sqrt - imported by numpy.core (top-level), numpy.linalg.linalg (top-level), numpy.fft._pocketfft (top-level), scipy.sparse.linalg._norm (top-level)
missing module named numpy.core.add - imported by numpy.core (top-level), numpy.linalg.linalg (top-level)
missing module named numpy.core.complexfloating - imported by numpy.core (top-level), numpy.linalg.linalg (top-level)
missing module named numpy.core.inexact - imported by numpy.core (top-level), numpy.linalg.linalg (top-level)
missing module named numpy.core.cdouble - imported by numpy.core (top-level), numpy.linalg.linalg (top-level)
missing module named numpy.core.csingle - imported by numpy.core (top-level), numpy.linalg.linalg (top-level)
missing module named numpy.core.double - imported by numpy.core (top-level), numpy.linalg.linalg (top-level)
missing module named numpy.core.single - imported by numpy.core (top-level), numpy.linalg.linalg (top-level)
missing module named numpy.core.signbit - imported by numpy.core (delayed), numpy.testing._private.utils (delayed)
missing module named numpy.core.float32 - imported by numpy.core (top-level), numpy.testing._private.utils (top-level)
missing module named numpy.core.intp - imported by numpy.core (top-level), numpy.testing._private.utils (top-level), numpy.linalg.linalg (top-level)
missing module named copy_reg - imported by numpy.core (conditional), cPickle (top-level), cStringIO (top-level), soupsieve.util (conditional)
missing module named dummy_thread - imported by numpy.core.arrayprint (conditional, optional), cffi.lock (conditional, optional)
missing module named thread - imported by numpy.core.arrayprint (conditional, optional), cffi.lock (conditional, optional), cffi.cparser (conditional, optional), PyInstaller.loader.pyimod02_archive (conditional)
missing module named 'nose.util' - imported by numpy.testing._private.noseclasses (top-level), IPython.testing.iptest (top-level), IPython.testing.plugin.ipdoctest (top-level)
missing module named nose - imported by numpy.testing._private.utils (delayed, optional), numpy.testing._private.decorators (delayed), numpy.testing._private.noseclasses (top-level), IPython.testing.iptest (top-level), IPython.external.decorators._decorators (delayed), IPython.testing.decorators (delayed)
missing module named __svn_version__ - imported by numpy.f2py.__version__ (optional)
missing module named numarray - imported by numpy.distutils.system_info (delayed, conditional, optional)
missing module named Numeric - imported by numpy.distutils.system_info (delayed, conditional, optional)
missing module named ConfigParser - imported by numpy.distutils.system_info (conditional), numpy.distutils.npy_pkg_config (conditional)
missing module named _curses - imported by curses (top-level), curses.has_key (top-level)
missing module named _dummy_threading - imported by dummy_threading (optional)
missing module named cpickle - imported by numpy.compat.py3k (conditional)
missing module named pickle5 - imported by numpy.compat.py3k (conditional, optional)
missing module named numpy.array - imported by numpy (top-level), numpy.ma.core (top-level), numpy.ma.extras (top-level), numpy.ma.mrecords (top-level), numpy.ctypeslib (top-level), scipy.interpolate.interpolate (top-level), scipy._lib._numpy_compat (conditional), scipy.linalg.decomp (top-level), scipy.linalg.decomp_schur (top-level), scipy.sparse.linalg.isolve.utils (top-level), scipy.interpolate._fitpack_impl (top-level), scipy.interpolate.fitpack2 (top-level), scipy.stats.stats (top-level), scipy.optimize.lbfgsb (top-level), scipy.optimize.tnc (top-level), scipy.optimize.slsqp (top-level), scipy.optimize.minpack (top-level), scipy.integrate._ode (top-level), scipy.misc.common (top-level), scipy.stats.morestats (top-level), scipy.signal.bsplines (top-level), scipy.signal.filter_design (top-level), scipy.signal.lti_conversion (top-level)
missing module named numpy.recarray - imported by numpy (top-level), numpy.ma.mrecords (top-level)
missing module named numpy.ndarray - imported by numpy (top-level), numpy.ma.core (top-level), numpy.ma.extras (top-level), numpy.ma.mrecords (top-level), numpy.ctypeslib (top-level), pandas.compat.numpy.function (top-level), IPython.core.magics.namespace (delayed, conditional, optional), scipy.stats._distn_infrastructure (top-level), scipy.stats.mstats_basic (top-level), scipy.stats.mstats_extras (top-level)
missing module named numpy.dtype - imported by numpy (top-level), numpy.ma.mrecords (top-level), numpy.ctypeslib (top-level), scipy.optimize.minpack (top-level)
missing module named numpy.bool_ - imported by numpy (top-level), numpy.ma.core (top-level), numpy.ma.mrecords (top-level)
missing module named numpy.expand_dims - imported by numpy (top-level), numpy.ma.core (top-level)
missing module named numpy.iscomplexobj - imported by numpy (top-level), numpy.ma.core (top-level), scipy.linalg.decomp (top-level), scipy.linalg._decomp_ldl (top-level)
missing module named numpy.amin - imported by numpy (top-level), numpy.ma.core (top-level), scipy.stats.morestats (top-level)
missing module named numpy.amax - imported by numpy (top-level), numpy.ma.core (top-level), scipy.linalg.matfuncs (top-level), scipy.stats.morestats (top-level)
missing module named future_builtins - imported by numpy.lib.npyio (conditional)
missing module named urllib2 - imported by numpy.lib._datasource (delayed, conditional)
missing module named urlparse - imported by numpy.lib._datasource (delayed, conditional), lxml.html (optional)
missing module named numpy.histogramdd - imported by numpy (delayed), numpy.lib.twodim_base (delayed)
missing module named scipy.sparse.coo_matrix - imported by scipy.sparse (delayed), scipy.sparse.data (delayed), pandas.core.arrays.sparse (delayed), scipy.optimize._numdiff (top-level), scipy.integrate._bvp (top-level), scipy.integrate._ivp.common (top-level)
missing module named scipy.special.comb - imported by scipy.special (delayed), scipy.linalg.special_matrices (delayed), scipy.interpolate.interpolate (top-level), scipy.stats._distn_infrastructure (top-level), scipy.signal.bsplines (top-level), scipy.signal.filter_design (top-level), scipy.signal.wavelets (top-level)
missing module named scipy.special.betaln - imported by scipy.special (top-level), scipy.stats._discrete_distns (top-level)
missing module named scipy.special.beta - imported by scipy.special (top-level), scipy.stats._tukeylambda_stats (top-level)
missing module named scipy.special.ive - imported by scipy.special (top-level), scipy.stats._distn_infrastructure (top-level)
missing module named scipy.special.entr - imported by scipy.special (top-level), scipy.stats._distn_infrastructure (top-level), scipy.stats._discrete_distns (top-level), scipy.stats._multivariate (top-level)
missing module named scipy.special.chndtr - imported by scipy.special (top-level), scipy.stats._distn_infrastructure (top-level)
missing module named scipy.special.rel_entr - imported by scipy.special (top-level), scipy.spatial.distance (top-level), scipy.stats._distn_infrastructure (top-level)
missing module named scipy.special.xlogy - imported by scipy.special (top-level), scipy.interpolate.rbf (top-level), scipy.stats._distn_infrastructure (top-level), scipy.stats._multivariate (top-level)
missing module named nbformat - imported by IPython.core.magics.basic (delayed), IPython.core.interactiveshell (delayed, conditional)
missing module named numpydoc - imported by jedi.inference.docstrings (delayed)
missing module named Queue - imported by jedi._compatibility (conditional), jedi.inference.compiled.subprocess (optional)
missing module named cPickle - imported by pycparser.ply.yacc (delayed, optional), pickleshare (optional), parso.cache (optional), jedi._compatibility (optional)
missing module named cStringIO - imported by cPickle (top-level), cffi.ffiplatform (optional), xlrd.timemachine (conditional), simplejson.compat (conditional, optional)
missing module named pydoc_topics - imported by jedi.api.keywords (optional)
missing module named trio - imported by IPython.core.async_helpers (delayed)
missing module named curio - imported by IPython.core.async_helpers (delayed)
missing module named docrepr - imported by IPython.core.interactiveshell (optional)
missing module named clr - imported by IPython.utils._process_cli (top-level)
missing module named nbconvert - imported by IPython.utils.io (delayed)
missing module named notebook - imported by IPython.utils.io (delayed)
missing module named traitlets.config.Application - imported by traitlets.config (delayed, conditional), traitlets.log (delayed, conditional)
missing module named pygments.lexers.PythonLexer - imported by pygments.lexers (top-level), IPython.core.oinspect (top-level)
missing module named PIL._imagingagg - imported by PIL (delayed, conditional, optional), PIL.ImageDraw (delayed, conditional, optional)
missing module named olefile - imported by PIL.FpxImagePlugin (top-level), PIL.MicImagePlugin (top-level)
missing module named 'PySide2.QtCore' - imported by PIL.ImageQt (conditional, optional)
missing module named PySide2 - imported by PIL.ImageQt (conditional, optional)
missing module named 'PyQt5.QtCore' - imported by PIL.ImageQt (conditional, optional)
missing module named cffi._pycparser - imported by cffi (optional), cffi.cparser (optional)
missing module named PIL.PILLOW_VERSION - imported by PIL (optional), matplotlib.backend_bases (optional)
missing module named ctags - imported by pygments.formatters.html (optional)
missing module named pygments.formatters.LatexFormatter - imported by pygments.formatters (delayed), IPython.lib.display (delayed)
missing module named pygments.formatters.HtmlFormatter - imported by pygments.formatters (delayed), IPython.lib.display (delayed), IPython.core.oinspect (top-level)
missing module named IPython.utils.warn - imported by IPython.utils (delayed), IPython.testing.tools (delayed)
missing module named 'coverage.html' - imported by IPython.testing.iptestcontroller (delayed, conditional)
missing module named coverage - imported by IPython.testing.iptestcontroller (delayed, conditional)
missing module named testpath - imported by IPython.testing.plugin.ipdoctest (top-level)
missing module named 'nose.core' - imported by IPython.testing.iptest (top-level)
missing module named 'nose.tools' - imported by IPython.testing.tools (delayed, optional), IPython.testing.decorators (delayed)
missing module named 'prompt_toolkit.key_binding.key_bindings.vi' - imported by prompt_toolkit.key_binding.vi_state (conditional)
missing module named prompt_toolkit.filters.is_done - imported by prompt_toolkit.filters (top-level), prompt_toolkit.layout.menus (top-level), prompt_toolkit.widgets.base (top-level), prompt_toolkit.shortcuts.progress_bar.base (top-level), prompt_toolkit.shortcuts.prompt (top-level)
missing module named prompt_toolkit.filters.has_completions - imported by prompt_toolkit.filters (top-level), prompt_toolkit.layout.menus (top-level), prompt_toolkit.widgets.toolbars (top-level), prompt_toolkit.widgets.dialogs (top-level), IPython.terminal.shortcuts (top-level)
missing module named prompt_toolkit.filters.vi_mode - imported by prompt_toolkit.filters (top-level), prompt_toolkit.document (top-level), prompt_toolkit.key_binding.bindings.page_navigation (top-level), prompt_toolkit.widgets.toolbars (top-level), IPython.terminal.shortcuts (top-level)
missing module named prompt_toolkit.filters.is_searching - imported by prompt_toolkit.filters (top-level), prompt_toolkit.search (top-level), prompt_toolkit.key_binding.bindings.search (top-level), prompt_toolkit.key_binding.bindings.vi (top-level)
missing module named prompt_toolkit.filters.vi_insert_mode - imported by prompt_toolkit.filters (top-level), prompt_toolkit.layout.containers (top-level), prompt_toolkit.key_binding.bindings.basic (top-level), IPython.terminal.shortcuts (top-level), IPython.terminal.debugger (top-level)
missing module named prompt_toolkit.filters.emacs_insert_mode - imported by prompt_toolkit.filters (top-level), prompt_toolkit.layout.containers (top-level), prompt_toolkit.key_binding.bindings.basic (top-level), prompt_toolkit.key_binding.bindings.emacs (top-level), IPython.terminal.shortcuts (top-level), IPython.terminal.debugger (top-level)
missing module named black - imported by IPython.terminal.interactiveshell (delayed)
missing module named prompt_toolkit.filters.vi_insert_multiple_mode - imported by prompt_toolkit.filters (top-level), prompt_toolkit.layout.processors (top-level)
missing module named pysqlite2 - imported by IPython.core.history (optional)
missing module named repr - imported by IPython.core.debugger (delayed, optional)
missing module named 'ipykernel.pylab' - imported by IPython.core.pylabtools (delayed, conditional), IPython.core.display (delayed)
missing module named ipykernel - imported by IPython.core.pylabtools (delayed, optional), IPython.kernel (top-level)
missing module named 'IPython.kernel.zmq' - imported by IPython (delayed)
missing module named 'ipykernel.embed' - imported by IPython (delayed)
runtime module named six.moves - imported by cycler (top-level), dateutil.tz.tz (top-level), dateutil.tz._factories (top-level), dateutil.tz.win (top-level), dateutil.rrule (top-level)
missing module named six.moves.range - imported by six.moves (top-level), dateutil.rrule (top-level)
missing module named six.moves.zip - imported by six.moves (top-level), cycler (top-level)
missing module named dateutil.tz.tzfile - imported by dateutil.tz (top-level), dateutil.zoneinfo (top-level)
missing module named Carbon - imported by wx.lib.colourutils (conditional, optional)
missing module named 'tornado.template' - imported by matplotlib.backends.backend_webagg (delayed)
missing module named 'tornado.websocket' - imported by matplotlib.backends.backend_webagg (top-level)
missing module named 'tornado.ioloop' - imported by matplotlib.backends.backend_webagg (top-level)
missing module named 'tornado.web' - imported by matplotlib.backends.backend_webagg (top-level)
missing module named tornado - imported by matplotlib.backends.backend_webagg (optional), matplotlib.backends.backend_webagg_core (top-level)
missing module named matplotlib.axes.Axes - imported by matplotlib.axes (delayed), matplotlib.legend (delayed), matplotlib.projections.geo (top-level), matplotlib.projections.polar (top-level), matplotlib.figure (top-level), matplotlib.pyplot (top-level)
missing module named matplotlib.tri.Triangulation - imported by matplotlib.tri (top-level), matplotlib.tri.trifinder (top-level), matplotlib.tri.tritools (top-level), matplotlib.tri.triinterpolate (top-level)
missing module named numpy.random.randn - imported by numpy.random (top-level), scipy (top-level), pandas.util.testing (top-level)
missing module named numpy.random.rand - imported by numpy.random (top-level), scipy (top-level), pandas.util.testing (top-level)
missing module named scipy.spatial.cKDTree - imported by scipy.spatial (top-level), scipy.spatial._spherical_voronoi (top-level), scipy.interpolate.ndgriddata (top-level), scipy.signal.signaltools (top-level)
missing module named 'scikits.umfpack' - imported by scipy.optimize._linprog_ip (optional)
missing module named 'sksparse.cholmod' - imported by scipy.optimize._linprog_ip (optional)
missing module named numpy.double - imported by numpy (top-level), scipy.optimize.nnls (top-level)
missing module named numpy.float64 - imported by numpy (top-level), scipy.optimize.lbfgsb (top-level)
missing module named numpy.inexact - imported by numpy (top-level), scipy.special._basic (top-level), scipy.linalg.decomp (top-level), scipy.optimize.minpack (top-level)
missing module named numpy.greater - imported by numpy (top-level), scipy.optimize.minpack (top-level)
missing module named sksparse - imported by scipy.optimize._trustregion_constr.projections (optional)
missing module named sparse - imported by scipy.sparse.linalg._expm_multiply (delayed, conditional), scipy.sparse.linalg.matfuncs (delayed, conditional)
missing module named scikits - imported by scipy.sparse.linalg.dsolve.linsolve (optional)
missing module named scipy.special.gammaln - imported by scipy.special (top-level), scipy.special.spfun_stats (top-level), scipy.optimize._dual_annealing (top-level), scipy.integrate.quadrature (top-level), scipy.stats._discrete_distns (top-level), scipy.stats._multivariate (top-level)
missing module named numpy.arccos - imported by numpy (top-level), scipy.special.orthogonal (top-level), scipy.linalg.decomp_svd (top-level)
missing module named scipy.special.airy - imported by scipy.special (top-level), scipy.special.orthogonal (top-level)
missing module named numpy.single - imported by numpy (top-level), scipy.linalg.decomp_schur (top-level), scipy.linalg.matfuncs (top-level)
missing module named numpy.sign - imported by numpy (top-level), scipy.linalg.matfuncs (top-level)
missing module named numpy.conjugate - imported by numpy (top-level), scipy.linalg.matfuncs (top-level), scipy.signal.filter_design (top-level)
missing module named numpy.logical_not - imported by numpy (top-level), scipy.linalg.matfuncs (top-level)
missing module named scipy.linalg.qr_insert - imported by scipy.linalg (top-level), scipy.sparse.linalg.isolve._gcrotmk (top-level)
missing module named numpy.conj - imported by numpy (top-level), scipy.linalg.decomp (top-level)
missing module named numpy.arcsin - imported by numpy (top-level), scipy.linalg.decomp_svd (top-level)
missing module named scipy.linalg._clapack - imported by scipy.linalg (optional), scipy.linalg.lapack (optional)
missing module named scipy.linalg._cblas - imported by scipy.linalg (optional), scipy.linalg.blas (optional)
missing module named numpy.eye - imported by numpy (delayed), numpy.core.numeric (delayed), scipy.linalg.decomp (top-level), scipy.interpolate._pade (top-level), scipy.optimize.optimize (top-level), scipy.optimize.minpack (top-level), scipy.signal.lti_conversion (top-level)
missing module named new - imported by scipy.interpolate.rbf (delayed, conditional)
missing module named uarray - imported by scipy._lib.uarray (conditional, optional)
missing module named numexpr - imported by pandas.core.computation.expressions (conditional), pandas.core.computation.engines (delayed)
missing module named numpy.power - imported by numpy (top-level), scipy.stats.kde (top-level)
missing module named numpy.NINF - imported by numpy (top-level), scipy.stats._distn_infrastructure (top-level)
missing module named numpy.logical_and - imported by numpy (top-level), scipy.stats._distn_infrastructure (top-level), scipy.signal.bsplines (top-level)
missing module named numpy.hypot - imported by numpy (top-level), scipy.stats.morestats (top-level)
missing module named numpy.log - imported by numpy (top-level), scipy.stats._distn_infrastructure (top-level), scipy.stats._discrete_distns (top-level), scipy.stats.morestats (top-level), scipy.signal.waveforms (top-level)
missing module named scipy.stats.iqr - imported by scipy.stats (delayed), scipy.stats._hypotests (delayed)
missing module named numpy.sinh - imported by numpy (top-level), scipy.stats._discrete_distns (top-level), scipy.signal.filter_design (top-level)
missing module named numpy.cosh - imported by numpy (top-level), scipy.stats._discrete_distns (top-level), scipy.signal.filter_design (top-level)
missing module named numpy.tanh - imported by numpy (top-level), scipy.stats._discrete_distns (top-level)
missing module named numpy.expm1 - imported by numpy (top-level), scipy.stats._discrete_distns (top-level)
missing module named numpy.log1p - imported by numpy (top-level), scipy.stats._discrete_distns (top-level)
missing module named scipy.signal.dlti - imported by scipy.signal (top-level), scipy.signal.signaltools (top-level)
missing module named numpy.arccosh - imported by numpy (top-level), scipy.signal.filter_design (top-level)
missing module named numpy.arcsinh - imported by numpy (top-level), scipy.signal.filter_design (top-level)
missing module named numpy.arctan - imported by numpy (top-level), scipy.signal.filter_design (top-level)
missing module named numpy.tan - imported by numpy (top-level), scipy.signal.bsplines (top-level), scipy.signal.filter_design (top-level)
missing module named botocore - imported by pandas.io.s3 (delayed)
missing module named 'pyarrow.parquet' - imported by pandas.io.parquet (delayed)
missing module named pyarrow - imported by pandas.io.feather_format (delayed)
missing module named 'sqlalchemy.types' - imported by pandas.io.sql (delayed, conditional)
missing module named 'sqlalchemy.schema' - imported by pandas.io.sql (delayed, conditional)
missing module named sqlalchemy - imported by pandas.io.sql (delayed, conditional, optional)
missing module named tables - imported by pandas.io.pytables (delayed, conditional)
missing module named defusedxml - imported by openpyxl.xml (delayed, optional)
missing module named 'defusedxml.ElementTree' - imported by openpyxl.xml.functions (conditional)
missing module named 'openpyxl.style' - imported by pandas.io.excel._openpyxl (delayed)
missing module named tests - imported by openpyxl.reader.excel (optional)
missing module named elementtree - imported by xlrd.xlsx (delayed, conditional, optional)
missing module named cElementTree - imported by xlrd.xlsx (delayed, conditional, optional)
missing module named 'defusedxml.cElementTree' - imported by xlrd.xlsx (delayed, conditional, optional)
missing module named 'odf.namespaces' - imported by pandas.io.excel._odfreader (delayed)
missing module named 'odf.table' - imported by pandas.io.excel._odfreader (delayed)
missing module named 'odf.opendocument' - imported by pandas.io.excel._odfreader (delayed)
missing module named odf - imported by pandas.io.excel._odfreader (delayed)
missing module named s3fs - imported by pandas.io.common (delayed, optional)
missing module named sets - imported by pytz.tzinfo (optional)
missing module named hypothesis - imported by pandas.util._tester (delayed, optional)
missing module named 'backports.functools_lru_cache' - imported by soupsieve.util (conditional)
missing module named iconv_codec - imported by bs4.dammit (optional)
missing module named cchardet - imported by bs4.dammit (optional)
missing module named 'html5lib.treebuilders' - imported by bs4.builder._html5lib (optional)
missing module named 'html5lib.constants' - imported by bs4.builder._html5lib (top-level)
missing module named html5lib - imported by bs4.builder._html5lib (top-level)
missing module named _speedups - imported by simplejson.scanner (delayed, optional), simplejson.decoder (delayed, optional)
missing module named simplejson._speedups - imported by simplejson (delayed, optional), simplejson.encoder (delayed, optional)

plattl 发表于 2020-3-21 15:51

感谢分享,楼主辛苦。

ymhld 发表于 2020-3-21 15:57

plattl 发表于 2020-3-21 15:51
感谢分享,楼主辛苦。

打包总出问题,你们打包没问题?

mokson 发表于 2020-3-21 16:05

HighBox 发表于 2020-3-21 16:23

怎么生成exe文件的呀

ymhld 发表于 2020-3-21 16:27

HighBox 发表于 2020-3-21 16:23
怎么生成exe文件的呀

用pyinstaller -F 这个文件.py就可以,但我打包总出错

kjq970 发表于 2020-3-21 16:49

ymhld 发表于 2020-3-21 15:57
打包总出问题,你们打包没问题?

你用什么打包的?我用的pyinstaller,没什么问题,就是打包过后的exe有点大

ymhld 发表于 2020-3-21 16:49

kjq970 发表于 2020-3-21 16:49
你用什么打包的?我用的pyinstaller,没什么问题,就是打包过后的exe有点大

我也是pyinstaller打包的,打包完55M

namedlxd 发表于 2020-3-21 17:01

百度搜呀

ymhld 发表于 2020-3-21 17:02

namedlxd 发表于 2020-3-21 17:01
百度搜呀

搜半天了,解决不了
页: [1] 2 3 4
查看完整版本: 运行没有问题,打包成exe,总是提示出错