最近在虚拟机上执行yum命令一直报错:Could not parse metalink https://mirrors.fedoraproject.org/metalink?repo=epel-7&arch=i386 error was No repomd fileError: File /var/cache/yum/i386/6/epel/metalink.xml does not existyum源是没问题的 按照网上的说法也换了个163的源,yum clean all.yum makeca…
centos在yum install报错:Another app is currently holding the yum lock,这个问题可能是很多的新手经常遇到问题,之前也有人问我,包括本人在刚刚学习centos的时候也遇到过. Another app is currently holding the yum lock,这个意思很明显就是说,有另外一个应用在使用yum,被占用锁定了,所以咋办呢,直接结束掉呗. 可以通过强制关掉yum进程: # rm -f /var/run/yum.pid…
同时安装Python2与Python3,安装第三方包,老是报错提示Fatal error in launcher: Unable to create process using '"',那可能是环境变量有冲突了. 解决办法: 是在环境变量Path中上下移调整两个"PythonX/Scripts"位置,使之位于前两位(哪个版本常用就靠前): 是使用另一种命令python3 -m pip install requests来安装.…
python2中的unicode()函数在python3中会报错:NameError: name 'unicode' is not defined There is no such name in Python 3, no. You are trying to run Python 2 code in Python 3. In Python 3, unicode has been renamed to str. 翻译过来就是:Python 3中没有这样的名字,没有. 您正在尝试在Python 3…