开源改变世界

无法卸载“numpy”。这是一个 distutils 安装的项目,因此我们无法准确确定哪些文件属于它,这只会导致部分卸载。 #1141

推推 grbl 3年前 (2023-02-02) 124次浏览
关闭
RyuuzakiJulio 打开了这个问题 2019 年 1 月 19 日 · 4条评论

评论

无法卸载“numpy”。这是一个 distutils 安装的项目,因此我们无法准确确定哪些文件属于它,这只会导致部分卸载。 #1141

尝试在 Mac 上安装。我确实已经安装了这个库“numpy”,但它想卸载它?我不明白。这是日志:

python -m pip install --upgrade bCNC                                                                                     [2:02:47]
Collecting bCNC
  Downloading https://files.pythonhosted.org/packages/51/64/f58378627ae712ddc0086293b4b832fe221de64fa105de4c476a4b0b0805/bCNC-0.9.14.52.tar.gz (1.2MB)
    100% |████████████████████████████████| 1.2MB 11.6MB/s 
Requirement already satisfied, skipping upgrade: pyserial<=3.0.1 in /Library/Python/2.7/site-packages (from bCNC) (3.0.1)
Collecting numpy>=1.12 (from bCNC)
  Downloading https://files.pythonhosted.org/packages/e4/97/167eb80dadcf2905b58d66ada6c128d3ec5e8595beb02457b881e7399be3/numpy-1.16.0-cp27-cp27m-macosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl (13.9MB)
    100% |████████████████████████████████| 13.9MB 2.4MB/s 
Collecting Pillow>=4.0 (from bCNC)
  Downloading https://files.pythonhosted.org/packages/7e/bb/d502ae951099ce9a5a20dec21e577f304b7706321f83205c5215ebc028cd/Pillow-5.4.1-cp27-cp27m-macosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl (3.7MB)
    100% |████████████████████████████████| 3.7MB 6.3MB/s 
Installing collected packages: numpy, Pillow, bCNC
  Found existing installation: numpy 1.8.0rc1
Cannot uninstall 'numpy'. It is a distutils installed project and thus we cannot accurately determine which files belong to it which would lead to only a partial uninstall.

无法卸载“numpy”。这是一个 distutils 安装的项目,因此我们无法准确确定哪些文件属于它,这只会导致部分卸载。 #1141
合作者

如果你试试这个怎么办?pip install --ignore-installed bCNC

无法卸载“numpy”。这是一个 distutils 安装的项目,因此我们无法准确确定哪些文件属于它,这只会导致部分卸载。 #1141 哈维 补充道 发布工程 bCNC 如何从开发人员到用户(以及返回)操作系统 Mac 标签 2019 年 1 月 19 日
无法卸载“numpy”。这是一个 distutils 安装的项目,因此我们无法准确确定哪些文件属于它,这只会导致部分卸载。 #1141

感谢你的回复。它最终与接近那个的东西一起工作。

sudo pip2 install –upgrade –ignore-installed –install-option ‘–install-data=/usr/local’ numpy

然后再次运行安装。

无法卸载“numpy”。这是一个 distutils 安装的项目,因此我们无法准确确定哪些文件属于它,这只会导致部分卸载。 #1141

为我工作 –sudo pip install --upgrade --ignore-installed --install-option '--install-data=/usr/local' numpy

无法卸载“numpy”。这是一个 distutils 安装的项目,因此我们无法准确确定哪些文件属于它,这只会导致部分卸载。 #1141
合作者
哈维 评论了 2019 年 11 月 1 日  

如果我理解正确的话。这基本上是由于您或您的系统之前通过使用 pip 以外的其他方式安装了 numpy。所以我想我会关闭这个问题。如果我可以在 bCNC 方面对此做些什么,请不要犹豫写评论,我会重新打开它,这样我们就可以修复它。