[python-nl] Probleem met pythonpath

Wichert Akkerman wichert at wiggy.net
Wed Aug 4 13:40:32 CEST 2010


On 8/4/10 13:33 , Floris van Manen wrote:
>
> On Aug 4, 2010, at 13:27, Wichert Akkerman wrote:
>
>> On 8/4/10 13:25 , Dexter wrote:
>>> Hoe kan ik controleren of mijn 2.6 installatie gebruik maakt van 4 byte
>>> unicode?
>>
>> Zie http://www.lmgtfy.com/?q=python+ucs2+or+ucs4&l=1
>>
>>> python verwijst naar /usr/local/bin/python. Dat is inderdaad een 2.5,
>>> hoe kan ik dat veranderen naar /usr/bin/python?
>>
>> rm /usr/local/bin/python
>
>
> #!/usr/bin/env python
> # encoding: utf-8

Dat helpt niet als de eerste python in PATH een python 2.5 is, wat 
volgens mij hier het probleems is. env zo gebruiken is overigens wel een 
handige truc die verrassend weinig mensen kennen.

Wichert.


More information about the Python-nl mailing list