您能告诉我如何卸载通过克隆Theano Git存储库开发的Theano吗?

我有:

$pip freeze | grep Theano
-e git://github.com/Theano/Theano.git@18319b8f426e99fa209c4910af7208c0d51c41a6#egg=Theano


sudo pip uninstall Theano返回Can't uninstall 'Theano'. No files were found to uninstall.

sudo pip install Theano给出:

Requirement already satisfied (use --upgrade to upgrade): theano in ./Theano
Requirement already satisfied (use --upgrade to upgrade): numpy>=1.7.1 in /usr/local/lib/python2.7/dist-packages/numpy-1.12.0.dev0+1436ec3-py2.7-linux-x86_64.egg (from theano)
Requirement already satisfied (use --upgrade to upgrade): scipy>=0.11 in /usr/local/lib/python2.7/dist-packages (from theano)
Requirement already satisfied (use --upgrade to upgrade): six>=1.9.0 in /usr/local/lib/python2.7/dist-packages (from theano)

最佳答案

您可能不在安装Theano的目录中。

我想,您有以下选择:

$ pip uninstall Theano/


这对我有用(通过moto测试,因为安装Theano需要一些编译的软件包,这些软件包
在我的机器上失败)。

另一个选择是cd到Theano目录并从此处取消安装::

$ cd Theano
$ pip uninstall theano


如果这些都不起作用,最后的选择是通过删除
Theano.egg-link文件。

假设您正在使用名为testtheano:的virtualenv:

$ cd ~/.virtualenvs/testtheano/lib/python2.7/site-packages
$ rm Theano.egg-link


如果它安装了一些脚本,也将它们删除:

$ cd ~/.virtualenvs/testtheano/bin
$ rm <all-the-theano-scripts>

关于python - 卸载从github克隆安装的python库,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/35095403/

10-14 16:08