Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #11197
| Path | csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!aioe.org!feeder.news-service.com!newsfeed.xs4all.nl!newsfeed6.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail |
|---|---|
| Return-Path | <python-python-list@m.gmane.org> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.001 |
| X-Spam-Evidence | '*H*': 1.00; '*S*': 0.00; 'permissions': 0.04; 'ubuntu': 0.04; 'imports': 0.07; 'python': 0.08; '(use': 0.09; 'overwrite': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:80.91.229.12': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'received:lo.gmane.org': 0.09; 'output': 0.10; 'packages.': 0.13; 'subject:use': 0.15; 'confusing.': 0.16; 'subject:virtualenv': 0.16; 'subject:not': 0.21; "doesn't": 0.22; 'wondered': 0.23; 'ignore': 0.26; "i'm": 0.27; 'problem': 0.28; 'import': 0.28; 'compile': 0.29; 'environment': 0.29; 'modules,': 0.30; 'modules': 0.31; 'seem': 0.31; 'version': 0.32; 'hi,': 0.32; 'does': 0.32; 'installed': 0.32; 'there': 0.33; 'to:addr:python- list': 0.33; 'calling': 0.33; 'done': 0.34; 'header:User-Agent:1': 0.34; 'skip:= 10': 0.34; 'packages,': 0.34; 'header:X-Complaints- To:1': 0.35; 'running': 0.35; 'created': 0.36; 'using': 0.37; 'run': 0.37; 'but': 0.37; 'install': 0.37; 'could': 0.38; 'received:org': 0.38; 'some': 0.38; 'skip:- 10': 0.39; 'header :Mime-Version:1': 0.39; 'user': 0.39; 'why': 0.39; 'to:addr:python.org': 0.39; 'setup': 0.40; 'huge': 0.61; 'hope': 0.61; 'due': 0.66; 'why?': 0.73; 'satisfied': 0.84 |
| X-Injected-Via-Gmane | http://gmane.org/ |
| To | python-list@python.org |
| From | Gelonida N <gelonida@gmail.com> |
| Subject | ipython installed in virtualenv seems not to use virtualenv |
| Date | Thu, 11 Aug 2011 10:59:40 +0200 |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=ISO-8859-1 |
| Content-Transfer-Encoding | 7bit |
| X-Gmane-NNTP-Posting-Host | unicorn.dungeon.de |
| User-Agent | Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.18) Gecko/20110617 Lightning/1.0b2 "" |
| X-BeenThere | python-list@python.org |
| X-Mailman-Version | 2.1.12 |
| Precedence | list |
| List-Id | General discussion list for the Python programming language <python-list.python.org> |
| List-Unsubscribe | <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe> |
| List-Archive | <http://mail.python.org/pipermail/python-list> |
| List-Post | <mailto:python-list@python.org> |
| List-Help | <mailto:python-list-request@python.org?subject=help> |
| List-Subscribe | <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.2165.1313053199.1164.python-list@python.org> (permalink) |
| Lines | 68 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1313053199 news.xs4all.nl 23942 [2001:888:2000:d::a6]:39817 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | x330-a1.tempe.blueboxinc.net comp.lang.python:11197 |
Show key headers only | View raw
Hi, Short version ============== I have a system with ipython installed by my Ubuntu distribution I created a virtualenv with > virtualenv ~/myenv I installed ipython > pip install ipython --upgrade When using ipython I notice, that it does import the modules from my default python setup and not from my virtualenv. Why? What could I have done differently? Long version =================== I created a virtualenv with virtualenv ~/myenv THis inherits my machines site packages. The reason I'm not using virutalenv --no-site-packages ~/myenv is that I would like to use some of the site packages, in particular some, that I don't want to compile due to huge package dependencies. Small problem is, that if I run ipython in a virtualenv it will still call /usr/bin/ipython and if I check the modules, that I import I seem to import the modules of my default environment and not the ones of my virtualenv. So I decided I will install my own version of ipython in my virtualenv The output if pip install ipython is a little confusing. > Requirement already satisfied (use --upgrade to upgrade): ipython in /usr/lib/pymodules/python2.6 As I am a normal user and I don't have permissions to overwrite /usr/lib I decided to just give it a try and hope it will install in my virtualenv path and not in /usr/lib/... After running > pip install ipython --upgrade I have my own version of ipython. However when calling and using it I notice it still imports the modules from my default python and not from my virtualenv? Why does ipython ignore the virtualenv's settings? I know there are workarounds, but I wondered why it doesn't work out of the box.
Back to comp.lang.python | Previous | Next — Next in thread | Find similar | Unroll thread
ipython installed in virtualenv seems not to use virtualenv Gelonida N <gelonida@gmail.com> - 2011-08-11 10:59 +0200
Re: ipython installed in virtualenv seems not to use virtualenv becky_lewis <bex.lewis@gmail.com> - 2011-08-11 02:39 -0700
Re: ipython installed in virtualenv seems not to use virtualenv Gelonida N <gelonida@gmail.com> - 2011-08-11 12:04 +0200
Re: ipython installed in virtualenv seems not to use virtualenv becky_lewis <bex.lewis@gmail.com> - 2011-08-11 03:28 -0700
Re: ipython installed in virtualenv seems not to use virtualenv Gelonida N <gelonida@gmail.com> - 2011-08-11 13:06 +0200
csiph-web