remove path forever

Andrej Viktorovich viktorovichandrej at gmail.com
Thu Sep 7 10:25:22 EDT 2017


On Thursday, 7 September 2017 14:35:58 UTC+3, eryk sun  wrote:
> On Thu, Sep 7, 2017 at 1:39 AM, Andrej Viktorovich
> <viktorovichandrej at gmail.com> wrote:
> >
> > I have 64 bit python on my windows 10 machine. Install contains 32 bit python libs in path
> > and I would like to remove them.
> >
> > I do
> > imprt sys
> > sys.path.remove("C:\\Users\\me\\AppData\\Local\\Programs\\Python\\Python36-32")
> >
> > It works for current python instance, but paths appears in new one. How to remove paths forever?
> 
> Probably you have the Python36-32 directories set in PYTHONPATH. For
> some reason some people think they need to add standard directories to
> this environment variable, which is something you should never do.

Yes, my PYTHONPATH looks like: 
C:\Users\me\AppData\Local\Programs\Python\Python36-32
C:\Users\me\AppData\Local\Programs\Python\Python36-32\DLLs
C:\Users\me\AppData\Local\Programs\Python\Python36-32\Lib

Should I remove them? I suppose installer did so. But why 64 bit installer skiped this?






More information about the Python-list mailing list