开发者

remove item from python path

开发者 https://www.devze.com 2023-01-14 10:24 出处:网络
I have added a path to the system pythonpath on linux and now i\'ve broken it. How may I remove it ? [EDIT]

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

精彩评论

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