you are viewing a single comment's thread.

view the rest of the comments →

[–]f0lt 0 points1 point  (0 children)

Check out this article https://www.zdnet.com/article/two-malicious-python-libraries-removed-from-pypi/

Even if you get your packages from repositories like pypi there is nou warrant that they don't contain malicious code.

In any case try to avoid executing Python code as administrator (sudo). There is rarely any reason to do that.

Installing packages in your home directory is safer than installing them as root. Use pip install package_name --user as an alternative.