簡體   English   中英

在 ubuntu 中打開 spyder

[英]Open spyder in ubuntu

我想在 ubuntu 中打開 spyder(Python IDE)。

通常我會在 shell 中編寫“spyder”,它會打開 spyder IDE。

現在,當我在 shell 中編寫 spyder 時,它只是換行,而沒有任何反應(類似於按“輸入”)。

--- 我如何找回我的間諜?

編輯 - 我沒有收到任何錯誤,它只是跳到下一行。

如果鍵入“spyder”不起作用,您可能想嘗試鍵入“spyder3”以防安裝spyder3版本。 以下是我在Ubuntu系統中的作用。

要通過pip安裝spyder(我的python版本是3.6.2),我用過:

 pip install spyder

然后,我不得不安裝另一個包:

 pip install PyQtWebEngine

最后,要打開Spyder窗口,我輸入了我的終端:

 spyder3

你可能只需要更新spyder。

如果你不使用anaconda:

pip install --update spyder

或者,如果你在anaconda:

conda update spyder

我和你的問題一樣,在命令行中也有一條消息說:

Spyder is already running. If you want to open a new 
instance, please pass to it the --new-instance option

上面的更新允許我從命令行打開spyder。

我也有這個問題,並在askubuntu論壇上發現了這篇文章 它建議使用sudo apt-get purge spyder刪除任何錯誤的配置文件,然后使用sudo apt-get install spyder重新sudo apt-get install spyder 我發現它有效,並且spyder在文本編輯器中重新打開了我以前的文件。

在 Ubuntu 中,只需轉到您的,

 cd home/<your account> 

然后轉到 .spyder2 文件夾

cd spyder2 

應該帶你到那里

在終端中,在終端中輸入lals不顯示隱藏文件)並使用,

rm -f spyder.lock

刪除

要在 basn 控制台中啟動 spyder,只需輸入:

spyder .

在 bash 控制台中。

安裝 spyder 的一種簡單方法是:

sudo apt install spyder

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM