Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
python subdirectories
#2
dist-packages is a Debian-specific convention that is also present in its derivatives, like Ubuntu.
Debian Python Wiki:
Quote:dist-packages instead of site-packages.
Third party Python software installed from Debian packages goes into dist-packages, not site-packages.
This is to reduce conflict between the system Python, and any from-source Python build you might install manually.
Means that if you manually install Python from source,it uses the site-packages directory.
site-packages or dist-packages is the place Python install 3-party modules/package.

Testing on Mint 19.
I use pyenv it will use site-packages folder.
pip -V
pip 19.0.3 from /home/tom/.pyenv/versions/3.7.3/lib/python3.7/site-packages/pip (python 3.7)

# Going back to original Python version(3.6.5) on Mint 19
$ pyenv local system
$ pip -V
pip 18.0 from /home/tom/.local/lib/python3.6/site-packages/pip (python 3.6)
So Mint 19 use site-packages.

Test Ubuntu 14 i run on Cloud9,here use dist-packages.
snippsat:~/workspace/bs4_test $ pip -V
pip 9.0.1 from /usr/local/lib/python3.5/dist-packages (python 3.5)

As note so has Windows always used site-packages,as folder for 3-party installed modules/package.
Reply


Messages In This Thread
python subdirectories - by Skaperen - Apr-17-2019, 06:52 AM
RE: python subdirectories - by snippsat - Apr-17-2019, 11:18 AM
RE: python subdirectories - by Skaperen - Jul-13-2019, 02:30 AM
RE: python subdirectories - by snippsat - Jul-13-2019, 12:13 PM
RE: python subdirectories - by Gribouillis - Jul-13-2019, 01:14 PM
RE: python subdirectories - by Skaperen - Jul-13-2019, 07:40 PM
RE: python subdirectories - by Gribouillis - Jul-13-2019, 07:54 PM
RE: python subdirectories - by Skaperen - Jul-13-2019, 10:22 PM
RE: python subdirectories - by Gribouillis - Jul-13-2019, 10:44 PM

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020