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
Wrong permissions when installing from source on Linux #3450
Comments
If this is a bug, I suspect it is in setup tools, not on our end, but giving all read permissions seems a tad sketchy to do by default. I would also strongly discourage installing anything via sudo into folders controlled by your systems package manager in an ad-hoc manner (if you really want to install it system-wide wrap it in the packaging system for your distro). Either use the |
OK, thanks for the reply. I just came across this issue trying to run some tests. Normally I don't mess around with the system directories without the help of pip. |
AFIK most linux distributions install packages under the package manager into /usr/ while packages in /usr/local are not under control of the package manager. |
@tacaswell, @jowr is using /usr/local correctly; as @jenshnielsen notes, the package manager works only with /usr. There is nothing at all wrong with using sudo to install to /usr/local, and everything in /usr/local/lib/pythonx.x/dist-packages should be world-readable. |
Fair enough. I spent a lot of time working on systems where I didn't have root, got in the habit of doing all my python dev work in my home directory, and never sorted out the system-wide stuff. I have also seen too many SO questions that go like "I ran a zillion sudo commands and now my system is broken" so my knee jerk reaction to sudo is "don't". |
Hi all,
I might have found a little bug or I might miss something obvious.
I installed my initial version via pip
sudo pip install matplotlib
, which gave me the oldpython -c 'import matplotlib; print matplotlib.__version__'; 1.4.0
. I made asudo pip uninstall matplotlib
, cloned the git repository and ranrm -rf build; python setup.py clean; python setup.py build; sudo python setup.py install
and ended up with an unusable installation:Changing the permissions with
sudo chmod -R a+r /usr/local/lib/python2.7/dist-packages/matplotlib-1.5.x-py2.7-linux-i686.egg
solved that issue yieldingpython -c 'import matplotlib; print matplotlib.__version__'; 1.5.x
.Could this be included in the installation process?
I am running Linux - 3.0.0-32-generic-pae,
python --version
yields Python 2.7.2+ and numpy is 1.8.2.The text was updated successfully, but these errors were encountered: