Giter Club home page Giter Club logo

python-basic's Introduction

Python-basic

Esto es una serie de ejemplos que abarcan conocimientos basicos del lenguaje python.

Instalación

Trabajaremos con Python 3.8. Lo instalamos de la siguiente forma.

	brew install python

Cuando instalamos python en nuestro equipo este se ubicará en una ruta como esta:

	/usr/local/bin/python3

Tambien se crea una carpeta respectiva a la version que se ha instalado en el equipo.

	/Users/rapser/Library/Python/3.8

Existe una version previa instalada python 2 en el equipo en la siguiente ubicación.

	/usr/bin/python

Como usar

Si usamos python directamente estaremos usando la version 2.7. Si queremos utilizar la version recientemente instalada tenemos que agregar un 3 al final.

	$ python3 example.py
	$ pip3 --version

Alias

Si queremos cambiar la forma como llamamos a python en nuestro terminal. Tenemos que agregar un alias para que se pueda abrir la version 3.8 sin necesidad de agregar el numero 3 a python.

	alias python=python3.8

Finalmente, esto

	$ python example.py
	$ pip --version

python-basic's People

Contributors

rapser avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.