我用的是Ubuntu12.04。最近我不能再安装任何东西了。我总是收到以下错误消息:
Setting up linux-image-3.2.0-34-generic (3.2.0-34.53) ...
Running depmod.
update-initramfs: deferring update (hook will be called later)
Use of chdir('') or chdir(undef) as chdir() is deprecated at /var/lib/dpkg/inf/linux-image-3.2.0-34-generic.post
由于这问题,我卸载了Eclipse。然后,我尝试在我的Linux终端上运行java程序。所以我从一个小代码开始
public class Myth{
public static void main(String[]args){
System.out.println("Hii There");
}
}
并通过给出命令javac Myth.java和java Myth来运行它,但是在给出输出时,它会给出以下错误
Error: A JNI error has occurred, please check your installation and try again
Except
我正在尝试在我正在编写的Python应用程序中使用库。然而,easy_install和手动安装似乎都失败了。有什么建议吗?
Python 2.6.2 (r262:71600, Aug 5 2009, 10:31:21)
[GCC 4.1.2 20080704 (Red Hat 4.1.2-44)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import gevent
Tracebac
在Windows上迭代一个文件列表时,我得到了一个FileNotFound错误。
我得到的具体错误如下:
FileNotFoundError: File b'fileName.csv' does not exist
在我的代码中,我首先要求输入文件所在的位置,并使用os生成一个列表(尽管我也尝试过glob):
directory = input('In what directory are your files located?')
fileList = [s for s in os.listdir(directory) if s.endswith('.