Guest User

Untitled

a guest
Jan 20th, 2018
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.80 KB | None | 0 0
  1. @echo off
  2. SET OSGEO4W_ROOT=C:OSGeo4W64
  3. call "%OSGEO4W_ROOT%"bino4w_env.bat
  4. call "%OSGEO4W_ROOT%"appsgrassgrass-7.2.2etcenv.bat
  5. @echo off
  6. path %PATH%;%OSGEO4W_ROOT%appsqgis-devbin
  7. path %PATH%;%OSGEO4W_ROOT%appsgrassgrass-7.2.2lib
  8. path %OSGEO4W_ROOT%appsPython36;%OSGEO4W_ROOT%appsPython36Scripts;%PATH%
  9. set PYTHONHOME=%OSGEO4W_ROOT%appsPython36
  10. set PYTHONPATH=%PYTHONPATH%;%OSGEO4W_ROOT%appsqgis-devpython
  11. set PYTHONPATH=%PYTHONPATH%;%OSGEO4W_ROOT%appsPython36Libsite-packages
  12. set QGIS_PREFIX_PATH=%OSGEO4W_ROOT%appsqgis-dev
  13. cmd.exe
  14.  
  15. echo %PATH%
  16. C:OSGEO4~1appsPython36;C:OSGEO4~1appsPython36Scripts;C:OSGEO4~1appsPython27Scripts;C:OSGEO4~1bin;C:Windowssystem32;C:Windows;C:Windowssystem32WBem;C:OSGEO4~1appsqgis-devbin;C:OSGEO4~1appsgrassgrass-7.2.2lib
  17. echo %PYTHONHOME%
  18. C:OSGEO4~1appsPython36
  19. echo %PYTHONPATH%
  20. ;C:OSGEO4~1appsqgis-devpython;C:OSGEO4~1appsPython36Libsite-packages
  21.  
  22. E:>python
  23. Python 3.6.0 (v3.6.0:41df79263a11, Dec 23 2016, 08:06:12) [MSC v.1900 64 bit (AMD64)] on win32
  24. Type "help", "copyright", "credits" or "license" for more information.
  25. >>> import qgis.core
  26. Traceback (most recent call last):
  27. File "<stdin>", line 1, in <module>
  28. File "C:OSGEO4~1appsqgis-devpythonqgis__init__.py", line 71, in <module>
  29. from qgis.PyQt import QtCore
  30. File "C:OSGEO4~1appsqgis-devpythonqgisPyQtQtCore.py", line 1, in <module>
  31. from PyQt5.QtCore import *
  32. ImportError: DLL load failed: The specified module could not be found.
  33.  
  34. @ECHO OFF
  35.  
  36. set OSGEO4W_ROOT=D:OSGeo4W64
  37.  
  38. set PATH=%OSGEO4W_ROOT%bin;%PATH% set PATH=%PATH%;%OSGEO4W_ROOT%appsqgisbin
  39.  
  40. @echo off call "%OSGEO4W_ROOT%bino4w_env.bat" call "%OSGEO4W_ROOT%binqt5_env.bat" call "%OSGEO4W_ROOT%binpy3_env.bat" @echo off path %OSGEO4W_ROOT%appsqgis-devbin;%OSGEO4W_ROOT%appsgrassgrass-7.2.2lib;%OSGEO4W_ROOT%appsgrassgrass-7.2.2bin;%PATH%
  41.  
  42. cd /d %~dp0
  43.  
  44. ::start cmd
Add Comment
Please, Sign In to add comment