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.
If you have not created a Cloud9 environment, please refer to Create an AWS Cloud9 development environment on an Amazon EC2 instance.
Click "+" on the tab, click "New Terminal"
terminal
pip -V
Make sure pip is already installed
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>
Since the version of pip itself is also old, upgrade pip
terminal
sudo pip install --upgrade pip
terminal
date
The Default setting of Cloud9 seems to be UTC.
terminal
sudo sed -i -e 's/ZONE="UTC"/ZONE="Japan"/g' /etc/sysconfig/clock
sudo ln -sf /usr/share/zoneinfo/Japan /etc/localtime
Confirm that the time has changed to JST (Japan time)
terminal
date
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