Path: csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail From: Peter Otten <__peter__@web.de> Newsgroups: comp.lang.python Subject: Re: venv issues Date: Tue, 03 Nov 2015 15:04:27 +0100 Organization: None Lines: 39 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 7Bit X-Trace: news.uni-berlin.de LqVbva9x9WQDkmV0Dx5cigqqOMAWScZjevtVCF8Zoqxw== Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.004 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'python': 0.10; 'suggest': 0.15; '(but': 0.15; '(before': 0.16; 'nicholas': 0.16; 'received:80.91.229.3': 0.16; 'received:dip0.t-ipconnect.de': 0.16; 'received:io': 0.16; 'received:plane.gmane.org': 0.16; 'received:psf.io': 0.16; 'received:t-ipconnect.de': 0.16; "skip:' 60": 0.16; 'subject:issues': 0.16; 'sys.path': 0.16; 'wrote:': 0.16; 'config': 0.18; 'machine': 0.21; 'environments': 0.22; 'help.': 0.23; 'tried': 0.24; 'module': 0.25; "i've": 0.25; 'header:User- Agent:1': 0.26; "doesn't": 0.26; 'header:X-Complaints-To:1': 0.26; 'logging': 0.27; "skip:' 50": 0.29; "skip:' 70": 0.29; "i'm": 0.30; 'creating': 0.30; 'anyone': 0.32; 'point': 0.33; 'source': 0.33; 'curious': 0.33; 'skip:~ 10': 0.33; 'something': 0.35; 'but': 0.36; 'to:addr:python-list': 0.36; 'subject:: ': 0.37; 'received:org': 0.37; 'virtual': 0.38; 'sure': 0.39; 'does': 0.39; 'to:addr:python.org': 0.40; 'received:de': 0.40; 'different': 0.63; 'latest': 0.64; 'cole': 0.84; 'pip': 0.84; 'skip:/ 30': 0.84; 'obvious,': 0.91; 'sourcing': 0.93 X-Injected-Via-Gmane: http://gmane.org/ X-Gmane-NNTP-Posting-Host: p57bd9867.dip0.t-ipconnect.de User-Agent: KNode/4.13.3 X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.20+ Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Xref: csiph.com comp.lang.python:98156 Nicholas Cole wrote: > I'm using python3.5 (installed from binaries) on the latest OS X. > > I have a curious issue with virtual environments on this machine (but > not on my other machine). > > > $ python3.5 -m venv testenv > $ source testenv/bin/activate > (testenv)$ python -m pip > /private/tmp/testenv/bin/python: No module named pip > $ > > Logging in as a different user and creating a venv works perfectly, so > it's clearly a config issue somewhere, but I've tried removing > ~/.bashrc and ~/.bash_profile and that doesn't help. Does $ which python3.5 (before sourcing bin/activate) point to the same python for both users? > > The sys.path for that venv is: ['', > '/Library/Frameworks/Python.framework/Versions/3.5/lib/python35.zip', > '/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5', > '/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/plat- darwin', > '/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/lib- dynload', > '/private/tmp/testenv/lib/python3.5/site-packages'] > > I'm sure I'm overlooking something obvious, but can anyone suggest what? > > Nicholas