The following ports are currently installed: py27-pip @9.0.1_0 (active) py27-setuptools @36.0.1_0 (active) py35-pip @9.0.1_0 (active) py35-setuptools @36.0.1_0 (active) py36-pip @9.0.1_0 (active) py36-setuptools @36.0.1_0 (active) python2_select @0.0_2 (active) python3_select @0.0_1 (active) python27 @2.7.13_1 (active) python34 @3.4.6_1 (active) python35 @3.5.3_1 (active) python36 @3.6.1_1 (active) python_select @0.3_7 (active)
I have just uninstalled all inactive versions of all ports but when I start python3.5 it still says it is running python3.5.2 Laurent > Le 12 juil. 2017 à 15:43, Joshua Root <[email protected]> a écrit : > >> 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 "S'il n'y a pas de solution, c'est qu'il n'y a pas de problème" (devise Shadok)
