Re: Python libraries problem with F34

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On ma, 05 heinä 2021, Frederic Muller wrote:
On 7/5/21 4:01 PM, Felix Schwarz wrote:
Hi Fred,

your code works for me without printing any warnings.

Am 05.07.21 um 10:01 schrieb Frederic Muller:> I install all my libraries using pip. The important thing is that you never use pip to install anything into Fedora's site-packages /usr/lib64/python3.9/site-packages/ . That can (and will) cause a lot of trouble. Use "dnf" only to install stuff into your system site-packages directory. Use virtualenvs (or similar mechanisms) to install your own libraries with pip.
Ok I didn't know that. I however install them for my user. So the (full) error message is actually:
Warning (from warnings module):
  File "/home/fred/.local/lib/python3.9/site-packages/requests/__init__.py", line 89

I guess it's the same as /usr/lib64/ then?

If you want to use pip, make sure you are doing so within a virtual
environment, e.g. with venv or similar constructs. This ensures whatever
was installed is self-consistent with regards to the source where it
came from.



--
/ Alexander Bokovoy
Sr. Principal Software Engineer
Security / Identity Management Engineering
Red Hat Limited, Finland
_______________________________________________
devel mailing list -- devel@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to devel-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/devel@xxxxxxxxxxxxxxxxxxxxxxx
Do not reply to spam on the list, report it: https://pagure.io/fedora-infrastructure




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Users]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]

  Powered by Linux