我正在docker映像中安装私有存储库。为此,我添加了一个部署令牌:
git+https://gitlab+deploy-token-123456:a1b2c3d4e5f6g7h8j9@gitlab.com/example_user/example_lib.git
在我安装在Dockerfile中的requirements.txt文件中
COPY requirements.txt /app/requirements.txt
RUN pip3 install -r /app/requirements.txt
但是,在python脚本本身中,该模块不可访问:如果我使用help('modules'))
打印出所有模块,则该模块未列出。如何使它可用?