2016-05-17 125 views
3

我有使用Pycharm導入熊貓的問題,但沒有從命令行導入熊貓問題,我認爲這可能是由於我在我的Mac上安裝了多個Python環境導致的。想知道如何檢查使用Python環境的命令行 - 以便我可以根據命令行所使用的相同環境來更改我的Pycharm環境。熊貓導入使用Pycharm錯誤

順便說一句,更喜歡使用Python 2.7。

發佈屏幕快照以方便使用。

enter image description here

enter image description here

enter image description here

編輯-1,

後我PyCharm版本和翻譯屏幕快照。

enter image description here enter image description here

編輯-2,

我只有在文件菜單默認設置中,沒有一項被稱爲設置。

enter image description here

回答

1

你必須設置你想在控制檯和運行配置在pycharm使用正確的Python版本。

控制檯配置 enter image description here

運行配置 enter image description here enter image description here

+0

感謝su79eu7k,投票了。如何檢查我的命令行使用的是哪個版本的Python? –

+1

順便說一句,如何讓你張貼第一個設置屏幕?它在PyCharm或命令行控制檯(我正在使用iTerm作爲命令行控制檯)嗎? –

+1

@LinMa嘗試'python -V'在命令行檢查你的python版本。並且關於第一個設置屏幕截圖,「文件>設置>構建,執行,部署>控制檯> Python控制檯」,或者您可以在「設置」窗體上輸入搜索詞。 – su79eu7k