[英]Pycharm - edit installed package
I have Pycharm 2017.2 connected to vagrant 1.9.7 I want to change some line in installed package.我将 Pycharm 2017.2 连接到 vagrant 1.9.7 我想更改已安装包中的某些行。
It is possible only by editing /lib/python/site-packages/ inside vagrant using vim or other cli editor.只有使用 vim 或其他 cli 编辑器在 vagrant 中编辑 /lib/python/site-packages/ 才有可能。 When i try to edit anything in Pycharm it asks for permission to edit non project file firstly, but changes don't cause server reload in debug mode.
当我尝试在 Pycharm 中编辑任何内容时,它首先要求编辑非项目文件的权限,但更改不会导致服务器在调试模式下重新加载。 Additionally, inserted code is not executed.
此外,不会执行插入的代码。 Is it possible to edit installed packages in Pycharm?
是否可以在 Pycharm 中编辑已安装的软件包?
EDIT: One answer shows how to do it by installing packages with -e option.编辑:一个答案显示了如何通过安装带有 -e 选项的软件包来做到这一点。
Is there any way to edit this packages when they are installed normally without -e option?在没有 -e 选项的情况下正常安装时,有没有办法编辑这些包?
With this solution you can edit & debug 3rd party packages in PyCharm.使用此解决方案,您可以在 PyCharm 中编辑和调试 3rd 方包。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.