0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Jython でモジュールのインストールの方法 (SikuliX 使う)

Last updated at Posted at 2019-10-24

まず pip インストール

java -jar (Join-Path $Env:APPDATA Sikulix\Extensions\jython-standalone-2.7.1.jar) -m ensurepip
すると、
(Join-Path $Env:APPDATA Sikulix\Extensions\bin)
にものが置かれる。

somemodule をインストールしたいとき。

もし、behind proxyの場合、proxyの環境変数を実行しておく。

$Env:http_proxy=...
$Env:https_proxy=...

そして目的のモジュール
java -jar (Join-Path $Env:APPDATA Sikulix\Extensions\jython-standalone-2.7.1.jar) -m pip install somemodule

例: WebSocket-Client インストール

WebSocket-Client 使いたかったので、その入れ方。

pip install だと、python3用しか対応してないと https://github.com/websocket-client/websocket-client に書いてあったので、
python setup.py install 相当のことを行う。

git clone https://github.com/websocket-client/websocket-client
cd websocket-client\websocket
java -jar (Join-Path $ENV:APPDATA Sikulix\Extensions\jython-standalone-2.7.1.jar) setup.py install
0
1
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
0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?