Last active
March 29, 2018 15:40
-
-
Save tporto/ae0e24f0e6244ce2752e7887a9409615 to your computer and use it in GitHub Desktop.
Instalar Virtualenv, Django no Ubuntu/eOS
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo apt-get install python3-dev python3-pip python3-setuptools | |
sudo pip3 install virtualenv | |
#Vamos criar nosso virtualenv | |
cd | |
virtualenv nome-que-deseja | |
#Agora vamos entrar dentro do ambiente virtual que criamos e vamos ativá-lo | |
cd nome-que-escolheu/ | |
source bin/activate | |
#Instalar o django, Pillow | |
pip3 install django | |
pip3 install Pillow | |
#Opcional | |
#Configurar o virtualenv na IDE Pycharm | |
# -> Crie um arquivo chamado .pycharmrc no diretório home, com o seguinte conteúdo: | |
source ~/.bashrc | |
source ~/pycharmvenv/bin/activate | |
#No pycharm vá em File -> Settings -> Tools -> Terminal e adicione a seguinte linha no campo Shell path: | |
/bin/bash --rcfile ~/.pycharmrc |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment