我安装pyspark
运行火花作业。然后作业运行成功,因此我锁定了 pipfile。但是一旦锁定成功,我想再次运行我的工作,它一直要求我安装缺失的模块:
pipenv install pyspark
pytest src/tests/integration/domain/contracts/test_spark_volumes.py # work OK
pipenv lock. # Successfully created virtual environment!
pytest src/tests/integration/domain/contracts/test_spark_volumes.py
ImportError while loading conftest '/Users/floriandejax/PycharmProjects/pythonProject/octoquant/src/tests/conftest.py'.
src/tests/conftest.py:4: in <module>
from . import factories, fixtures
src/tests/factories/__init__.py:2: in <module>
from .datetimes import * # noqa
src/tests/factories/datetimes.py:3: in <module>
import pytz
E ModuleNotFoundError: No module named 'pytz'