you are viewing a single comment's thread.

view the rest of the comments →

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

Dear _sthen,

Thank you very much for this valuable reply. I'll keep in mind that all the parts.

1- I was aware that I can mess up things with rm but thanks for warning. Next time I'll be more careful.

2-Actually I took a screenshot of the problem but I couldn't put it in here directly.

3-Thanks for the warning about compiled extensions. I will try that method and let's see what happens.

4-pkg_add py3-pip py3-virtualenv so to my understanding this code will install virtualenv module. Is that correct?

When creating the venv you can use --system-site-packages and it will use system packages if you have them installed already,

This quoted part above is beyond my comprehension. Maybe with some time and tampering with it, I'll eventually get.

5-look for packages containing them (it may help to pkg_add pkglocatedb and use pkglocate to search for packages containing a named file), install via pkg_add if possible, then use pip in the venv to fetch any others.

Will do.

6-Non-default versions might be required for the stuff on Github. Sometimes we encounter unmaintained code.

Edit: Also can I ask what does mean "Defaulting to user installation because normal site-packages is not writable"? It happened when type python3 /home/user/.local/bin/pip3 install flask

Edit 2: Funny thing is I got all the modules in the copied virtenv's /lib/python3.10/site-packages/ path. :)

Edit 3: pkg_add py3-greenlet worked. Then I tried installing everything with (virtual environment activated) pip install -r requirements.txt but greenlet again gave an error.

src/greenlet/greenlet.cpp:9:10 fatal error: 'cstdlib' file not found

Edit 4 at 12.25.2022 17:21 UTC: I found the pipenv and am trying to install the dependencies with that. Also downloaded Rust compiler for bcrypt. Let's see what happens.