gwillem / magento-malware-scanner

Scanner, signatures and the largest collection of Magento malware
GNU General Public License v3.0
679 stars 153 forks source link

pip vs yum python #188

Open magenx opened 6 years ago

magenx commented 6 years ago

you need to check if python packages already installed and managed with yum or apt, instead of re-installing them with pip. this will break other python projects.

gwillem commented 6 years ago

Indeed! Want to make a PR for the docs?

magenx commented 6 years ago

probably create local env?

gwillem commented 6 years ago

That's the best method, which I also use locally. However, it takes quite a few steps to set up which are also different for several Linux distro's. So to keep the instructions easy, I have omitted that so far.

But feel free to submit good instructions for Centos?

dvershinin commented 4 years ago

Using pip-safe (uses virtualenvs seamlessly) in CentOS 7 and 8:

sudo yum install https://extras.getpagespeed.com/release-el$(rpm -E %{rhel})-latest.rpm
sudo yum install pip-safe

Then:

sudo pip-safe --system install mwscan

This installs symlink into /usr/local/bin/mwscan, so simply typing mwscan works fine (of course, provided that /usr/local/bin dir is in the PATH.

Alternatively, to install for current user only:

pip-safe --system install mwscan

This installs symlink over to ~/.local/bin/mwscan, so typing mwscan will work only for that user.