开发者

remove item from python path

I have added a path to the system pythonpath on linux and now i've broken it. How may I remove it ?

[EDIT] Finally i solved it remov开发者_C百科ing the script that added that path + installing something to rebuild the path.


not directly programming related but....

'print' your pythonpath to a file, edit the file and export that as your new pythonpath

[edit] I stand corrected, see Banang answer below [/edit]


I don't think there is a concept of Windows-like environment variables in Linux; they are defined in various scripts (e.g. .bashrc). You can edit those in any text editor.

What exactly did you to do "break" your PYTHONPATH?

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜