Quantcast
Viewing all articles
Browse latest Browse all 5986

VSCodium Not Recognizing Python Module in Virtual Environment

I activated the virtual environment of my project via the terminal and then opened the project path in VSCodium. Despite installing the Python library globally, VSCodium still doesn't recognize the module.

Additional information:

  • VSCodium version: 1.91.1 (release: 24193)
  • Python version: 3.12.3
  • Operating system: Ubuntu 24.04

screenshot

ModuleNotFoundError: No module named 'pandas'

  1. Activated the virtual environment: source venv/bin/activate
  2. Opened VSCodium: 'codium .'
  3. Installed the Python library globally: sudo apt install python3-pandas
  4. Also, tried to log out and reopen. But the issue isn't solved.

user: $ cd code_projects/gps_data_2107/

user: ~/code_projects/gps_data_2107$ source venv/bin/activate

(venv) user: ~/code_projects/gps_data_2107$ codium.

(venv) user: ~/code_projects/gps_data_2107$ sudo apt install python3-pandas

[sudo] password for user:

Reading package lists... Done

Building dependency tree... Done

Reading state information... Done

python3-pandas is already the newest version (2.1.4+dfsg-7). upgraded, newly installed, to remove and 1 not upgraded.

(venv) user: ~/code_projects/gps_data_2107$


Viewing all articles
Browse latest Browse all 5986

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>