You are not logged in.

#1 2014-03-02 04:16:35

hellolj
Member
From: Oz
Registered: 2014-01-16
Posts: 25

[SOLVED] Cannot install KDE with python-numpy pre-installed?

Hi, all

I am with xfce currently and though of tring KDE. However when I  tried to install KDE it turns that there are confilicts between 'kde' and 'python-numpy':

:: Proceed with installation? [Y/n] 
(318/318) checking keys in keyring                               [####################################] 100%
(318/318) checking package integrity                             [####################################] 100%
(318/318) loading package files                                  [####################################] 100%
(318/318) checking for file conflicts                            [####################################] 100%
error: failed to commit transaction (conflicting files)
python2-numpy: /usr/bin/f2py2 exists in filesystem
python2-numpy: /usr/lib/python2.7/site-packages/numpy-1.8.0-py2.7.egg-info exists in filesystem
python2-numpy: /usr/lib/python2.7/site-packages/numpy/__config__.py exists in filesystem
python2-numpy: /usr/lib/python2.7/site-packages/numpy/__config__.pyc exists in filesystem
python2-numpy: /usr/lib/python2.7/site-packages/numpy/__init__.py exists in filesystem
python2-numpy: /usr/lib/python2.7/site-packages/numpy/__init__.pyc exists in filesystem
python2-numpy: /usr/lib/python2.7/site-packages/numpy/_import_tools.py exists in filesystem
python2-numpy: /usr/lib/python2.7/site-packages/numpy/_import_tools.pyc exists in filesystem

,..

Can anyone help please?

thanks,

ps:
python-numpy was installed via "pip install numpy" instead of "pacman -S python-numpy". Could this cause any problem?

Last edited by hellolj (2014-03-02 06:15:30)

Offline

#2 2014-03-02 04:17:30

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: [SOLVED] Cannot install KDE with python-numpy pre-installed?


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#3 2014-03-02 04:30:33

hellolj
Member
From: Oz
Registered: 2014-01-16
Posts: 25

Re: [SOLVED] Cannot install KDE with python-numpy pre-installed?

Thanks for the prompt reply.

I installed my python-numpy via "pip install numpy" instead of "pacman -S python-numpy". So it this that causes the problem?

By that, does it mean I should always stick to using "pacman" instead of "pip install"?

Last edited by hellolj (2014-03-02 04:30:48)

Offline

#4 2014-03-02 04:38:25

circleface
Member
Registered: 2012-05-26
Posts: 639

Re: [SOLVED] Cannot install KDE with python-numpy pre-installed?

hellolj wrote:

By that, does it mean I should always stick to using "pacman" instead of "pip install"?

Generally it is less pain to stick to pacman only.  Using anything else would mean pacman cannot know what packages certain files belong to, similar to what you ran into here.

Offline

#5 2014-03-02 04:39:03

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: [SOLVED] Cannot install KDE with python-numpy pre-installed?

I don't know how pip works, but for ruby I only install gems locally (into ~/.ruby) and use chruby to manage them: that means I don't have conflicts with pacman along these lines.
The nearest thing I can find for python is this: https://wiki.archlinux.org/index.php/Python_VirtualEnv


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#6 2014-03-02 06:14:38

hellolj
Member
From: Oz
Registered: 2014-01-16
Posts: 25

Re: [SOLVED] Cannot install KDE with python-numpy pre-installed?

jasonwryan wrote:

I don't know how pip works, but for ruby I only install gems locally (into ~/.ruby) and use chruby to manage them: that means I don't have conflicts with pacman along these lines.
The nearest thing I can find for python is this: https://wiki.archlinux.org/index.php/Python_VirtualEnv

This looks nice. May I should install my python packages in my home directory.

Offline

#7 2014-03-02 06:15:08

hellolj
Member
From: Oz
Registered: 2014-01-16
Posts: 25

Re: [SOLVED] Cannot install KDE with python-numpy pre-installed?

circleface wrote:
hellolj wrote:

By that, does it mean I should always stick to using "pacman" instead of "pip install"?

Generally it is less pain to stick to pacman only.  Using anything else would mean pacman cannot know what packages certain files belong to, similar to what you ran into here.

Got it. Seems I have to reinstall my python packages from scratches again.

Thanks to all the help.

SOLVED.

Offline

#8 2014-03-02 13:14:57

Mr.Elendig
#archlinux@freenode channel op
From: The intertubes
Registered: 2004-11-07
Posts: 4,097

Re: [SOLVED] Cannot install KDE with python-numpy pre-installed?

Never ever run pip as root, no matter which distro you are on. It is horribly insecure and it makes a mess of the filesystem and will conflict with system packages.


Evil #archlinux@libera.chat channel op and general support dude.
. files on github, Screenshots, Random pics and the rest

Offline

Board footer

Powered by FluxBB