Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pip vs yum python #188

Open
magenx opened this issue Mar 6, 2018 · 4 comments
Open

pip vs yum python #188

magenx opened this issue Mar 6, 2018 · 4 comments

Comments

@magenx
Copy link

magenx commented Mar 6, 2018

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
Copy link
Owner

gwillem commented Mar 6, 2018

Indeed! Want to make a PR for the docs?

@magenx
Copy link
Author

magenx commented Mar 6, 2018

probably create local env?

@gwillem
Copy link
Owner

gwillem commented Mar 6, 2018

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
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants