我尝试执行marathon-lb.py,但出现以下错误:
Traceback (most recent call last):
File "./marathon_lb.py", line 46, in <module>
import dateutil.parser
ImportError: No module named 'dateutil'
我刚使用apt和pip安装了Python。 我已经运行了:
sudo apt-get install python-pip
pip install python-dateutil
我使用以下命令编译脚本:python -m py_compile script.py
Python应用程序:
from operator import attrgetter
from shutil import move
from tempfile import mkstemp
from wsgiref.simple_server import make_server
from six.moves.urllib import parse
from itertools import cycle
from common import *
from config import *
from lrucache import *
from utils import *
import argparse
import json
import logging
import os
import os.path
import stat
import re
import requests
import shlex
import subprocess
import sys
import time
import dateutil.parser
pip install python-dateutil
吗? - Bubble Hackerdateutil
模块。确认后我会更新... - Bubble Hackersudo apt-get install virtualenv
,但是包没有找到。 - Asier Gomez