OS X卸载已安装的distutils项目

ria*_*asc 6 python macos

我在El Capitan,我想用pip安装numpy.但是我收到以下错误:

Detected a distutils installed project ('numpy') which we cannot uninstall. The metadata provided by distutils does not contain a list of files which have been installed, so pip does not know which files to uninstall.
Run Code Online (Sandbox Code Playgroud)

现有的numpy版本似乎是1.10.4,我尝试安装的版本是1.9.2,但我需要它.有没有办法用distutils卸载这个版本?或者至少有任何方式告诉pip安装了numpy?

Max*_*Max 7

由于没有关于已安装文件的元数据,我找到了手动删除文件的最简单方法.只需检索模块的目录(我称之为:检索python模块路径),并删除该文件夹以及随附的.egg-info文件.然后在没有--update标志的情况下安装所需的numpy版本.