编译的Python脚本不起作用

时间:2018-05-11 19:37:18

标签: python pyinstaller gdal fiona

我使用Python为同事设计了一个小工具,我尝试用PyInstaller编译它以进行分发。这是我运行可执行文件时发生的事情:

enter image description here

以下是我在编译时收到的消息:

C:\Tiancheng\Scripts\UT Extractor>C:\Python36-32\Scripts\pyinstaller.exe Controller.py
711 INFO: PyInstaller: 3.3.1
711 INFO: Python: 3.6.2
712 INFO: Platform: Windows-10-10.0.14393-SP0
719 INFO: wrote C:\Tiancheng\Scripts\UT Extractor\Controller.spec
720 INFO: UPX is not available.
726 INFO: Extending PYTHONPATH with paths
['C:\\Tiancheng\\Scripts\\UT Extractor', 'C:\\Tiancheng\\Scripts\\UT Extractor']
726 INFO: checking Analysis
726 INFO: Building Analysis because out00-Analysis.toc is non existent
726 INFO: Initializing module dependency graph...
730 INFO: Initializing module graph hooks...
738 INFO: Analyzing base_library.zip ...
7436 INFO: running Analysis out00-Analysis.toc
7447 INFO: Adding Microsoft.Windows.Common-Controls to dependent assemblies of final executable
  required by c:\python36-32\python.exe
7475 WARNING: lib not found: api-ms-win-crt-math-l1-1-0.dll dependency of c:\python36-32\python.exe
7496 WARNING: lib not found: api-ms-win-crt-runtime-l1-1-0.dll dependency of c:\python36-32\python.exe
7512 WARNING: lib not found: api-ms-win-crt-stdio-l1-1-0.dll dependency of c:\python36-32\python.exe
7527 WARNING: lib not found: api-ms-win-crt-heap-l1-1-0.dll dependency of c:\python36-32\python.exe
7543 WARNING: lib not found: api-ms-win-crt-locale-l1-1-0.dll dependency of c:\python36-32\python.exe
7747 WARNING: lib not found: api-ms-win-crt-convert-l1-1-0.dll dependency of c:\python36-32\python36.dll
7762 WARNING: lib not found: api-ms-win-crt-string-l1-1-0.dll dependency of c:\python36-32\python36.dll
7779 WARNING: lib not found: api-ms-win-crt-math-l1-1-0.dll dependency of c:\python36-32\python36.dll
7794 WARNING: lib not found: api-ms-win-crt-time-l1-1-0.dll dependency of c:\python36-32\python36.dll
7811 WARNING: lib not found: api-ms-win-crt-filesystem-l1-1-0.dll dependency of c:\python36-32\python36.dll
7831 WARNING: lib not found: api-ms-win-crt-process-l1-1-0.dll dependency of c:\python36-32\python36.dll
7850 WARNING: lib not found: api-ms-win-crt-runtime-l1-1-0.dll dependency of c:\python36-32\python36.dll
7866 WARNING: lib not found: api-ms-win-crt-conio-l1-1-0.dll dependency of c:\python36-32\python36.dll
7891 WARNING: lib not found: api-ms-win-crt-stdio-l1-1-0.dll dependency of c:\python36-32\python36.dll
7911 WARNING: lib not found: api-ms-win-crt-heap-l1-1-0.dll dependency of c:\python36-32\python36.dll
7927 WARNING: lib not found: api-ms-win-crt-environment-l1-1-0.dll dependency of c:\python36-32\python36.dll
7943 WARNING: lib not found: api-ms-win-crt-locale-l1-1-0.dll dependency of c:\python36-32\python36.dll
7967 WARNING: lib not found: api-ms-win-crt-convert-l1-1-0.dll dependency of c:\python36-32\VCRUNTIME140.dll
7983 WARNING: lib not found: api-ms-win-crt-string-l1-1-0.dll dependency of c:\python36-32\VCRUNTIME140.dll
8002 WARNING: lib not found: api-ms-win-crt-runtime-l1-1-0.dll dependency of c:\python36-32\VCRUNTIME140.dll
8018 WARNING: lib not found: api-ms-win-crt-stdio-l1-1-0.dll dependency of c:\python36-32\VCRUNTIME140.dll
8033 WARNING: lib not found: api-ms-win-crt-heap-l1-1-0.dll dependency of c:\python36-32\VCRUNTIME140.dll
8042 INFO: Caching module hooks...
8049 INFO: Analyzing C:\Tiancheng\Scripts\UT Extractor\Controller.py
11313 INFO: Processing pre-find module path hook   distutils
14389 INFO: Processing pre-find module path hook   site
14396 INFO: site: retargeting to fake-dir 'c:\\python36-32\\lib\\site-packages\\PyInstaller\\fake-modules'
19102 INFO: Processing pre-safe import module hook   six.moves
20074 INFO: Loading module hooks...
20074 INFO: Loading module hook "hook-distutils.py"...
20087 INFO: Loading module hook "hook-encodings.py"...
20213 INFO: Loading module hook "hook-lib2to3.py"...
20229 INFO: Loading module hook "hook-numpy.core.py"...
20350 INFO: Loading module hook "hook-osgeo.py"...
20382 INFO: Loading module hook "hook-pkg_resources.py"...
20964 INFO: Processing pre-safe import module hook   win32com
Traceback (most recent call last):
  File "<string>", line 2, in <module>
ModuleNotFoundError: No module named 'win32com'
21056 INFO: Processing pre-safe import module hook   win32com
Traceback (most recent call last):
  File "<string>", line 2, in <module>
ModuleNotFoundError: No module named 'win32com'
21520 INFO: Loading module hook "hook-psycopg2.py"...
21528 WARNING: Hidden import "mx.DateTime" not found!
21528 INFO: Loading module hook "hook-pydoc.py"...
21536 INFO: Loading module hook "hook-PyQt5.py"...
21546 INFO: Loading module hook "hook-PyQt5.Qt.py"...
21554 INFO: Loading module hook "hook-PyQt5.QtCore.py"...
21663 INFO: Loading module hook "hook-PyQt5.QtGui.py"...
22377 INFO: Loading module hook "hook-PyQt5.QtPrintSupport.py"...
22538 INFO: Loading module hook "hook-PyQt5.QtWidgets.py"...
22552 INFO: Loading module hook "hook-setuptools.py"...
22726 INFO: Loading module hook "hook-shapely.py"...
22836 INFO: Loading module hook "hook-sysconfig.py"...
22849 INFO: Loading module hook "hook-unidecode.py"...
24992 INFO: Loading module hook "hook-xml.py"...
25262 INFO: Looking for ctypes DLLs
25332 WARNING: library geos_c.dll required via ctypes not found
25373 INFO: Analyzing run-time hooks ...
25382 INFO: Including run-time hook 'pyi_rth_multiprocessing.py'
25395 INFO: Including run-time hook 'pyi_rth_pkgres.py'
25420 INFO: Including run-time hook 'pyi_rth_osgeo.py'
25428 INFO: Including run-time hook 'pyi_rth_qt5.py'
25456 INFO: Looking for dynamic libraries
25514 WARNING: lib not found: api-ms-win-crt-math-l1-1-0.dll dependency of C:\python36-32\lib\site-packages\PyQt5\Qt\plugins\imageformats\qjpeg.dll
25543 WARNING: lib not found: api-ms-win-crt-runtime-l1-1-0.dll dependency of C:\python36-32\lib\site-packages\PyQt5\Qt\plugins\imageformats\qjpeg.dll
25581 WARNING: lib not found: api-ms-win-crt-stdio-l1-1-0.dll dependency of C:\python36-32\lib\site-packages\PyQt5\Qt\plugins\imageformats\qjpeg.dll
25603 WARNING: lib not found: api-ms-win-crt-heap-l1-1-0.dll dependency of C:\python36-32\lib\site-packages\PyQt5\Qt\plugins\imageformats\qjpeg.dll
25626 WARNING: lib not found: api-ms-win-crt-environment-l1-1-0.dll dependency of C:\python36-32\lib\site-packages\PyQt5\Qt\plugins\imageformats\qjpeg.dll
25711 WARNING: lib not found: api-ms-win-crt-convert-l1-1-0.dll dependency of C:\python36-32\lib\site-packages\PyQt5\Qt\plugins\platforms\qminimal.dll
25733 WARNING: lib not found: api-ms-win-crt-string-l1-1-0.dll dependency of C:\python36-32\lib\site-packages\PyQt5\Qt\plugins\platforms\qminimal.dll
25759 WARNING: lib not found: api-ms-win-crt-math-l1-1-0.dll dependency of C:\python36-32\lib\site-packages\PyQt5\Qt\plugins\platforms\qminimal.dll
25781 WARNING: lib not found: api-ms-win-crt-utility-l1-1-0.dll dependency of C:\python36-32\lib\site-packages\PyQt5\Qt\plugins\platforms\qminimal.dll
25809 WARNING: lib not found: api-ms-win-crt-runtime-l1-1-0.dll dependency of C:\python36-32\lib\site-packages\PyQt5\Qt\plugins\platforms\qminimal.dll
25861 WARNING: lib not found: api-ms-win-crt-stdio-l1-1-0.dll dependency of C:\python36-32\lib\site-packages\PyQt5\Qt\plugins\platforms\qminimal.dll
25884 WARNING: lib not found: api-ms-win-crt-heap-l1-1-0.dll dependency of C:\python36-32\lib\site-packages\PyQt5\Qt\plugins\platforms\qminimal.dll
25926 WARNING: lib not found: api-ms-win-crt-math-l1-1-0.dll dependency of C:\python36-32\lib\site-packages\PyQt5\Qt\plugins\imageformats\qicns.dll
25956 WARNING: lib not found: api-ms-win-crt-runtime-l1-1-0.dll dependency of C:\python36-32\lib\site-packages\PyQt5\Qt\plugins\imageformats\qicns.dll
25980 WARNING: lib not found: api-ms-win-crt-heap-l1-1-0.dll dependency of C:\python36-32\lib\site-packages\PyQt5\Qt\plugins\imageformats\qicns.dll
26031 WARNING: lib not found: api-ms-win-crt-runtime-l1-1-0.dll dependency of C:\python36-32\lib\site-packages\PyQt5\Qt\plugins\imageformats\qsvg.dll
26061 WARNING: lib not found: api-ms-win-crt-heap-l1-1-0.dll dependency of C:\python36-32\lib\site-packages\PyQt5\Qt\plugins\imageformats\qsvg.dll
26134 WARNING: lib not found: api-ms-win-crt-math-l1-1-0.dll dependency of C:\python36-32\lib\site-packages\PyQt5\Qt\plugins\imageformats\qwebp.dll
26155 WARNING: lib not found: api-ms-win-crt-utility-l1-1-0.dll dependency of C:\python36-32\lib\site-packages\PyQt5\Qt\plugins\imageformats\qwebp.dll
26184 WARNING: lib not found: api-ms-win-crt-runtime-l1-1-0.dll dependency of C:\python36-32\lib\site-packages\PyQt5\Qt\plugins\imageformats\qwebp.dll
26211 WARNING: lib not found: api-ms-win-crt-heap-l1-1-0.dll dependency of C:\python36-32\lib\site-packages\PyQt5\Qt\plugins\imageformats\qwebp.dll
26271 WARNING: lib not found: api-ms-win-crt-string-l1-1-0.dll dependency of C:\python36-32\lib\site-packages\PyQt5\Qt\plugins\imageformats\qtga.dll
26300 WARNING: lib not found: api-ms-win-crt-runtime-l1-1-0.dll dependency of C:\python36-32\lib\site-packages\PyQt5\Qt\plugins\imageformats\qtga.dll
26325 WARNING: lib not found: api-ms-win-crt-heap-l1-1-0.dll dependency of C:\python36-32\lib\site-packages\PyQt5\Qt\plugins\imageformats\qtga.dll
26373 WARNING: lib not found: api-ms-win-crt-runtime-l1-1-0.dll dependency of C:\python36-32\lib\site-packages\PyQt5\Qt\plugins\imageformats\qico.dll
26397 WARNING: lib not found: api-ms-win-crt-heap-l1-1-0.dll dependency of C:\python36-32\lib\site-packages\PyQt5\Qt\plugins\imageformats\qico.dll
26461 WARNING: lib not found: api-ms-win-crt-convert-l1-1-0.dll dependency of C:\python36-32\lib\site-packages\PyQt5\Qt\plugins\platforms\qoffscreen.dll
26483 WARNING: lib not found: api-ms-win-crt-string-l1-1-0.dll dependency of C:\python36-32\lib\site-packages\PyQt5\Qt\plugins\platforms\qoffscreen.dll
26506 WARNING: lib not found: api-ms-win-crt-math-l1-1-0.dll dependency of C:\python36-32\lib\site-packages\PyQt5\Qt\plugins\platforms\qoffscreen.dll
26528 WARNING: lib not found: api-ms-win-crt-utility-l1-1-0.dll dependency of C:\python36-32\lib\site-packages\PyQt5\Qt\plugins\platforms\qoffscreen.dll
26559 WARNING: lib not found: api-ms-win-crt-runtime-l1-1-0.dll dependency of C:\python36-32\lib\site-packages\PyQt5\Qt\plugins\platforms\qoffscreen.dll
26585 WARNING: lib not found: api-ms-win-crt-stdio-l1-1-0.dll dependency of C:\python36-32\lib\site-packages\PyQt5\Qt\plugins\platforms\qoffscreen.dll
26606 WARNING: lib not found: api-ms-win-crt-heap-l1-1-0.dll dependency of C:\python36-32\lib\site-packages\PyQt5\Qt\plugins\platforms\qoffscreen.dll
26649 WARNING: lib not found: api-ms-win-crt-string-l1-1-0.dll dependency of C:\python36-32\lib\site-packages\PyQt5\Qt\plugins\imageformats\qgif.dll
26676 WARNING: lib not found: api-ms-win-crt-runtime-l1-1-0.dll dependency of C:\python36-32\lib\site-packages\PyQt5\Qt\plugins\imageformats\qgif.dll
26701 WARNING: lib not found: api-ms-win-crt-heap-l1-1-0.dll dependency of C:\python36-32\lib\site-packages\PyQt5\Qt\plugins\imageformats\qgif.dll
26766 WARNING: lib not found: api-ms-win-crt-runtime-l1-1-0.dll dependency of C:\python36-32\lib\site-packages\PyQt5\Qt\plugins\printsupport\windowsprintersupport.dll
26805 WARNING: lib not found: api-ms-win-crt-heap-l1-1-0.dll dependency of C:\python36-32\lib\site-packages\PyQt5\Qt\plugins\printsupport\windowsprintersupport.dll
26908 WARNING: lib not found: api-ms-win-crt-runtime-l1-1-0.dll dependency of C:\python36-32\lib\site-packages\PyQt5\Qt\plugins\iconengines\qsvgicon.dll
26934 WARNING: lib not found: api-ms-win-crt-heap-l1-1-0.dll dependency of C:\python36-32\lib\site-packages\PyQt5\Qt\plugins\iconengines\qsvgicon.dll
26997 WARNING: lib not found: api-ms-win-crt-convert-l1-1-0.dll dependency of c:\python36-32\lib\site-packages\shapely\DLLs\geos_c.dll
27019 WARNING: lib not found: api-ms-win-crt-math-l1-1-0.dll dependency of c:\python36-32\lib\site-packages\shapely\DLLs\geos_c.dll
27041 WARNING: lib not found: api-ms-win-crt-string-l1-1-0.dll dependency of c:\python36-32\lib\site-packages\shapely\DLLs\geos_c.dll
27066 WARNING: lib not found: api-ms-win-crt-runtime-l1-1-0.dll dependency of c:\python36-32\lib\site-packages\shapely\DLLs\geos_c.dll
27087 WARNING: lib not found: api-ms-win-crt-stdio-l1-1-0.dll dependency of c:\python36-32\lib\site-packages\shapely\DLLs\geos_c.dll
27108 WARNING: lib not found: api-ms-win-crt-heap-l1-1-0.dll dependency of c:\python36-32\lib\site-packages\shapely\DLLs\geos_c.dll
27129 WARNING: lib not found: api-ms-win-crt-locale-l1-1-0.dll dependency of c:\python36-32\lib\site-packages\shapely\DLLs\geos_c.dll
27220 WARNING: lib not found: api-ms-win-crt-convert-l1-1-0.dll dependency of c:\python36-32\lib\site-packages\shapely\DLLs\geos.dll
27242 WARNING: lib not found: api-ms-win-crt-math-l1-1-0.dll dependency of c:\python36-32\lib\site-packages\shapely\DLLs\geos.dll
27263 WARNING: lib not found: api-ms-win-crt-string-l1-1-0.dll dependency of c:\python36-32\lib\site-packages\shapely\DLLs\geos.dll
27289 WARNING: lib not found: api-ms-win-crt-runtime-l1-1-0.dll dependency of c:\python36-32\lib\site-packages\shapely\DLLs\geos.dll
27317 WARNING: lib not found: api-ms-win-crt-stdio-l1-1-0.dll dependency of c:\python36-32\lib\site-packages\shapely\DLLs\geos.dll
27341 WARNING: lib not found: api-ms-win-crt-heap-l1-1-0.dll dependency of c:\python36-32\lib\site-packages\shapely\DLLs\geos.dll
27364 WARNING: lib not found: api-ms-win-crt-locale-l1-1-0.dll dependency of c:\python36-32\lib\site-packages\shapely\DLLs\geos.dll
27413 WARNING: lib not found: api-ms-win-crt-runtime-l1-1-0.dll dependency of C:\python36-32\lib\site-packages\PyQt5\Qt\plugins\imageformats\qwbmp.dll
27439 WARNING: lib not found: api-ms-win-crt-heap-l1-1-0.dll dependency of C:\python36-32\lib\site-packages\PyQt5\Qt\plugins\imageformats\qwbmp.dll
27490 WARNING: lib not found: api-ms-win-crt-convert-l1-1-0.dll dependency of C:\python36-32\lib\site-packages\PyQt5\Qt\plugins\imageformats\qtiff.dll
27512 WARNING: lib not found: api-ms-win-crt-string-l1-1-0.dll dependency of C:\python36-32\lib\site-packages\PyQt5\Qt\plugins\imageformats\qtiff.dll
27534 WARNING: lib not found: api-ms-win-crt-math-l1-1-0.dll dependency of C:\python36-32\lib\site-packages\PyQt5\Qt\plugins\imageformats\qtiff.dll
27558 WARNING: lib not found: api-ms-win-crt-utility-l1-1-0.dll dependency of C:\python36-32\lib\site-packages\PyQt5\Qt\plugins\imageformats\qtiff.dll
27589 WARNING: lib not found: api-ms-win-crt-runtime-l1-1-0.dll dependency of C:\python36-32\lib\site-packages\PyQt5\Qt\plugins\imageformats\qtiff.dll
27615 WARNING: lib not found: api-ms-win-crt-stdio-l1-1-0.dll dependency of C:\python36-32\lib\site-packages\PyQt5\Qt\plugins\imageformats\qtiff.dll
27635 WARNING: lib not found: api-ms-win-crt-heap-l1-1-0.dll dependency of C:\python36-32\lib\site-packages\PyQt5\Qt\plugins\imageformats\qtiff.dll
27656 WARNING: lib not found: api-ms-win-crt-environment-l1-1-0.dll dependency of C:\python36-32\lib\site-packages\PyQt5\Qt\plugins\imageformats\qtiff.dll
27821 WARNING: lib not found: api-ms-win-crt-math-l1-1-0.dll dependency of C:\python36-32\lib\site-packages\PyQt5\Qt\plugins\platforms\qwindows.dll
27856 WARNING: lib not found: api-ms-win-crt-convert-l1-1-0.dll dependency of C:\python36-32\lib\site-packages\PyQt5\Qt\plugins\platforms\qwindows.dll
27881 WARNING: lib not found: api-ms-win-crt-utility-l1-1-0.dll dependency of C:\python36-32\lib\site-packages\PyQt5\Qt\plugins\platforms\qwindows.dll
27904 WARNING: lib not found: api-ms-win-crt-runtime-l1-1-0.dll dependency of C:\python36-32\lib\site-packages\PyQt5\Qt\plugins\platforms\qwindows.dll
27930 WARNING: lib not found: api-ms-win-crt-stdio-l1-1-0.dll dependency of C:\python36-32\lib\site-packages\PyQt5\Qt\plugins\platforms\qwindows.dll
28039 WARNING: lib not found: api-ms-win-crt-heap-l1-1-0.dll dependency of C:\python36-32\lib\site-packages\PyQt5\Qt\plugins\platforms\qwindows.dll
28075 WARNING: lib not found: api-ms-win-crt-string-l1-1-0.dll dependency of C:\python36-32\lib\site-packages\PyQt5\Qt\plugins\platforms\qwindows.dll
28120 WARNING: lib not found: api-ms-win-crt-string-l1-1-0.dll dependency of c:\python36-32\DLLs\_ctypes.pyd
28147 WARNING: lib not found: api-ms-win-crt-runtime-l1-1-0.dll dependency of c:\python36-32\DLLs\_ctypes.pyd
28172 WARNING: lib not found: api-ms-win-crt-stdio-l1-1-0.dll dependency of c:\python36-32\DLLs\_ctypes.pyd
28203 WARNING: lib not found: api-ms-win-crt-runtime-l1-1-0.dll dependency of c:\python36-32\DLLs\_multiprocessing.pyd
28237 WARNING: lib not found: api-ms-win-crt-convert-l1-1-0.dll dependency of c:\python36-32\DLLs\_decimal.pyd
28258 WARNING: lib not found: api-ms-win-crt-math-l1-1-0.dll dependency of c:\python36-32\DLLs\_decimal.pyd
28280 WARNING: lib not found: api-ms-win-crt-string-l1-1-0.dll dependency of c:\python36-32\DLLs\_decimal.pyd
28304 WARNING: lib not found: api-ms-win-crt-runtime-l1-1-0.dll dependency of c:\python36-32\DLLs\_decimal.pyd
28326 WARNING: lib not found: api-ms-win-crt-stdio-l1-1-0.dll dependency of c:\python36-32\DLLs\_decimal.pyd
28348 WARNING: lib not found: api-ms-win-crt-heap-l1-1-0.dll dependency of c:\python36-32\DLLs\_decimal.pyd
-----------------------------a whole bunch of similar warnings -----------------------------
47101 WARNING: lib not found: api-ms-win-crt-heap-l1-1-0.dll dependency of c:\python36-32\lib\site-packages\PyQt5\Qt\bin\MSVCP140.dll
47122 WARNING: lib not found: api-ms-win-crt-environment-l1-1-0.dll dependency of c:\python36-32\lib\site-packages\PyQt5\Qt\bin\MSVCP140.dll
47146 WARNING: lib not found: api-ms-win-crt-locale-l1-1-0.dll dependency of c:\python36-32\lib\site-packages\PyQt5\Qt\bin\MSVCP140.dll
47146 INFO: Looking for eggs
47147 INFO: Using Python library c:\python36-32\python36.dll
47148 INFO: Found binding redirects:
[]
47167 INFO: Warnings written to C:\Tiancheng\Scripts\UT Extractor\build\Controller\warnController.txt
47347 INFO: Graph cross-reference written to C:\Tiancheng\Scripts\UT Extractor\build\Controller\xref-Controller.html
47444 INFO: checking PYZ
47444 INFO: Building PYZ because out00-PYZ.toc is non existent
47445 INFO: Building PYZ (ZlibArchive) C:\Tiancheng\Scripts\UT Extractor\build\Controller\out00-PYZ.pyz
49113 INFO: Building PYZ (ZlibArchive) C:\Tiancheng\Scripts\UT Extractor\build\Controller\out00-PYZ.pyz completed successfully.
49153 INFO: checking PKG
49153 INFO: Building PKG because out00-PKG.toc is non existent
49154 INFO: Building PKG (CArchive) out00-PKG.pkg
49212 INFO: Building PKG (CArchive) out00-PKG.pkg completed successfully.
49222 INFO: Bootloader c:\python36-32\lib\site-packages\PyInstaller\bootloader\Windows-32bit\run.exe
49222 INFO: checking EXE
49223 INFO: Building EXE because out00-EXE.toc is non existent
49223 INFO: Building EXE from out00-EXE.toc
49224 INFO: Appending archive to EXE C:\Tiancheng\Scripts\UT Extractor\build\Controller\Controller.exe
49446 INFO: Building EXE from out00-EXE.toc completed successfully.
49459 INFO: checking COLLECT
49459 INFO: Building COLLECT because out00-COLLECT.toc is non existent
49461 INFO: Building COLLECT out00-COLLECT.toc
55290 INFO: Building COLLECT out00-COLLECT.toc completed successfully.

公司的一位工程师对我进行了简短的介绍,她说这可能是因为我的机器上的GDAL和Fiona的版本不兼容,但她太忙了,无法帮助完成剩下的工作。

我正在使用 Python 3.6 GDAL 2.2.4 Fiona 1.7.11 post1 ,两者都是通过从{{ 3}}

我在functions.py中导入的模块如下:

import psycopg2
import pymysql
import re
import time, datetime
import fiona
from shapely.geometry import mapping, Point
import unidecode

我无法在任何地方找到类似的问题。

补充:我检查过我确实安装了pypiwin32。我忘了提到我的系统变量中没有Python(因为我需要保留Python 27才能使Arcpy工作),我也不会在路径中使用GDAL,这有关系吗?如果是这样,我该如何解决?

2 个答案:

答案 0 :(得分:1)

读取此输出时,最好查找引发的第一个错误。

尝试pip install pypiwin32

答案 1 :(得分:0)

我最终放弃了点子,开始使用Conda,当我通过Conda安装上述模块时,它们似乎都可以正常工作。