python - 卸载从github克隆安装的python库

标签 python git theano

你能告诉我如何卸载我通过克隆 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::

的 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/

相关文章:

python - 使用 cornice 的简单例份验证和 ACL

Python子进程模块将路径作为字符串发送

git - 如何从远程 Git 存储库中 pull 并覆盖本地存储库中的更改?

python - 如果我们使用索引矩阵,是否需要在 Theano 中使用 flatten 和 reshape?

python - Theano 简单线性回归在 CPU 而不是 GPU 上运行

theano - 如何为具有 3 个 channel 的输入图像创建 layer0 输入

python - 如何在python中下载登录表单后面网页的大媒体链接?

python - 如何将共享的 x 标签和 y 标签添加到使用 pandas plot 创建的图中

git - git 如何确保相同操作/数据的提交 SHA key 仍然是唯一的?

git - 如何排除 "git diff-index"中的文件