Closed lamyergeier closed 9 months ago
Are you running pipdeptree
in a virtual environment? There has been problems associated with it discussed in #130. If so, you could try the workaround they have there.
No I am using in default bash without any virtual environments. But I have installed several packages using pipx that uses virtual environments. So is that the reason? I guess pipx should not affect this as it installs every package in its own virtual environment. isn't it?
$ pipx list
venvs are in /mnt/Data/.local/pipx/venvs
apps are exposed on your $PATH at /mnt/Data/.local/bin
manual pages are exposed at /mnt/Data/.local/share/man
package argostranslate 1.9.1, installed using Python 3.11.6
- argos-translate
- argos-translate-gui
- argospm
- libretranslate
- ltmanage
package baca 0.1.16, installed using Python 3.11.3
- baca
package backgroundremover 0.2.6, installed using Python 3.11.3
- backgroundremover
package beets 1.6.0, installed using Python 3.11.6
- beet
- flask
package betteradbsync 1.4.0, installed using Python 3.11.6
- adbsync
package borgbackup 2.0.0b7, installed using Python 3.11.7
- borg
- borgfs
package borgmatic 1.8.8, installed using Python 3.12.1
- borgmatic
- generate-borgmatic-config
- upgrade-borgmatic-config
- validate-borgmatic-config
package brotab 1.4.2, installed using Python 3.11.3
- brotab
- bt
- bt_mediator
package deskew 1.5.1, installed using Python 3.11.7
- deskew
package easyocr 1.7.1, installed using Python 3.12.1
- easyocr
package git-cola 4.5.0, installed using Python 3.11.5
- cola
- git-cola
- git-cola-sequence-editor
- git-dag
package gnome-extensions-cli 0.10.1, installed using Python 3.11.3
- gext
- gnome-extensions-cli
package gtts 2.5.1, installed using Python 3.11.6
- gtts-cli
package johnnydep 1.20.4, installed using Python 3.11.7
- johnnydep
- pipper
package jrnl 4.1, installed using Python 3.11.3
- jrnl
package jupyterlab 4.1.1, installed using Python 3.11.3
- jlpm
- jupyter-lab
- jupyter-labextension
- jupyter-labhub
package jupytex 0.0.3, installed using Python 3.11.3
- jupytex
package jupytext 1.16.1, installed using Python 3.11.6
- jupytext
- jupytext-config
package lastversion 3.5.0, installed using Python 3.11.6
- lastversion
package ocrmypdf 16.1.1, installed using Python 3.11.3
- ocrmypdf
package pandoc-eqnos 2.5.0, installed using Python 3.11.3
- pandoc-eqnos
package pandoc-fignos 2.4.0, installed using Python 3.11.3
- pandoc-fignos
package pandoc-tablenos 2.3.0, installed using Python 3.11.3
- pandoc-tablenos
package par2deep 1.10.1, installed using Python 3.11.7
- par2deep
- par2deep-cli
package pdf-tocgen 1.3.4, installed using Python 3.11.3
- pdftocgen
- pdftocio
- pdfxmeta
package pipdeptree 2.14.0, installed using Python 3.11.6
- pipdeptree
package piper-tts 1.2.0, installed using Python 3.11.7
- piper
package pylint 3.0.3, installed using Python 3.11.3
- epylint
- pylint
- pylint-config
- pyreverse
- symilar
package termgraph 0.5.3, installed using Python 3.11.3
- termgraph
package visidata 3.0.2, installed using Python 3.11.3
- vd
- vd2to3.vdx
- vgit
- visidata
- man1/vd.1
- man1/visidata.1
package vorta 0.9.1, installed using Python 3.12.1
- vorta
package yamllint 1.35.1, installed using Python 3.11.3
- yamllint
package yapf 0.40.2, installed using Python 3.11.3
- yapf
- yapf-diff
package yark 1.2.10, installed using Python 3.11.3
- yark
I never used pipx before, but from tinkering with it for a little bit I think you maybe correct. It looks like pip does not know of any packages installed by pipx (I assume because it does not look at pipx's "venvs" path (e.g. /usr/local/py-utils/venvs).
I also see you installed pipdeptree using pipx, and when I ran it I gotten a similar output to yours:
$ /usr/local/py-utils/bin/pipdeptree # Using this pipx path because I have pipdeptree installed locally
pip==24.0
pipdeptree==2.15.1
setuptools==56.0.0
From reading the docs, it seems that it creates a virtual environment for every package. We do use pip's internal API to fetch all the packages from the environment, so my best guess (as you mentioned) is that pipdpetree is in its own virtual environment and it does not have access to the global packages.
I have several installed packages as follows but pipdeptree just show 4 ! What should I do to show the dependency tree for all global installed packages?