problem with pkg_resources in python 3

pagani laurent laurent.pagani at laposte.net
Wed Jul 12 14:30:23 UTC 2017


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 ?

Laurent

> Le 12 juil. 2017 à 16:23, Joshua Root <jmr at macports.org> a écrit :
> 
> On 2017-7-13 00:15 , pagani laurent wrote:
>> 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
> 
> OK, so you probably need to adjust your PATH environment variable or use the full path when running /opt/local/bin/python3.5. If you run 'type python3.5' it will show you which one is actually being run when you don't use the full path.
> 
> - Josh

"S'il n'y a pas de solution, c'est qu'il n'y a pas de problème" (devise Shadok)



More information about the macports-users mailing list