1

I am trying to follow the aws-lambda tutorial at

Sample Amazon S3 Function Code - AWS Lambda

It contains lines:

...
    1 Create a virtual environment.
    $ virtualenv ~/shrink_venv
    $ source ~/shrink_venv/bin/activate

2 Install libraries in the virtual environment
    $ pip install Pillow
    $ pip install boto3

3 Add the contents of lib and lib64 site-packages to your .zip file.
    $ cd $VIRTUAL_ENV/lib/python3.7/site-packages
    $ zip -r ~/CreateThumbnail.zip .
    ...

These all appear to be done on the command line. How does one get these utilities and find the documentation for them?

I am on Windows 10 running on the command line with Anaconda.

I've also looked in cygwin.

1

1 Answer 1

2

I ran these commands in Windows 10 create a virtual environment with python 3

pip3 install virtualenv
python -m virtualenv path\to\location\virtualenv-name
cd path\to\location\virtualenv-name
.\Scripts\activate

pip3 install virtualenv #Install virtualenv module for python3

python -m virtualenv path\to\location\virtualenv-name #Creates the virtual environment in the given path. For example E:\test\testing, E:\test is the path and testing is the virtual environment name,

Check this question for the command line equivalent of source command - Batch equivalent of "source" on Windows: how to run a Python script from a virtualenv

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.