Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.maint.python > #12934 > unrolled thread

Re: Update PYTHONPATH after install

Started byPaul Wise <pabs@debian.org>
First post2020-10-08 03:10 +0200
Last post2020-10-08 03:10 +0200
Articles 1 — 1 participant

Back to article view | Back to linux.debian.maint.python

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: Update PYTHONPATH after install Paul Wise <pabs@debian.org> - 2020-10-08 03:10 +0200

#12934 — Re: Update PYTHONPATH after install

FromPaul Wise <pabs@debian.org>
Date2020-10-08 03:10 +0200
SubjectRe: Update PYTHONPATH after install
Message-ID<AXsBr-5uI-1@gated-at.bofh.it>
On Wed, Oct 7, 2020 at 5:56 PM Francis Murtagh wrote:

> My understanding of Debian policy means python3 modules should be installed in /usr/lib/python3/dist-packages/

Correct.

> Once the package installs there how is the PYTHONPATH meant to be updated so that user can import the module into the python3 interpreter?

This is not necessary...

> As the PYTHONPATH would normally look in /usr/local/ rather than /usr/lib/

... since the default import path includes /usr/lib:

$ unset PYTHONPATH
$ python3 -c 'import sys ; print("\n".join(sys.path))'

/usr/lib/python38.zip
/usr/lib/python3.8
/usr/lib/python3.8/lib-dynload
/usr/local/lib/python3.8/dist-packages
/usr/lib/python3/dist-packages
/usr/lib/python3.8/dist-packages

-- 
bye,
pabs

https://wiki.debian.org/PaulWise

[toc] | [standalone]


Back to top | Article view | linux.debian.maint.python


csiph-web