2017-04-12 180 views
0

我在Ubuntu VM框(沒有顯示)上運行Conda環境。我正在嘗試使用PyCharm,但由於某種原因,PyCharm Python控制檯不會正確導入庫。例如。 import pandas給出:PyCharm:配置Python控制檯

Backend Qt5Agg is interactive backend. Turning interactive mode on. 
QXcbConnection: Could not connect to display bash: line 1: 12547 
Aborted     (core dumped) env "PYTHONUNBUFFERED"="1" 
"PYTHONPATH"="/home/local/US/me/max:/home/local/US/me/.pycharm_helpers/pydev" 
"PYCHARM_HOSTED"="1" "IPYTHONENABLE"="True" 
"PYTHONDONTWRITEBYTECODE"="1" "JETBRAINS_REMOTE_RUN"="1" 
"PYTHONIOENCODING"="UTF-8" 

/home/local/US/me/conda/envs/research/bin/python2.7 
/home/local/US/me/.pycharm_helpers/pydev/pydevconsole.py 0 0 Process 
finished with exit code 134 

我試圖卸載並重新安裝pandasconda,一切並沒有什麼修復此。另外,當我從PyCharm的終端運行Python或IPython時,一切都很完美。我可以根據需要導入所有包,而不會出錯。

回答

相關問題