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
2
87
Configurando e usando um ambiente de desenvolvimento Python
Hugo Maia Vieira
November 12, 2011
Tweet
Share
More Decks by Hugo Maia Vieira
See All by Hugo Maia Vieira
Introdução ao Shell Script (versão estendida)
hugomaiavieira
0
44
Introdução ao git
hugomaiavieira
1
160
Como empreender quando se ainda é um estudante
hugomaiavieira
0
37
Introdução ao Shell Script
hugomaiavieira
2
240
Coding Dojo
hugomaiavieira
1
87
Licenças: Entendendo e Escolhendo
hugomaiavieira
1
45
Other Decks in Programming
See All in Programming
“いい感じ“な定量評価を求めて - Four Keysとアウトカムの間の探求 -
nealle
2
12k
AI駆動のマルチエージェントによる業務フロー自動化の設計と実践
h_okkah
0
220
テスト駆動Kaggle
isax1015
1
530
オンコール⼊⾨〜ページャーが鳴る前に、あなたが備えられること〜 / Before The Pager Rings
yktakaha4
2
940
Modern Angular with Signals and Signal Store:New Rules for Your Architecture @enterJS Advanced Angular Day 2025
manfredsteyer
PRO
0
260
明示と暗黙 ー PHPとGoの インターフェイスの違いを知る
shimabox
2
610
状態遷移図を書こう / Sequence Chart vs State Diagram
orgachem
PRO
2
200
はじめてのWeb API体験 ー 飲食店検索アプリを作ろうー
akinko_0915
0
140
MDN Web Docs に日本語翻訳でコントリビュートしたくなる
ohmori_yusuke
1
130
『自分のデータだけ見せたい!』を叶える──Laravel × Casbin で複雑権限をスッキリ解きほぐす 25 分
akitotsukahara
2
660
20250704_教育事業におけるアジャイルなデータ基盤構築
hanon52_
5
1k
RailsGirls IZUMO スポンサーLT
16bitidol
0
200
Featured
See All Featured
Fantastic passwords and where to find them - at NoRuKo
philnash
51
3.3k
Typedesign – Prime Four
hannesfritz
42
2.7k
Templates, Plugins, & Blocks: Oh My! Creating the theme that thinks of everything
marktimemedia
31
2.4k
Creating an realtime collaboration tool: Agile Flush - .NET Oxford
marcduiker
30
2.2k
Visualizing Your Data: Incorporating Mongo into Loggly Infrastructure
mongodb
47
9.6k
How to Think Like a Performance Engineer
csswizardry
25
1.7k
JavaScript: Past, Present, and Future - NDC Porto 2020
reverentgeek
50
5.5k
Designing Dashboards & Data Visualisations in Web Apps
destraynor
231
53k
We Have a Design System, Now What?
morganepeng
53
7.7k
[RailsConf 2023] Rails as a piece of cake
palkan
55
5.7k
Statistics for Hackers
jakevdp
799
220k
Code Review Best Practice
trishagee
69
19k
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