3
8

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.

Anacondaで構築したPython + py2appでBuildしたアプリを動かす方法

Last updated at Posted at 2017-05-02

AnacondaでMacに構築したPython環境でpy2appでMac用Appを作成したのですが、下記のようなエラー画面で起動しませんでした。

ScreenCapture at Wed May 3 01:10:28 JST 2017.png

色々調べてみると、py2appコマンドでビルドする前にsetup.pyのOPTIONSに下記のようにlibpython3.5m.dylibのパスを指定してやるといいみたいです(libの名前は各自の環境により異なります)

----ここから
OPTIONS = {'argv_emulation': True,
'plist': {
'PyRuntimeLocations': [
'@executable_path/../Frameworks/libpython3.5m.dylib',
'/Users/*****/.pyenv/versions/anaconda3-4.1.0/lib/libpython3.5m.dylib'
]
}}
----ここまで

3
8
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
3
8

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?