curso-python
Permissions
sudo chown -R khristopher ~/plt-test-code
Instalación
sudo apt update
sudo apt -y upgrade
Verificar Instalación de python
python3 -V
nstalación de gestor de paquetes de dependencias
sudo apt install -y python3-pip
Verificar Instalación del gestor
pip3 -V
Dependencias en entorno profesional
apt install -y build-essential libssl-dev libffi-dev python3-dev
extensiones vscode
wsl & python
generar ungit ignore git ignore
to run the game u should follow the instructions
cd game
python3 main.py
where is locate python and pip on linux these commands get the ubication of python and pip directory on linux
which python3
which pip3
install virtual env
apt install -y python3-venv
create a virtual enviroument
python3 -m venv <name enviroument>
for example
python3 -m venv env
start virtual enviroument
source env/bin/activate
close virtual enviroument
deactivate
create a requeriments file/ file dependency
pip freeze > requeriments.txt
install all dependencies of requeriments file
pip install -r requeriments.txt
build the image
docker-compose build
si cuando ejecutas docker-compose build te causa un error parecido a este
puedes solucionarlo con esto
export LD_LIBRARY_PATH=/usr/local/lib
run the build to the container
docker-compose up -d
visualiza los contenedores que esten corriendo
docker-compose ps