You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
My CircleCI Docker Image is here: circleci/python:2.7-jessie-node-browser
Error Log
#!/bin/bash -eo pipefail
sls deploy
Serverless: Installing requirements of requirements.txt in .serverless...
Error --------------------------------------------------
/usr/bin/python2.7: No module named pip
For debugging logs, run again after setting the "SLS_DEBUG=*" environment variable.
Get Support --------------------------------------------
Docs: docs.serverless.com
Bugs: github.com/serverless/serverless/issues
Forums: forum.serverless.com
Chat: gitter.im/serverless/serverless
Your Environment Information -----------------------------
OS: linux
Node Version: 8.11.1
Serverless Version: 1.26.1
Exited with code 1
.circleci/config.yml
# Javascript Node CircleCI 2.0 configuration file## Check https://circleci.com/docs/2.0/language-javascript/ for more details#version: 2jobs:
build:
docker:
# specify the version you desire here
- image: yoohoogun114/python-node-serverless# Specify service dependencies here if necessary# CircleCI maintains a library of pre-built images# documented at https://circleci.com/docs/2.0/circleci-images/# - image: circleci/mongo:3.4.4working_directory: ~/reposteps:
- checkout
- run:
working_directory: ~/repo/crawl-corename: install dependenciescommand: sudo pip install -r requirements.txt# run Python tests!
- run:
working_directory: ~/repo/crawl-corename: run testscommand: python crawl/test_crawl.py# run Install
- run:
working_directory: ~/repo/crawl-corename: sls plugin installcommand: sls plugin install -n serverless-python-requirements
- run:
working_directory: ~/repo/crawl-corename: sls deploycommand: sls deploy
It seems that your image's default python&pip are version 3.6, thus why python2.7 doesn't have pip. This plugin uses python2.7 -m pip (or whatever your runtime or pythonBin is set to) to ensure the correct version of python is used to install your dependencies.
To fix it, you need to also install pip for python2.7 in your docker image. IE, add this to your Dockerfile:
serverless-python-requirements
Plugin Does not works onCircleCI
Fail Log is Here: https://circleci.com/gh/philographer/crawl-google/35
No module named pip
My CircleCI Docker Image is here: circleci/python:2.7-jessie-node-browser
Error Log
.circleci/config.yml
serverless.yml
Well Note now i'm using
Why
/usr/bin/python2.7: No module named pip
Error?If I Try pip --version then it could print version
The text was updated successfully, but these errors were encountered: