Prepare the development environment for Python on AWS Cloud9 (pip install & time change)

table of contents

  1. Overview
  2. About pip install
  3. Time change in the environment on Cloud9

1. Overview

In "Create an AWS Cloud9 development environment on an Amazon EC2 instance" I explained how to build Cloud9 environment, but I will explain how to prepare a more detailed python environment. This time, I will explain how to install the module for python (pip install) and how to change the time environment on the Cloud9 side.

  1. pip install When using python, I want to put the Module I want to use with pip install etc. I will summarize how to do it.

2-1. Create a Cloud9 environment

If you have not created a Cloud9 environment, please refer to Create an AWS Cloud9 development environment on an Amazon EC2 instance.

2-2. Launch Terminal

Click "+" on the tab, click "New Terminal" ezgif-4-6ea813b63d5b.gif

2-3. Confirmation of pip

terminal


pip -V

Make sure pip is already installed

Screen Shot 2020-07-10 at 01.21.33.png

2-4. pip install

** In Cloud9 environment, pip install must be executed with administrator privileges Since the sudo password is not set in the Cloud9 environment, it can be executed as it is **

terminal


sudo pip install <module you want to install>

ezgif-4-f4037b95e4f.gif

Since the version of pip itself is also old, upgrade pip

terminal


sudo pip install --upgrade pip

ezgif-4-250a68aa6d92.gif

3. Time change in the environment on Cloud9

3-1. Check the time

terminal


date

The Default setting of Cloud9 seems to be UTC.

Screen Shot 2020-07-10 at 01.36.03.png

3-2. Change to JST (Japan time)

terminal


sudo sed -i -e 's/ZONE="UTC"/ZONE="Japan"/g' /etc/sysconfig/clock
sudo ln -sf /usr/share/zoneinfo/Japan /etc/localtime
Screen Shot 2020-07-10 at 01.38.11.png

Confirm that the time has changed to JST (Japan time)

terminal


date
Screen Shot 2020-07-10 at 01.39.02.png

Summary

Even though it is a Cloud9 (IDE) environment, pip is installed by default so that developers can easily set the environment, so you can prepare the environment as usual without worrying about details.

Recommended Posts

Prepare the development environment for Python on AWS Cloud9 (pip install & time change)
Prepare Python development environment on Ubuntu
Install Python development environment on Windows 10
Make it easy to install the ROS2 development environment with pip install on Python venv
Prepare the development environment for keyhac for Mac
Introduction to Python Let's prepare the development environment
Change the default reference repository for pip install
I tried Python on Mac for the first time.
I tried python on heroku for the first time
Install Ubuntu 20.04 with GUI and prepare the development environment
python memo (for myself): About the development environment virtualenv
[For organizing] Python development environment
Build an Ubuntu python development environment on Google Cloud Platform
Install python2.7 on windows 32bit environment
Install Python on Windows + pip + virtualenv
Prepare your first Python development environment
Python development environment options for May 2020
Python development environment construction on macOS
Emacs settings for Python development environment
See python for the first time
Install confluent-kafka for Python on Ubuntu
Checking the NAOqi Python development environment
Prepare Python development environment with Atom
Prepare the development environment with anyenv
Prepare the environment for Atom for Pythonista
I set the python operating environment on OSX Yosemite (pyenv + pip)
Create an AWS Cloud9 development environment on your Amazon EC2 instance
Continuation ・ Notes on preparing the Python development environment on Mac OS X
Install pip in Serverless Framework and AWS Lambda with Python environment
Build Python environment on Ubuntu (when pip is not the default)
Try using FireBase Cloud Firestore in Python for the time being
Prepare Python development environment for each project in Windows environment (VSCode + virtualEnvWrapper + Pylint)
Python development environment for macOS using venv 2016
I easily built an operating environment for Python3 + Tornado on AWS EC2.
Create a Python development environment locally at the fastest speed (for beginners)
Solution for pip install error [Python] [Mac]
(For myself) Flask_AWS_1 (Install PHP, MySQL, phpMyAdmin, Python in AWS virtual environment)
Python Master RTA for the time being
Steps to install Python environment on Ubuntu
How to prepare Python development environment [Mac]
scipy stumbles with pip install on python 2.7.8
MongoDB for the first time in Python
Install the python module with pip on a server without root privileges
Install python on xserver to use pip
Prepare the environment of Chainer on EC2 spot instance with AWS Lambda
Build a Python + OpenCV environment on Cloud9
The strongest Python development environment PyCharm's recommendation
Building a Python development environment for AI development
Install Python 3.8, Pip 3.8 on EC2 (Amazon Linux 2)
The strongest Python integrated development environment PyCharm
Prepare the execution environment of Python3 with Docker
[2020 version] How to install Python3 on AWS EC2
Install python package in personal environment on Ubuntu
Use logger with Python for the time being
Run yolov4 "for the time being" on windows
Python development on Ubuntu on AWS EC2 (using JupyterLab)
I tried python programming for the first time.
Install the python package in an offline environment
Python: Prepare a serializer for the class instance:
Build a Python development environment on your Mac
Run pip install on MacOS Python 3.7 or later