pypa / pipx

Install and Run Python Applications in Isolated Environments
https://pipx.pypa.io
MIT License
10.08k stars 407 forks source link

ModuleNotFoundError: No module named 'dtw' in VSCodium on Ubuntu 24.04 LTS #1484

Closed BeNavon closed 1 month ago

BeNavon commented 1 month ago

I am encountering an issue with VSCodium on Ubuntu 24.04 LTS. After installing the dtw-python module using pipx, I am unable to import the module in my Python scripts. The installation process was completed successfully, but attempting to import the module results in a ModuleNotFoundError.

Output of pipx install dtw-python:

installed package dtw-python 1.5.1, installed using Python 3.12.3
These apps are now globally available
  - dtw
done!
$ pipx list
venvs are in /home/ben/.local/share/pipx/venvs
apps are exposed on your $PATH at /home/user/.local/bin
manual pages are exposed at /home/user/.local/share/man
   package dtw-python 1.5.1, installed using Python 3.12.3
    - dtw

Actual behavior:

----> 1 from dtw import *
      2 get_ipython().run_line_magic('pinfo', 'dtw')
      3 help(DTW)

ModuleNotFoundError: No module named 'dtw'

Additional information: VSCodium Version: 1.91.1 (release: 24193) Python Version: 3.12.3 pipx Version: 1.4.3 dtw-python Version: 1.5.1 Operating System: Ubuntu 24.04 LTS

Please provide guidance on how to resolve this issue. Thank you!

dukecat0 commented 1 month ago

Hi, pipx is only used for installing command line applications only. This means that you can only access it with command dtw in your terminal. If you wish to call it as a library, please create a virtual environment using venv or virtualenv.