How to run an app built with Python + py2app built with Anaconda

I created an App for Mac with py2app in the Python environment built on Mac with Anaconda, but it did not start with the following error screen.

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

After investigating various things, it seems that you should specify the path of libpython3.5m.dylib in OPTIONS of setup.py as shown below before building with the py2app command (the name of lib depends on your environment).

----from here OPTIONS = {'argv_emulation': True, 'plist': { 'PyRuntimeLocations': [ '@executable_path/../Frameworks/libpython3.5m.dylib', '/Users/*****/.pyenv/versions/anaconda3-4.1.0/lib/libpython3.5m.dylib' ] }} ----So far

Recommended Posts

How to run an app built with Python + py2app built with Anaconda
How to crop an image with Python + OpenCV
How to run Notepad ++ Python
How to run tests in bulk with Python unittest
How to install python using anaconda
Python: How to use async with
How to convert an array to a dictionary with Python [Application]
How to get started with Python
How to use FTP with Python
How to calculate date with python
[Python Kivy] How to create an exe file with pyinstaller
How to read an Excel file (.xlsx) with Pandas [Python]
How to install Anaconda with pyenv
How to create a heatmap with an arbitrary domain in Python
[Python] Explains how to use the format function with an example
How to use an external editor for Python development with Grasshopper
[Python] Building an environment with Anaconda [Mac]
Change Python 64bit environment to 32bit environment with Anaconda
python3 How to install an external module
How to convert Python to an exe file
How to work with BigQuery in Python
How to do portmanteau test with python
How to display python Japanese with lolipop
How to enter Japanese with Python curses
Create an English word app with python
How to add python module to anaconda environment
[Python] How to deal with module errors
How to run a Maya Python script
How to install python3 with docker centos
How to read a CSV file with Python 2/3
How to enjoy programming with Minecraft (Ruby, Python)
[REAPER] How to play with Reascript in Python
How to do multi-core parallel processing with python
Strategy on how to monetize with Python Java
Create an app that guesses students with python
Send an email to Spushi's address with python
How to develop a cart app with Django
Building an Anaconda environment for Python with pyenv
[Python] How to draw multiple graphs with Matplotlib
[Python] How to read excel file with pandas
How to run MeCab on Ubuntu 18.04 LTS Python
How to read an array with Python's ConfigParser
How to specify attributes with Mock of python
How to measure execution time with Python Part 1
How to use tkinter with python in pyenv
[Blender x Python] How to make an animation
How to run Leap Motion in non-Apple Python
How to create a multi-platform app with kivy
[Python] How to install OpenCV on Anaconda [Windows]
[Python] How to handle Japanese characters with openCV
From Python environment construction to virtual environment construction with anaconda
Post an article with an image to WordPress with Python
[Python] How to compare datetime with timezone added
How to measure execution time with Python Part 2
How to build an environment when you want to use python2.7 after installing Anaconda3
Notes from installing Homebrew to building an Anaconda environment for Python with pyenv
Run Python with VBA
How to install Python
Run prepDE.py with python3
How to install python
Run Blender with python