开发者

Copied python egg no longer works

开发者 https://www.devze.com 2023-01-24 01:28 出处:网络
I needed to make a change to a 3rd party library, so I edited the files in the egg (which is not zipped). The egg lives in site-packages in a virtualenv. Everything works fine on my dev machine, but w

I needed to make a change to a 3rd party library, so I edited the files in the egg (which is not zipped). The egg lives in site-packages in a virtualenv. Everything works fine on my dev machine, but when I copied the egg to another machine, the module can longer be found to import.

I'm sure I went about this the wrong way, but I'm hoping there's开发者_如何学编程 a way to fix it.


A quick fix to your problem should be by adding the full path of the egg to a .pth file which should exist in the sys-path (in your case site-packages).

0

精彩评论

暂无评论...
验证码 换一张
取 消