没有名为site OSGEO4W的模块

2024-09-26 18:13:20 发布

您现在位置:Python中文网/ 问答频道 /正文

我在创建批处理文件以在windows cmd中运行时遇到问题。错误相同:没有名为site的模块。我将PYTHONPATH设置为…\python27\Lib,将PYTHONHOME设置为…\python27。我确认了这一点,错误仍在继续

批处理文件如下所示:

@ECHO ON
SET PYTHONHOME=%OSGEO4W_ROOT%\apps\Python27
SET PYTHONPATH=%OSGEO4W_ROOT%\apps\Python27\Lib
PATH %OSGEO4W_ROOT%\apps\Python27\Scripts;%PATH%
C:\OSGeo4W64\apps\Python27\Scripts\sentinelsat.exe -u <user> -p <passowrd> -s 20150101 -e 20150105 --instrument MSI --uuid 0d7bb0a5-5a0e-4de4-a41e-1599edf26825 --path <path> -d
@pause

解决办法是什么


Tags: apps文件pathcmdwindowslib错误scripts

热门问题