2

I try to follow the step in How to import qgis.core to Python app? to import qgis.core with Python Shell. But when I type

set PYTHONPATH=C:\Program Files (x86)\Quantum GIS Wroclaw\apps\qgis\bin

it report

SyntaxError: invalid syntax

and highlight PYTHONPATH

blueman010112
  • 449
  • 10
  • 21

2 Answers2

2

that command is not supposed to be typed into python console.

open a windows command prompt and type the command.

vinayan
  • 7,282
  • 3
  • 37
  • 75
0

Try

set PYTHONPATH="C:\Program Files (x86)\Quantum GIS Wroclaw\apps\qgis\bin"

The spaces ruin the path otherwise.

underdark
  • 84,148
  • 21
  • 231
  • 413