[英]How do I exit from pipenv in pycharm?
要在窗口的 cmd 中退出我的 pipenv,我需要輸入exit
。 deactivate
有效,但它並沒有真正從 pipenv 退出。 相反,它只是停用了由 pipenv 創建的 virtualenv。 但是,在 pycham>terminal 中,當我輸入exit
時,終端選項卡只是關閉而不退出 pipenv,因此無法正確退出 pipenv。 有解決方法嗎? 謝謝你。
我真的不知道你是否仍然需要答案,但可能還有其他人需要......所以我仍然會分享對我有用的東西。
NOTE: I used backbox linux (an ubuntu based hacking distro) for this and not windows, however, since pycharm is an IDE, it should still have the same settings
鍵入deactivate
只能暫時起作用...當您打開一個新終端時,virtualenv 仍然會存在,所以我決定完全刪除 python 解釋器。
For this, you'll need to go to the top left corner of your pycharm IDE where it says 'File', select settings (or you could just press Ctrl
Alt
s
), go to 'Project <your_project_name>', you'll請參閱 2 個選項:
點擊 Python 解釋器和 go 到下拉菜單和 select No interpreter
或者,您可以只查看 pycharm 的右下角,就在事件日志下方,您應該會看到類似Pipenv (your_project_name) [Python 3.xx]
的內容。
單擊它並 select Interpreter settings
,它仍會將您帶到設置位置...單擊下拉列表和 select 無解釋器。
而已! 祝你好運!
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.