LoginSignup
1
0

More than 5 years have passed since last update.

OSGeo4WでiPythonを利用できるようにする

Last updated at Posted at 2017-06-19

(走り書き的メモですすみません)

32bit

  1. Visual C++ 9.0のコンパイラを入れる Microsoft Visual C++ Compiler for Python 2.7
  2. OSGeo4W setup起動
    1. アドバンスインストールでpipを追加
  3. OSGeo4W shell 起動
  4. pip install setuptools
  5. pip install ipython
  6. しあわせ。

64bit

上記32bit版の2.1のあとで、python-develを入れる
2.2. python-devel追加

以下同でしあわせ。


(2017/06/21 追記)

64bit、win8.1の環境だと、

NoConsoleScreenBufferError

というのが出てiPythonが起動しない。
ひとまず、

\OSGeo4W64\apps\Python27\Lib\site-packages\prompt_toolkit\terminal\win32_output.py

の中にある get_win32_screen_buffer_info

success = windll.kernel32.GetConsoleScreenBufferInfo(self.hconsole, byref(sbinfo))

success = self._winapi(windll.kernel32.GetConsoleScreenBufferInfo, self.hconsole, byref(sbinfo))

に差し替えれば動く。
(コード内にコメントアウトされてるので、差し替えは簡単。)

1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0