python - 求救呀, Let’s Encrypt 證書(shū)續(xù)期碰到"No module named virtualenv"問(wèn)題?
問(wèn)題描述
折騰了好久了都, Let ’ s Encrypt 證書(shū)續(xù)期總是出現(xiàn)這個(gè) virtualenv 的問(wèn)題,我的VPS用的是Debian,求大蝦幫忙看看是哪里出問(wèn)題了? 具體提示如下:
……libffi-dev is already the newest version.python is already the newest version.python-dev is already the newest version.python-virtualenv is already the newest version.virtualenv is already the newest version.libssl-dev is already the newest version.openssl is already the newest version.0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.Creating virtual environment...Traceback (most recent call last): File '/usr/local/bin/virtualenv', line 7, in <module> from virtualenv import mainImportError: No module named virtualenv
到這里就停止了,造成 Let ’ s Encrypt 證書(shū)續(xù)期無(wú)法完成,求解?
問(wèn)題解答
回答1:pip install virtualenv
回答2:如果你是用centos,請(qǐng)嘗試:
yum install python-virtualenv
