You are not logged in.

#1 2020-06-29 01:02:18

E3LDDfrK
Member
Registered: 2019-10-24
Posts: 62

[SOLVED] Conflicting files when installing python-numpy

Hi,

I recently tried to upgrade the package "python-numpy".
For some reason I got this error:

error: failed to commit transaction (conflicting files)
python-numpy: /usr/lib/python3.8/site-packages/numpy/compat/tests/__pycache__/__init__.cpython-38.pyc exists in filesystem
python-numpy: /usr/lib/python3.8/site-packages/numpy/core/tests/__pycache__/__init__.cpython-38.pyc exists in filesystem
python-numpy: /usr/lib/python3.8/site-packages/numpy/core/tests/__pycache__/_locales.cpython-38.pyc exists in filesystem
python-numpy: /usr/lib/python3.8/site-packages/numpy/distutils/tests/__pycache__/__init__.cpython-38.pyc exists in filesystem
python-numpy: /usr/lib/python3.8/site-packages/numpy/f2py/tests/__pycache__/__init__.cpython-38.pyc exists in filesystem
python-numpy: /usr/lib/python3.8/site-packages/numpy/f2py/tests/__pycache__/util.cpython-38.pyc exists in filesystem
python-numpy: /usr/lib/python3.8/site-packages/numpy/fft/tests/__pycache__/__init__.cpython-38.pyc exists in filesystem
python-numpy: /usr/lib/python3.8/site-packages/numpy/lib/tests/__pycache__/__init__.cpython-38.pyc exists in filesystem
python-numpy: /usr/lib/python3.8/site-packages/numpy/linalg/tests/__pycache__/__init__.cpython-38.pyc exists in filesystem
python-numpy: /usr/lib/python3.8/site-packages/numpy/ma/tests/__pycache__/__init__.cpython-38.pyc exists in filesystem
python-numpy: /usr/lib/python3.8/site-packages/numpy/matrixlib/tests/__pycache__/__init__.cpython-38.pyc exists in filesystem
python-numpy: /usr/lib/python3.8/site-packages/numpy/polynomial/tests/__pycache__/__init__.cpython-38.pyc exists in filesystem
python-numpy: /usr/lib/python3.8/site-packages/numpy/random/tests/__pycache__/__init__.cpython-38.pyc exists in filesystem
python-numpy: /usr/lib/python3.8/site-packages/numpy/testing/tests/__pycache__/__init__.cpython-38.pyc exists in filesystem
python-numpy: /usr/lib/python3.8/site-packages/numpy/tests/__pycache__/__init__.cpython-38.pyc exists in filesystem
Errors occurred, no packages were upgraded.

I'm not exactly sure what leads to this.
I tried AUR packages like python-numpy-openblas long time ago. Like more than 6 months ago. Perhaps I didn't uninstall them properly when using AUR helper pikaur?

How to diagnose what I may have done wrong?

Last edited by E3LDDfrK (2020-06-29 03:32:30)

Offline

#2 2020-06-29 01:32:02

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 21,657

Re: [SOLVED] Conflicting files when installing python-numpy

The problem is that you installed numpy or some other package using sudo pip, which is something you must never do. Remove the numpy directory and properly update. And don't use sudo pip again, if you must use pip, install them locally as your user with the --user option.

Offline

#3 2020-06-29 03:31:34

E3LDDfrK
Member
Registered: 2019-10-24
Posts: 62

Re: [SOLVED] Conflicting files when installing python-numpy

Got it. Thanks.

Offline

Board footer

Powered by FluxBB