I have Macports python 3.5 and 3.6 and I have installed setuptools and pip for 
each version, on Mac OS 10.12.5, XCode 8.3.3
However for python3.5 it says it does not find pkg_resources and for python3.6, 
it is even worse, python crashes :

laurent>python3.5
Python 3.5.2 (default, Dec 17 2016, 06:22:37) [GCC 4.2.1 Compatible Apple LLVM 8.0.0 (clang-800.0.38)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
import pkg_resources
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: No module named 'pkg_resources'

laurent>python3.6
Python 3.6.1 (default, Apr 24 2017, 06:18:27) [GCC 4.2.1 Compatible Apple LLVM 8.0.0 (clang-800.0.42.1)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
import pkg_resources
Python(85816,0x7fffcc2cc3c0) malloc: *** error for object 0x1091fa318: pointer 
being freed was not allocated
*** set a breakpoint in malloc_error_break to debug
Abort

Any hint ?

Please show the output of this command:

port installed 'python*' '*setuptools' '*pip'

There is at least one thing wrong with this picture, as the version of python35 currently in MacPorts is 3.5.3. So either there is a different python3.5 earlier in your PATH, or you need to update.

- Josh

Reply via email to