problem with pkg_resources in python 3

Joshua Root jmr at macports.org
Wed Jul 12 14:36:56 UTC 2017


On 2017-7-13 00:30 , pagani laurent wrote:
> It is (to me) very strange!
> 
> Lorenzo>sudo port upgrade python35
> --->  Scanning binaries for linking errors
> --->  No broken files found.
> Lorenzo>sudo port installed python35
> The following ports are currently installed:
>    python35 @3.5.3_1 (active)
> Lorenzo>type python3.5
> python3.5 is /opt/local/bin/python3.5
> Lorenzo>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.
>>>> ^D>>>
> Lorenzo>/opt/local/bin/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.
> 
> so it claims it is 3.5.3 which is installed but when launching it says 3.5.2.
> The software version not updated in the code ?

That indeed seems very strange. When I run it I see the correct version:

% python3.5
Python 3.5.3 (default, Apr 23 2017, 18:09: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.
 >>>

Is /opt/local/bin/python3.5 somehow a link to a different version? Does 
uninstalling and reinstalling python35 help?

- Josh


More information about the macports-users mailing list