-
Notifications
You must be signed in to change notification settings - Fork 6
Installation details
Felipe Michel edited this page Mar 12, 2021
·
4 revisions
Install a Python <= 3.8.x version using pyenv (recommended)
# With Chocolatey
choco install pyenv-win
# With pyenv-installer
curl https://pyenv.run | bash
# 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
Define your interpreter in your preferable IDE (Visual Studio, VSCode...) from the virtual environment. In this case, we are using Pycharm as example:
- Click on
File
=>Settings
=>Python Interpeter
- Add your interpreter from your virtual environment (recommended)
- If you prefer, download from the official https://www.python.org/downloads FTP and clicking on
"New environment"
, as showed in the picture below:
For more configuration details, see: Pycharm: Python Integrated Tools