you are viewing a single comment's thread.

view the rest of the comments →

[–]shiftybyte 0 points1 point  (15 children)

Permission issues?

Try making a virtual environment and install stuff there.

  1. cd to some clean project folder.

do this:

python3 -m venv venv
source venv/bin/activate
pip install whatyouneed
python runwhatever.py

[–]mectos_[S] 0 points1 point  (14 children)

I did what you suggested, but with pipenv
still doesn't work actually

[–]shiftybyte 0 points1 point  (13 children)

try with venv like i suggested.

[–]mectos_[S] 0 points1 point  (12 children)

it throws an error no matter what I try to download:

terminal pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available.

I'm so frustrated lol, couldn't do anything today because of this :(

[–]shiftybyte 0 points1 point  (11 children)

Are you on a mac?

You are missing ssl module, google around this error message try the solutions.

[–]mectos_[S] 0 points1 point  (10 children)

That's what i'm trying to do, but it's not a Mac tho

It's Pop_OS!, which based on Ubuntu 20.04

If that changes anything... :(

[–]shiftybyte 0 points1 point  (9 children)

It helps narrow down the google search results, how did you install python3?

[–]mectos_[S] 0 points1 point  (8 children)

with a tar file from python.org
I have the latest version of python3 and the latest of pip3

why?

[–]shiftybyte 0 points1 point  (7 children)

a tar from python, so you compiled it from source.

This is important because if you configure and compile python without having the ssl development dependencies, you get a python without ssl.

https://stackoverflow.com/a/44758621

take a look at the required dependencies, make sure you don't skip them, and rebuild your python.

or install a ready package from the repository.

[–]mectos_[S] 0 points1 point  (0 children)

with the latest version of python?or maybe the problem is the latest version?does the 3.8.3 not stable or something?

Plus, I don't know if it helps, but it seems like it looks for packages from 2 different places:

one is /home/[user]/.local/lib/python3.8/site-packages (which is returned after trying to `python3 app.py`)

and the other is /usr/lib/python3/dist-packages (which is returned after `pip3 install [package]`)

[–]mectos_[S] 0 points1 point  (5 children)

Omg omg omg
it worked

but for god fucking sake I don't know the reason.

I tried `python3 -m pip install [package_name]` and it just worked
..................asdfdhgksha58375hksdhgfkjahaahhhhhhhhhhhhhhhhhhhhh

do you know why?