我正在尝试运行一个 python 脚本来生成热图和聚类树状图。但是我收到一条错误消息说:
import: unable to open X server @ error/import.c/ImportImageCommand/361
我是 linux 和 python 的新手。所以我无法完全弄清楚为什么会发生错误。有谁知道如何解决这个问题?
我的操作系统是 linux fedora。
谢谢。
不知道为什么我得到这个。我意识到这一定是一个常见问题,但无法弄清楚。
#!/bin/bash
#Checks word count of each text file directory and deletes if less than certain amount of words
#Lastly, displays number of files delter
count = 0 #Set counter to 0
limit = 2000
for file in *.txt
do
words = wc -w > $file
if words < $limit
rm $file
count = $count + 1
end
end
print "Number of files deleted: $count"
Run Code Online (Sandbox Code Playgroud)