How To Download Google.protobuf Python Mac

Posted on by
How To Download Google.protobuf Python Mac Rating: 5,7/10 9813 votes

Python for Mac OS X

  1. Google Protobuf Python
  2. Python Protobuf Doc

Python comes pre-installed on Mac OS X so it is easy to startusing. However, to take advantage of the latest versions ofPython, you will need to download and install newer versionsalongside the system ones. The easiest way to do that is toinstall one of the binary installers for OS X from thePython Download page. Installers areavailable for the latest Python 3 and Python 2 releases thatwill work on all Macs that run Mac OS X 10.5 and later.

I installed my grpc with $ brew tap grpc $ brew install grpc/grpc Then I tried to install grpc python with $ sudo pip install virtualenv $ virtualenv venv $ source venv/bin/activate $ curl -fsSL bash -s pyth. I installed the package and ran all of the correct commands. I did this for 2.6.1, 2.7, and 3.2. Mac dre lets all get down download. Between each I subsequently uninstalled the previous version. Within each version I went into the py. How to Install and Run Google's Protocol Buffer Basics: C Tutorial on Mac. Tested on: macOS High Sierra v10.13.3. Install Google Protobuf. Google's official README is here. Follow their instructions to install the special dependencies that mac needs. The steps I share below are a combination of this gist, this gist, and this answer.

On Mac OS X, if one installs protobuf as recommended with brew install protobuf then pycaffe import fails: /s/caffe/python $ python Python 2.7.8 (default, Jul 2 2014, 10:14:58) GCC 4.2.1 Compatible Apple LLVM 5.1 (clang-503.0.40) on darwin Type 'help', 'copyright', 'credits' or 'license' for more information. import sys; cafferoot = './'; sys.path.insert(0, cafferoot + 'python. PATH is an environment variable which lists places where the command shell will look for programs.On Windows it typically includes things like 'c:windows' and 'c:windowssystem32', but you can add other directories to it as well. On Windows, you can also place a program in the current working directory, and the command shell will find it.

Python releases include IDLE, Python's built-in interactivedevelopment environment. If you download and install Pythonfrom the release page, you may also need to download and installa newer version of Tcl/Tk for OS X. See theIDLE and Tkinter on OS X page formore information.

Google Protobuf Python

You can run a Python interpreter by double-clicking onApplications / Utilities / Terminal and typing python3 (if you'veinstalled a version of Python 3) or python (to use Python 2) inthe window that opens up. You can also launch IDLE for the Pythonversion you have installed by double-clicking its icon inthe appropriate Python version folder in the Applications folderor you can also just type idle3 or idle in a terminal window.

There are many thousands of additional Python software packagesavailable through PyPI, the PythonPackage Index. We recommend you use thepip tool to simplifyinstalling and managing additional packages. pip is includedwith Python 3.4 releases; for earlier releases, follow the pipinstall instructions.

Protobuf python map

Mac how to download app on outlook. Among the packages available through PyPI are some that arespecifically for OS X environments. Among these are:

  • pyobjc which providesa bridge between Python and Objective-C, allowing you to writefull-featured native Cocoa applications in pure Python.
  • py2app which allowsyou to make standalone OS X double-clickable application bundlesand plugins from Python scripts.

Python Protobuf Doc

For more information about Python on OS X, see the mailing list and archivesfor thePython-Macintosh Special Interest Group.

Install google protobuf python

Alternative Packages for Mac OS X.

  • ActiveState ActivePython(commercial and community versions, including scientific computing modules).
  • Enthought Python DistributionThe Enthought Python Distribution provides scientists with a comprehensive setof tools to perform rigorous data analysis and visualization.

Python and a comprehensive set of third-party packages and libraries are alsoavailable from several open source package manager projects for OS X,including:

On Tue, Feb 22, 2011 at 3:50 AM, pick_tim <nguyenq..@gmail.com> wrote:
I tried compile protobuf on Mac OS Tiger,
My command :
./configure CXXFLAGS='/Volumes/Data/XCode/SDKs/MacOSX10.4u.sdk -arch
i386 -arch ppc -mmacosx-version-min=10.4' --disable-dependency-
tracking.
- output :
checking build system type.. i386-apple-darwin10.6.0
checking host system type.. i386-apple-darwin10.6.0
checking target system type.. i386-apple-darwin10.6.0
checking for a BSD-compatible install.. /usr/bin/install -c
checking whether build environment is sane.. yes
checking for a thread-safe mkdir -p.. ./install-sh -c -d
checking for gawk.. no
checking for mawk.. no
checking for nawk.. no
checking for awk.. awk
checking whether make sets $(MAKE).. yes
checking for gcc.. gcc
checking whether the C compiler works.. yes
checking for C compiler default output file name.. a.out
checking for suffix of executables..
checking whether we are cross compiling.. no
checking for suffix of object files.. o
checking whether we are using the GNU C compiler.. yes
checking whether gcc accepts -g.. yes
checking for gcc option to accept ISO C89.. none needed
checking for style of include used by make.. GNU
checking dependency style of gcc.. none
checking for g++.. g++
checking whether we are using the GNU C++ compiler.. no
checking whether g++ accepts -g.. yes
checking dependency style of g++.. none
checking how to run the C++ preprocessor.. g++ -E
checking for grep that handles long lines and -e.. /usr/bin/grep
checking for egrep.. /usr/bin/grep -E
checking for ANSI C header files.. no
checking for sys/types.h.. no
checking for sys/stat.h.. no
checking for stdlib.h.. no
checking for string.h.. no
checking for memory.h.. no
checking for strings.h.. no
checking for inttypes.h.. no
checking for stdint.h.. no
checking for unistd.h.. no
checking minix/config.h usability.. no
checking minix/config.h presence.. no
checking for minix/config.h.. no
checking whether it is safe to define __EXTENSIONS__.. no
checking C++ compiler flags... use user-supplied: /Volumes/Data/
XCode/SDKs/MacOSX10.4u.sdk -arch i386 -arch ppc -mmacosx-version-
min=10.4
checking whether __SUNPRO_CC is declared.. no
checking for a sed that does not truncate output.. /usr/bin/sed
checking for fgrep.. /usr/bin/grep -F
checking for ld used by gcc.. /usr/libexec/gcc/i686-apple-
darwin10/4.2.1/ld
checking if the linker (/usr/libexec/gcc/i686-apple-darwin10/4.2.1/ld)
is GNU ld.. no
checking for BSD- or MS-compatible name lister (nm).. /usr/bin/nm
checking the name lister (/usr/bin/nm) interface.. BSD nm
checking whether ln -s works.. yes
checking the maximum length of command line arguments.. 196608
checking whether the shell understands some XSI constructs.. yes
checking whether the shell understands '+='.. yes
checking for /usr/libexec/gcc/i686-apple-darwin10/4.2.1/ld option to
reload object files.. -r
checking for objdump.. no
checking how to recognize dependent libraries.. pass_all
checking for ar.. ar
checking for strip.. strip
checking for ranlib.. ranlib
checking command to parse /usr/bin/nm output from gcc object.. failed
checking for dsymutil.. dsymutil
checking for nmedit.. nmedit
checking for lipo.. lipo
checking for otool.. otool
checking for otool64.. no
checking for -single_module linker flag.. yes
checking for -exported_symbols_list linker flag.. no
checking for dlfcn.h.. no
checking whether we are using the GNU C++ compiler.. (cached) no
checking whether g++ accepts -g.. (cached) yes
checking dependency style of g++.. (cached) none
checking how to run the C++ preprocessor.. g++ -E
checking for objdir.. .libs
checking if gcc supports -fno-rtti -fno-exceptions.. no
checking for gcc option to produce PIC.. -fno-common -DPIC
checking if gcc PIC flag -fno-common -DPIC works.. yes
checking if gcc static flag -static works.. no
checking if gcc supports -c -o file.o.. yes
checking if gcc supports -c -o file.o.. (cached) yes
checking whether the gcc linker (/usr/libexec/gcc/i686-apple-
darwin10/4.2.1/ld) supports shared libraries.. yes
checking dynamic linker characteristics.. darwin10.6.0 dyld
checking how to hardcode library paths into programs.. immediate
checking whether stripping libraries is possible.. yes
checking if libtool supports shared libraries.. yes
checking whether to build shared libraries.. yes
checking whether to build static libraries.. yes
checking whether the g++ linker (/usr/libexec/gcc/i686-apple-
darwin10/4.2.1/ld) supports shared libraries.. no
libtool.m4: error: problem compiling CXX test program
checking for g++ option to produce PIC.. -DPIC
checking if g++ PIC flag -DPIC works.. no
checking if g++ static flag works.. no
checking if g++ supports -c -o file.o.. no
checking if g++ supports -c -o file.o.. (cached) no
checking whether the g++ linker (/usr/libexec/gcc/i686-apple-
darwin10/4.2.1/ld) supports shared libraries.. no
checking dynamic linker characteristics.. darwin10.6.0 dyld
checking how to hardcode library paths into programs.. immediate
checking for ANSI C header files.. (cached) no
checking fcntl.h usability.. no
checking fcntl.h presence.. yes
configure: WARNING: fcntl.h: present but cannot be compiled
configure: WARNING: fcntl.h: check for missing prerequisite
headers?
configure: WARNING: fcntl.h: see the Autoconf documentation
configure: WARNING: fcntl.h: section 'Present But Cannot Be
Compiled'
configure: WARNING: fcntl.h: proceeding with the compiler's result
configure: WARNING: ## ---------------------------------------- ##
configure: WARNING: ## Report this to prot..@googlegroups.com ##
configure: WARNING: ## ---------------------------------------- ##
checking for fcntl.h.. no
checking for inttypes.h.. (cached) no
checking limits.h usability.. no
checking limits.h presence.. yes
configure: WARNING: limits.h: present but cannot be compiled
configure: WARNING: limits.h: check for missing prerequisite
headers?
configure: WARNING: limits.h: see the Autoconf documentation
configure: WARNING: limits.h: section 'Present But Cannot Be
Compiled'
configure: WARNING: limits.h: proceeding with the compiler's result
configure: WARNING: ## ---------------------------------------- ##
configure: WARNING: ## Report this to prot..@googlegroups.com ##
configure: WARNING: ## ---------------------------------------- ##
checking for limits.h.. no
checking for stdlib.h.. (cached) no
checking for unistd.h.. (cached) no
checking for working memcmp.. no
checking for working strtod.. no
checking for pow.. no
checking for pow in -lm.. no
configure: WARNING: cannot find library containing definition of pow
checking for ftruncate.. no
checking for memset.. no
checking for mkdir.. no
checking for strchr.. no
checking for strerror.. no
checking for strtol.. no
checking zlib version.. headers missing or too old (requires 1.2.0.4)
checking for the pthreads library -lpthreads.. no
checking whether pthreads work without any flags.. yes
checking for joinable pthread attribute.. PTHREAD_CREATE_JOINABLE
checking if more special flags are required for pthreads.. -
D_THREAD_SAFE
checking whether to check for GCC pthread/shared inconsistencies.. no
checking whether what we have so far is sufficient with -nostdlib..
no
checking whether -lpthread saves the day.. no
configure: WARNING: Impossible to determine how to use pthreads with
shared libraries and -nostdlib
checking the location of hash_map..
configure: WARNING: could not find an STL hash_map
configure: creating ./config.status
config.status: creating Makefile
config.status: creating src/Makefile
config.status: creating protobuf.pc
config.status: creating protobuf-lite.pc
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing depfiles commands
config.status: executing libtool commands
configuring in gtest (/Users/viethuynh/downloads/protobuf-2.4.0a/
gtest)
configure: running /bin/sh ./configure --disable-option-checking '--
prefix=/usr/local' 'CXXFLAGS=/Volumes/Data/XCode/SDKs/MacOSX10.4u.sdk
-arch i386 -arch ppc -mmacosx-version-min=10.4' '--disable-dependency-
tracking' '--without-java' '--without-python' --cache-file=/dev/null --
srcdir=.
checking for a BSD-compatible install.. /usr/bin/install -c
checking whether build environment is sane.. yes
checking for a thread-safe mkdir -p.. build-aux/install-sh -c -d
checking for gawk.. no
checking for mawk.. no
checking for nawk.. no
checking for awk.. awk
checking whether make sets $(MAKE).. yes
checking for gcc.. gcc
checking whether the C compiler works.. yes
checking for C compiler default output file name.. a.out
checking for suffix of executables..
checking whether we are cross compiling.. no
checking for suffix of object files.. o
checking whether we are using the GNU C compiler.. yes
checking whether gcc accepts -g.. yes
checking for gcc option to accept ISO C89.. none needed
checking for style of include used by make.. GNU
checking dependency style of gcc.. none
checking for g++.. g++
checking whether we are using the GNU C++ compiler.. no
checking whether g++ accepts -g.. yes
checking dependency style of g++.. none
checking build system type.. i386-apple-darwin10.6.0
checking host system type.. i386-apple-darwin10.6.0
checking for a sed that does not truncate output.. /usr/bin/sed
checking for grep that handles long lines and -e.. /usr/bin/grep
checking for egrep.. /usr/bin/grep -E
checking for fgrep.. /usr/bin/grep -F
checking for ld used by gcc.. /usr/libexec/gcc/i686-apple-
darwin10/4.2.1/ld
checking if the linker (/usr/libexec/gcc/i686-apple-darwin10/4.2.1/ld)
is GNU ld.. no
checking for BSD- or MS-compatible name lister (nm).. /usr/bin/nm
checking the name lister (/usr/bin/nm) interface.. BSD nm
checking whether ln -s works.. yes
checking the maximum length of command line arguments.. 196608
checking whether the shell understands some XSI constructs.. yes
checking whether the shell understands '+='.. yes
checking for /usr/libexec/gcc/i686-apple-darwin10/4.2.1/ld option to
reload object files.. -r
checking for objdump.. no
checking how to recognize dependent libraries.. pass_all
checking for ar.. ar
checking for strip.. strip
checking for ranlib.. ranlib
checking command to parse /usr/bin/nm output from gcc object.. failed
checking for dsymutil.. dsymutil
checking for nmedit.. nmedit
checking for lipo.. lipo
checking for otool.. otool
checking for otool64.. no
checking for -single_module linker flag.. yes
checking for -exported_symbols_list linker flag.. no
checking how to run the C preprocessor.. gcc -E
checking for ANSI C header files.. yes
checking for sys/types.h.. yes
checking for sys/stat.h.. yes
checking for stdlib.h.. yes
checking for string.h.. yes
checking for memory.h.. yes
checking for strings.h.. yes
checking for inttypes.h.. yes
checking for stdint.h.. yes
checking for unistd.h.. yes
checking for dlfcn.h.. yes
checking whether we are using the GNU C++ compiler.. (cached) no
checking whether g++ accepts -g.. (cached) yes
checking dependency style of g++.. (cached) none
checking how to run the C++ preprocessor.. g++ -E
checking for objdir.. .libs
checking if gcc supports -fno-rtti -fno-exceptions.. no
checking for gcc option to produce PIC.. -fno-common -DPIC
checking if gcc PIC flag -fno-common -DPIC works.. yes
checking if gcc static flag -static works.. no
checking if gcc supports -c -o file.o.. yes
checking if gcc supports -c -o file.o.. (cached) yes
checking whether the gcc linker (/usr/libexec/gcc/i686-apple-
darwin10/4.2.1/ld) supports shared libraries.. yes
checking dynamic linker characteristics.. darwin10.6.0 dyld
checking how to hardcode library paths into programs.. immediate
checking whether stripping libraries is possible.. yes
checking if libtool supports shared libraries.. yes
checking whether to build shared libraries.. yes
checking whether to build static libraries.. yes
checking whether the g++ linker (/usr/libexec/gcc/i686-apple-
darwin10/4.2.1/ld) supports shared libraries.. no
libtool.m4: error: problem compiling CXX test program
checking for g++ option to produce PIC.. -DPIC
checking if g++ PIC flag -DPIC works.. no
checking if g++ static flag works.. no
checking if g++ supports -c -o file.o.. no
checking if g++ supports -c -o file.o.. (cached) no
checking whether the g++ linker (/usr/libexec/gcc/i686-apple-
darwin10/4.2.1/ld) supports shared libraries.. no
checking dynamic linker characteristics.. darwin10.6.0 dyld
checking how to hardcode library paths into programs.. immediate
checking for python.. /usr/bin/python
checking for the pthreads library -lpthreads.. no
checking whether pthreads work without any flags.. yes
checking for joinable pthread attribute.. PTHREAD_CREATE_JOINABLE
checking if more special flags are required for pthreads.. -
D_THREAD_SAFE
checking whether to check for GCC pthread/shared inconsistencies.. no
configure: creating ./config.status
config.status: creating Makefile
config.status: creating scripts/gtest-config
config.status: creating build-aux/config.h
config.status: build-aux/config.h is unchanged
config.status: executing depfiles commands
config.status: executing libtool commands
----------------------------------
then,
- sudo make :
- output:
make all-recursive
Making all in .
Making all in src
/bin/sh ./libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I.
-I. -D_THREAD_SAFE -Wall -Wwrite-strings -Woverloaded-virtual -
Wno-sign-compare /Volumes/Data/XCode/SDKs/MacOSX10.4u.sdk -arch i386 -
arch ppc -mmacosx-version-min=10.4 -c -o common.lo `test -f 'google/
protobuf/stubs/common.cc' echo './'`google/protobuf/stubs/common.cc
libtool: compile: g++ -DHAVE_CONFIG_H -I. -I. -D_THREAD_SAFE -Wall -
Wwrite-strings -Woverloaded-virtual -Wno-sign-compare /Volumes/Data/
XCode/SDKs/MacOSX10.4u.sdk -arch i386 -arch ppc -mmacosx-version-
min=10.4 -c google/protobuf/stubs/common.cc
i686-apple-darwin10-g++-4.2.1: /Volumes/Data/XCode/SDKs/
MacOSX10.4u.sdk: linker input file unused because linking not done
powerpc-apple-darwin10-g++-4.2.1: /Volumes/Data/XCode/SDKs/
MacOSX10.4u.sdk: linker input file unused because linking not done
lipo: can't figure out the architecture type of: /var/folders/KP/
KPRx7sfLG2aJErSMJTjj9U+++TI/-Tmp-//ccYxUgo9.out
make[2]: *** [common.lo] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
Does protobuf library have support on GCC 4.0?
Thanks for help.
Cuong

--
You received this message because you are subscribed to the Google Groups 'Protocol Buffers' group.
To post to this group, send email to prot..@googlegroups.com.
To unsubscribe from this group, send email to prot..@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/protobuf?hl=en.