【发布时间】:2016-08-14 15:46:37
【问题描述】:
我正在尝试在 OS X 10.10.5 上卸载 numpy。
这是我迄今为止尝试过的:
用brew卸载:
brew uninstall numpy
Error: No such keg: /usr/local/Cellar/numpy
用pip卸载:
sudo pip uninstall numpy
Cannot uninstall requirement numpy, not installed
以下Python 库目录没有Numpy 文件:
/usr/local/lib/python2.7/site-packages/
/Library/Python/2.7/site-packages/
/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/
打印包路径并没有给出实际路径:
In [1]: import numpy; numpy.__path__
In [2]: numpy.__path__
Out[2]: ['numpy']
In [3]: numpy.__file__
Out[3]: 'numpy/__init__.pyc'
安装的Numpy版本是1.8.0rc1,我没有使用虚拟环境。
【问题讨论】:
-
显示几个输出: $ which python; $ 回声 $PYTHONPATH; $ ls -l dir_where_you_ran_ipython
标签: macos python-2.7 numpy