由于pip问题无法卸载Numpy

时间:2020-03-23 15:31:51

标签: python numpy pip raspberry-pi installation

我正在尝试在Raspberry Pi 4计算机(Rasbian)上删除Numpy,但无法解决。输出时出现权限拒绝错误:

pip uninstall numpy

我尝试使用root特权,但遇到pip: command not found错误。

通常,问题似乎与pip安装有关,因此我尝试重新安装它。首先,当我用pip -V检查点的版本时,我得到了:

pip 20.0.2 from /home/pi/.local/lib/python3.7/site-packages/pip (python 3.7)

所以我想pip是为用户本地安装的,而不是root用户。我使用apt删除了所有内容:

sudo apt remove python-pip python3-pip python-numpy python3-numpy

但是当我发出pip -V时,控制台上仍显示pip版本和位置。

有什么想法可以找到调试的地方吗?

P.S。:。bashrc中没有什么特别的,只是export LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH

P.P.S:Python和Python”位于/ usr / bin /

P.P.P.S:我正在尝试卸载Numpy,因为导入时会收到以下错误消息:

ImportError: 

IMPORTANT: PLEASE READ THIS FOR ADVICE ON HOW TO SOLVE THIS ISSUE!

Importing the numpy c-extensions failed.
- Try uninstalling and reinstalling numpy.
- If you have already done that, then:
  1. Check that you expected to use Python3.7 from "/usr/bin/python3",
     and that you have no directories in your PATH or PYTHONPATH that can
     interfere with the Python and numpy version "1.18.2" you're trying to use.
  2. If (1) looks fine, you can open a new issue at
     https://github.com/numpy/numpy/issues.  Please include details on:
     - how you installed Python
     - how you installed numpy
     - your operating system
     - whether or not you have multiple versions of Python installed
     - if you built from source, your compiler versions and ideally a build log

- If you're working with a numpy git repository, try `git clean -xdf`
  (removes all files not under version control) and rebuild numpy.

Note: this error has many possible causes, so please don't comment on
an existing issue about this - open a new one instead.

Original error was: libf77blas.so.3: cannot open shared object file: No such file or directory

0 个答案:

没有答案