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
Hugo Maia Vieira
November 12, 2011
Programming
93
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
More Decks by Hugo Maia Vieira
See All by Hugo Maia Vieira
Introdução ao Shell Script (versão estendida)
hugomaiavieira
0
49
Introdução ao git
hugomaiavieira
1
170
Como empreender quando se ainda é um estudante
hugomaiavieira
0
55
Introdução ao Shell Script
hugomaiavieira
2
250
Coding Dojo
hugomaiavieira
1
94
Licenças: Entendendo e Escolhendo
hugomaiavieira
1
54
Other Decks in Programming
See All in Programming
生成AIで帳票OCRが「簡単に」作れる時代になった?
kon_shou
0
850
PostgreSQL 18で考えるUUID主キー
kazuhiro1982
0
470
<title><a id="</title>君はこのHTMLをパースできるか"></a></title> #雑LT_study
pizzacat83
0
140
Go 1.27 における memory allocation の高速化
andpad
0
170
いまどきの Codex で開発する visionOS アプリの開発スタイルについて
karad
0
140
「人を評価する AI」の設計と実装
ryoyanara
0
200
Terraform標準の組織で AWS CDKをどう使うか
mu7889yoon
1
510
複数の Claude Code が"放置"されてしまう問題をCLI ダッシュボードを自作して解決した話
sumihiro3
1
680
自動化したのに回らない テスト運用の壁―AI時代の品質責任と生産性
mfunaki
0
170
進化を続けるGo toolsの現在地 / The Current State of Ever-Evolving Go Tools
hond0413
0
210
わからない話を追いかけたら、プログラミング言語を作る側にいた
ydah
3
500
琵琶湖の水は止められてもNet--HTTPのリトライは止められない / You might be able to stop the water flow of Lake Biwa but you can't stop Net::HTTP retries
luccafort
PRO
0
700
Featured
See All Featured
DBのスキルで生き残る技術 - AI時代におけるテーブル設計の勘所
soudai
PRO
68
56k
How to Get Subject Matter Experts Bought In and Actively Contributing to SEO & PR Initiatives.
livdayseo
0
170
Effective software design: The role of men in debugging patriarchy in IT @ Voxxed Days AMS
baasie
0
470
30 Presentation Tips
portentint
PRO
1
370
A designer walks into a library…
pauljervisheath
211
24k
Building a Scalable Design System with Sketch
lauravandoore
463
34k
A better future with KSS
kneath
240
18k
職位にかかわらず全員がリーダーシップを発揮するチーム作り / Building a team where everyone can demonstrate leadership regardless of position
madoxten
64
56k
A brief & incomplete history of UX Design for the World Wide Web: 1989–2019
jct
2
460
実際に使うSQLの書き方 徹底解説 / pgcon21j-tutorial
soudai
PRO
201
75k
Performance Is Good for Brains [We Love Speed 2024]
tammyeverts
12
1.8k
Tips & Tricks on How to Get Your First Job In Tech
honzajavorek
1
700
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