[TriLUG] Python help?

Jos Purvis via TriLUG trilug at trilug.org
Tue Oct 8 14:41:30 EDT 2024


The most common issue for this that I've seen is that pip is busy installing the plugin to a different version of Python than the script is calling. For instance, the script may be calling /usr/local/bin/python (which is Python 3.11) while /usr/local/bin/pip is actually an alias to /usr/local/bin/pip3, which is tied to a Python 3.12 install.

I would check by comparing 'pip --version' and 'python --version' to see if they're pointing at the same Python install.

On Tue, Oct 8, 2024, at 14:29, Brian McCullough via TriLUG wrote:
> Greetings to the Oracle!
>
> I am just working on re-learning Python and am running into an "include"
> issue.
>
> I created and activated a virtual environment and did:
>
> pip install psycopg
>
> which claimed to be successfull.
>
> I then added "include psycopg" to a test script that I have, previously
> running, and get the infamous:
>
> ModuleNotFoundError: No module named 'psycopg'
>
> In the same environment ( next line ), I did:
>
> $pip install psycopg
>  Requirement already satisfied: psycopg in
>  ./lib/python3.11/site-packages (3.2.3)
>  Requirement already satisfied: typing-extensions>=4.6 in
>  ./lib/python3.11/site-packages (from psycopg) (4.12.2)
>
>
> Any bright ideas?
>
>
>
> Thank you,
> Brian
>
> -- 
> This message was sent to: purvis at melete.org <purvis at melete.org>
> To unsubscribe, send a blank message to trilug-leave at trilug.org from 
> that address.
> TriLUG mailing list : https://www.trilug.org/mailman/listinfo/trilug
> Unsubscribe or edit options on the web	: 
> https://www.trilug.org/mailman/options/trilug/purvis%40melete.org
> Welcome to TriLUG: https://trilug.org/welcome


More information about the TriLUG mailing list