Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
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
100
2
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Configurando e usando um ambiente de desenvolvimento Python
Hugo Maia Vieira
November 12, 2011
Transcript
22 slides
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
More Decks by Hugo Maia Vieira
See All by Hugo Maia Vieira
Introdução ao Shell Script (versão estendida)
hugomaiavieira
0
54
Introdução ao git
hugomaiavieira
1
180
Como empreender quando se ainda é um estudante
hugomaiavieira
0
64
Introdução ao Shell Script
hugomaiavieira
2
260
Coding Dojo
hugomaiavieira
1
100
Licenças: Entendendo e Escolhendo
hugomaiavieira
1
62
Other Decks in Programming
See All in Programming
[DroidKnights 2026] Workflow AX 적용기 — 자동 정책 정리부터 E2E까지
dayeon
0
130
地方こそサーバーレス — 10年続けた、顔が見えるチームで確かな基盤を / Serverless Matters Most in Regional Areas — 10 Years of Building Reliable Foundations with Close-Knit Teams
seike460
PRO
2
520
imagewebp()の向こう側: WebPはなぜ JPEG・PNGより軽いのか
yuzneri
0
160
数行の変更でDockerビルドを最大91%高速化~GitLab CIの実行基盤を社内40リポジトリに展開するまで~
picopico
3
1.1k
テストだけで見つかる? Rubyでつくるメソッド発掘器
izawa
0
160
眠らない開発チームの作り方
biwakonbu
0
160
LLM 101: Exploring LLMs, Starting with Tokens.
dalinaum
0
120
将来の標準フォーマッター?ktfmtを深堀る
t45k
1
250
느린 네트워크와 저사양 디바이스 사용자를 위한 웹뷰 로딩 시간 개선기
kmkim
1
270
AIが実装を担う時代の「技術設計」と「チームマネジメント」
kamina_zzz
2
470
JavaScriptはシングルバイナリの夢を見るか / Does JavaScript Dream of a Single Binary?
ssssota
0
940
疎結合とは何か?ソフトウェア設計における結合バランスについて考える #phpcon_niigata
kajitack
2
430
Featured
See All Featured
What does AI have to do with Human Rights?
axbom
PRO
1
2.5k
Fight the Zombie Pattern Library - RWD Summit 2016
marcelosomers
234
18k
Primal Persuasion: How to Engage the Brain for Learning That Lasts
tmiket
0
530
Building a Scalable Design System with Sketch
lauravandoore
464
34k
Leveraging Curiosity to Care for An Aging Population
cassininazir
1
580
10 Git Anti Patterns You Should be Aware of
lemiorhan
PRO
659
62k
Imperfection Machines: The Place of Print at Facebook
scottboms
270
14k
The Curse of the Amulet
leimatthew05
4
17k
GraphQLとの向き合い方2022年版
quramy
50
15k
Prompt Engineering for Job Search
mfonobong
0
610
Writing Fast Ruby
sferik
630
63k
Navigating Team Friction
lara
192
16k