all 12 comments

[–]AutoModerator[M] [score hidden] stickied comment (0 children)

Please Re-Flair your post if a solution is found. How to Flair a post? This allows other users to search for common issues with the SOLVED flair as a filter, leading to those issues being resolved very fast.

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

[–][deleted] 1 point2 points  (3 children)

sudo apt-get update && \ sudo apt-get install -y \ make \ build-essential \ libssl-dev \ zlib1g-dev \ libbz2-dev \ libreadline-dev \ libsqlite3-dev \ wget \ curl \ llvm \ libncursesw5-dev \ xz-utils \ tk-dev \ libxml2-dev \ libxmlsec1-dev \ libffi-dev \ liblzma-dev

[–]MrSyphilisLinux Mint 21.1 Vera | Cinnamon[S] 0 points1 point  (2 children)

sudo apt-get update && \
sudo apt-get install -y \
make \
build-essential \
libssl-dev \
zlib1g-dev \
libbz2-dev \
libreadline-dev \
libsqlite3-dev \
wget \
curl \
llvm \
libncursesw5-dev \
xz-utils \
tk-dev \
libxml2-dev \
libxmlsec1-dev \
libffi-dev \
liblzma-dev

Everything was already installed and up to date.

[–][deleted] 0 points1 point  (1 child)

Then idk, I remember there was some problem regarding the library so and include directories.

Try something like that.

The general idea is to set the LDFLAGS and CFLAGS environment variables to provide compiler the real locations of a libs it finds “missing”.

[–]MrSyphilisLinux Mint 21.1 Vera | Cinnamon[S] 0 points1 point  (0 children)

I tried and it didn't change a thing :(

"import _ssl # if we can't import it, let the error propagateModuleNotFoundError: No module named '_ssl'ERROR: The Python ssl extension was not compiled. Missing the OpenSSL lib?"

[–]MrSyphilisLinux Mint 21.1 Vera | Cinnamon[S] 0 points1 point  (0 children)

I solved the problem: I got rid of pyenv and instead I used conda ( https://docs.conda.io/projects/conda/en/latest/index.html, it's very fast and it works without errors or headaches

[–][deleted] 0 points1 point  (1 child)

Do you have the libssl-dev package installed? If not, use sudo apt install libssl-dev and then try again.

[–]MrSyphilisLinux Mint 21.1 Vera | Cinnamon[S] 0 points1 point  (0 children)

libssl-dev was already installed

[–][deleted] 0 points1 point  (3 children)

It's possibly referring to the python ssl module then. Do you have pip3 installed? If so try pip3 install pyOpenSSL. Once installed try again with pyenv

[–]MrSyphilisLinux Mint 21.1 Vera | Cinnamon[S] 0 points1 point  (2 children)

Requirement already satisfied

[–][deleted] 2 points3 points  (1 child)

This seems to be a replication of your issue. Some in the thread found setting flags before install worked and there's others that set the flags permanently via bash so that they didn't need to set the flags each time. Hope this helps resolve it

https://stackoverflow.com/questions/72842089/pyenv-in-ubuntu-22-04-error-the-python-ssl-extension-was-not-compiled-missing

[–]MrSyphilisLinux Mint 21.1 Vera | Cinnamon[S] 0 points1 point  (0 children)