Skip to content

Installation details

Felipe Michel edited this page Mar 12, 2021 · 4 revisions

Installation

Getting Started

Install a Python <= 3.8.x version using pyenv (recommended)

Windows

# With Chocolatey
choco install pyenv-win

Linux

# With pyenv-installer
curl https://pyenv.run | bash

MacOS

# With homebrew
brew update
brew install pyenv

Check if pyenv was installed sucessfully, and if not got any error in this project

# Warning: Check if not got any error
pyenv rehash

Install same Python version inside of the file .python-version

cd [project-folder]

# Loads local version from .python-version file
pyenv local

# PS: The 3.8.2 Python version is latest available in Pyenv for Windows. 
# On Unix systems, is possible install 3.8.8, for example.
pyenv install 3.8.2

# Check the installed version
python --version

Create a Virtual Environment to store the packages dependencies, and activate it

python -m venv venv

# Activate

# Windows
.\venv\Scripts\activate.bat

# Unix systems
./venv/Scripts/activate

Install all dependencies

pip install -r .\requirements-dev.txt

Configure Pycharm (Optional)

Define your interpreter in your preferable IDE (Visual Studio, VSCode...) from the virtual environment. In this case, we are using Pycharm as example:

  1. Click on File => Settings => Python Interpeter
  2. Add your interpreter from your virtual environment (recommended)
  3. If you prefer, download from the official https://www.python.org/downloads FTP and clicking on "New environment", as showed in the picture below:

pycharm-python-intepreter

For more configuration details, see: Pycharm: Python Integrated Tools

Clone this wiki locally