Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

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

share|improve this question
    
possible duplicate of How to import qgis.core to python app? –  R.K. Dec 1 '12 at 4:37
    
but my qgis.core is locate in C:\Program Files (x86)\Quantum GIS Wroclaw\apps\qgis\bin not in D:\Program Files (x86)\Quantum GIS Wroclaw\apps\qgis\python .I mean not only because in the different drive –  blueman010112 Dec 1 '12 at 16:18
add comment

2 Answers

up vote 2 down vote accepted

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

open a windows command prompt and type the command.

share|improve this answer
    
+1 (at least I will once they allow me to vote posts again) Missed it, too. –  R.K. Nov 30 '12 at 9:11
    
which means use cmd?? –  blueman010112 Nov 30 '12 at 9:35
    
@blueman010112 yes –  vinayan Nov 30 '12 at 9:50
    
I tried but still can't I type set PYTHONPATH=C:\Program Files (x86)\Quantum GIS Wroclaw\apps\qgis\bin and set PYTHONPATH="C:\Program Files (x86)\Quantum GIS Wroclaw\apps\qgis\bin" but still can't! –  blueman010112 Nov 30 '12 at 14:29
    
@blueman010112 - ok..what is the error you are getting while typing it in the command prompt? –  vinayan Nov 30 '12 at 15:12
show 2 more comments

Try

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

The spaces ruin the path otherwise.

share|improve this answer
    
same error happen.... –  blueman010112 Nov 30 '12 at 7:27
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.