删除在开发模式下安装的python模块 [英] Removing python module installed in develop mode

查看:51
本文介绍了删除在开发模式下安装的python模块的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用 setuptools 打包 python 并测试我在开发模式下安装的模块.即

Hi I was trying the python packaging using setuptools and to test I installed the module in develop mode. i.e

python setup.py develop

这已将我的模块目录添加到 sys.path.现在我想移除这个模块有什么办法吗?

This has added my modules directory to sys.path. Now I want to remove the module is there any way to do this?

提前致谢

推荐答案

使用 --uninstall-u 选项来develop,即:

Use the --uninstall or -u option to develop, i.e:

python setup.py develop --uninstall

这将从 easy-install.pth 中删除它并删除 .egg-link.它唯一不做的就是删除脚本(还).

This will remove it from easy-install.pth and delete the .egg-link. The only thing it doesn't do is delete scripts (yet).

这篇关于删除在开发模式下安装的python模块的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆