你能告诉我如何卸载我通过克隆 Theano Git 存储库开发的 Theano 吗?
我有:
$pip freeze | grep Theano
-e git://github.com/Theano/Theano.git@18319b8f426e99fa209c4910af7208c0d51c41a6#egg=Theano
sudo pip uninstall Theano
返回无法卸载“Theano”。找不到要卸载的文件。
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-链接文件。
假设您使用名为 testtheano
::
$ 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/