{"id":19594245,"url":"https://github.com/julioaranajr/01_python_pythonenv_labs","last_synced_at":"2025-02-26T14:20:46.332Z","repository":{"id":93961866,"uuid":"542974162","full_name":"julioaranajr/01_Python_PythonEnv_Labs","owner":"julioaranajr","description":"# Learning Python  - Config Python Environment and Examples","archived":false,"fork":false,"pushed_at":"2022-10-07T09:09:56.000Z","size":464,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-09T07:12:58.215Z","etag":null,"topics":["examples","how-to","pyenv","python-labs","python3"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/julioaranajr.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-09-29T07:14:08.000Z","updated_at":"2024-05-11T23:55:21.000Z","dependencies_parsed_at":"2023-03-13T17:08:55.543Z","dependency_job_id":null,"html_url":"https://github.com/julioaranajr/01_Python_PythonEnv_Labs","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/julioaranajr%2F01_Python_PythonEnv_Labs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/julioaranajr%2F01_Python_PythonEnv_Labs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/julioaranajr%2F01_Python_PythonEnv_Labs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/julioaranajr%2F01_Python_PythonEnv_Labs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/julioaranajr","download_url":"https://codeload.github.com/julioaranajr/01_Python_PythonEnv_Labs/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240867750,"owners_count":19870469,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["examples","how-to","pyenv","python-labs","python3"],"created_at":"2024-11-11T08:42:45.705Z","updated_at":"2025-02-26T14:20:46.246Z","avatar_url":"https://github.com/julioaranajr.png","language":"Python","readme":"# Learning Python\n\n## Prepare pyenv\n\n```sh\nPYTHON_VERSION=\"3.10.5\"\n\nbrew install pyenv\npyenv install $PYTHON_VERSION\npyenv global $PYTHON_VERSION\n```\n\nOpen your `.zshrc` file and add the lines below at the end of the file.\n\n```sh\ncode ~/.zshrc\n```\n\n**or**, use `vi`\n\n```sh\nvi ~/.zshrc\n```\n\nCopy and paste the following lines:\n\n```\n# Python - pyenv\nexport PYENV_ROOT=\"$HOME/.pyenv\"\nexport PATH=\"$PYENV_ROOT/bin:$PATH\"\neval \"$(pyenv init --path)\"\nif command -v pyenv 1\u003e/dev/null 2\u003e\u00261; then\n  eval \"$(pyenv init -)\"\nfi\n```\n\nYou should now close your terminal `exit` and re-open it.\n\nCheck python and pip\n\n```sh\nwhich python\nwhich pip\n```\n\n## Some Utilities of pyenv\n\nList of existing version installed on your mac:\n```sh\npyenv versions\n```\n\nSet a new version of python on your mac:\n```sh\npyenv global $PYTHON_VERSION\n```\n\n## Your First Python Program\n\nCreate a new file\n\n```sh\ncode hello.py\n```\n\nEdit your file with visual studio and write this line:\n\n```py\nprint(\"Hello World\")\n```\n\nRun the script **hello.py** in your terminal\n\n```sh\npython hello.py\n```\n## Running \n![Screenshot](https://github.com/julioaranajr/01_Python_PyEnv_App/blob/main/hello-world-py.png)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjulioaranajr%2F01_python_pythonenv_labs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjulioaranajr%2F01_python_pythonenv_labs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjulioaranajr%2F01_python_pythonenv_labs/lists"}