You are not logged in.
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
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
Got it. Thanks.
Offline