Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Configurando e usando um ambiente de desenvolvi...
Search
Sponsored
·
Ship Features Fearlessly
Turn features on and off without deploys. Used by thousands of Ruby developers.
→
Hugo Maia Vieira
November 12, 2011
Programming
90
2
Share
Configurando e usando um ambiente de desenvolvimento Python
Hugo Maia Vieira
November 12, 2011
More Decks by Hugo Maia Vieira
See All by Hugo Maia Vieira
Introdução ao Shell Script (versão estendida)
hugomaiavieira
0
47
Introdução ao git
hugomaiavieira
1
160
Como empreender quando se ainda é um estudante
hugomaiavieira
0
46
Introdução ao Shell Script
hugomaiavieira
2
250
Coding Dojo
hugomaiavieira
1
91
Licenças: Entendendo e Escolhendo
hugomaiavieira
1
47
Other Decks in Programming
See All in Programming
AI時代のエンジニアリングの原則 / Engineering Principles in the AI Era
haru860
0
920
セグメントとターゲットを意識するプロポーザルの書き方 〜採択の鍵は、誰に刺すかを見極めるマーケティング戦略にある〜
m3m0r7
PRO
0
710
Making the RBS Parser Faster
soutaro
0
640
実用!Hono RPC2026
yodaka
2
280
GitHubCopilotCLIをはじめよう.pdf
htkym
0
300
The Less-Told Story of Socket Timeouts
coe401_
3
860
Agentic Elixir
whatyouhide
0
430
Claude CodeでETLジョブ実行テストを自動化してみた
yoshikikasama
0
1.1k
エラー処理の温故知新 / history of error handling technic
ryotanakaya
7
1.8k
PCOVから学ぶコードカバレッジ #phpcon_odawara
o0h
PRO
0
290
Import assertionsが消えた日~ECMAScriptの仕様はどう決まり、なぜ覆るのか~
bicstone
2
160
CDK Deployのための ”反響定位”
watany
5
910
Featured
See All Featured
Applied NLP in the Age of Generative AI
inesmontani
PRO
4
2.2k
RailsConf & Balkan Ruby 2019: The Past, Present, and Future of Rails at GitHub
eileencodes
141
35k
What the history of the web can teach us about the future of AI
inesmontani
PRO
1
540
Information Architects: The Missing Link in Design Systems
soysaucechin
0
910
Leveraging Curiosity to Care for An Aging Population
cassininazir
1
230
Introduction to Domain-Driven Design and Collaborative software design
baasie
1
760
GraphQLとの向き合い方2022年版
quramy
50
15k
Responsive Adventures: Dirty Tricks From The Dark Corners of Front-End
smashingmag
254
22k
Building Flexible Design Systems
yeseniaperezcruz
330
40k
The State of eCommerce SEO: How to Win in Today's Products SERPs - #SEOweek
aleyda
2
10k
The Illustrated Guide to Node.js - THAT Conference 2024
reverentgeek
1
340
Visual Storytelling: How to be a Superhuman Communicator
reverentgeek
2
520
Transcript
Configurando e usando um ambiente de desenvolvimento Hugo Maia Vieira
@hugomaiavieira Maio de 2010 Esta obra é licenciada sob uma licença Creative Commons
Distribute
$ wget http://python-distribute.org/distribute_setup.py $ sudo python distribute_setup.py Instalando
pip
$ sudo easy_install pip Instalando
$ pip install pacote_qualquer $ pip install -e git+http://github.com/hugobr/should_dls
$ pip install -U pacote_qualquer
$ pip uninstall pacote_qualquer
$ pip search alguma_coisa
$ pip freeze PyYAML==3.09 figleaf==0.6.1 freshen==0.2 ipython==0.10 nose==0.11.3 pinocchio==0.2 pyparsing==1.5.2
should-dsl==1.2.1 specloud==0.3.1 termcolor==0.1.2 wsgiref==0.1.2
Virtualenv
$ sudo pip install virtualenv Instalando
Virtualenvwrapper
$ sudo pip install virtualenvwrapper $ mkdir $HOME/.virtualenvs $ echo
"export WORKON_HOME=\$HOME/.virtualenvs" >> $HOME/.bashrc $ echo "source /usr/local/bin/virtualenvwrapper.sh" >> $HOME/.bashrc $ source $HOME/.bashrc Instalando
$ mkvirtualenv --no-site-packages meu_ambiente
$ rmvirtualenv meu_ambiente
$ cpvirtualenv existente cópia
$ workon meu_ambiente trabalho_icg ambiente2 $ workon ambiente2 (ambiente2)$
(ambiente2)$ (ambiente2)$ deactivate $
Virutalenvwrapper Hooks
$ echo 'pip install -U pip' >> $WORKON_HOME/postmkvirtualenv $ echo
'pip install ipython nose' >> $WORKON_HOME/postmkvirtualenv postmkvirtualenv
Referências [1] http://packages.python.org/distribute/ [2] http://pip.openplans.org/ [3] http://pypi.python.org/pypi/virtualenv [4] http://www.doughellmann.com/docs/virtualenvwrapper/ [5]
http://hltbra.blogspot.com/2010/05/gerenciando-ambientes-virtuais-e.html