Skip to content

fdmartins/brew-virtualenv-python3.6-jupyter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 

Repository files navigation

fdmartins

Criando Ambiente Virtual Python3.6 e macOS Catalina. Estamos focando na versão 3.6.5_1 pois, até inicio de 2020, é a melhor versão compativel com opencv, keras, tensorflow e outras bibliotecas de machine learning.

Verifique as versões atuais

brew info python

Instalar Python 3.6.5

Caso o comando acime não tenha a versão 3.6.5, instale executando:

brew unlink python

brew install --ignore-dependencies https://raw.githubusercontent.com/Homebrew/homebrew-core/f2a764ef944b1080be64bd88dca9a1d80130c558/Formula/python.rb

brew switch python 3.6.5_1

execute o comando abaixo para ver se a versão do python3 é a que você precisa:

python3 --version

python 3.6.5_1

To install virtualenv via pip run:

pip3 install virtualenv

Se aparece erros como:'SSLError("Can't connect to HTTPS URL because the SSL module is not available.", sera necessario executar o comando abaixo e repetir todo processo de insalação acima.

brew update && brew upgrade
brew uninstall --ignore-dependencies openssl
brew install https://github.com/tebelorg/Tump/releases/download/v1.0.0/openssl.rb
Usage

Creation of virtualenv. Aqui usamos o nome machinelearning.

virtualenv -p python3 ~/.virtualenvs/machinelearning

Activate the virtualenv:

workon machinelearning

Verique se a versão do python dentro do ambiente virtual esta correta.

python --version

Para sair do virtualenv:

deactivate

Instalar Jupyter Notebook

pip install jupyterlab
Executar Jupyter Notebook
jupyter notebook

About

Criando Ambiente Virtual Python3.6 e macOS Catalina

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published