Path: csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail From: Nicholas Cole Newsgroups: comp.lang.python Subject: Re: venv issues Date: Tue, 3 Nov 2015 13:47:47 +0000 Lines: 41 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: news.uni-berlin.de ytkPzaudETtJNcVfplIOgQj0H8XeK13BqMkggBgnrVrg== Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.026 X-Spam-Evidence: '*H*': 0.95; '*S*': 0.00; 'python': 0.10; '(but': 0.15; 'empty.': 0.16; 'folder,': 0.16; 'nicholas': 0.16; 'received:io': 0.16; 'received:psf.io': 0.16; "skip:' 60": 0.16; 'subject:issues': 0.16; 'sys.path': 0.16; 'wrote:': 0.16; 'config': 0.18; 'exists': 0.18; '2015': 0.20; 'permission': 0.20; 'machine': 0.21; 'to:2**1': 0.21; 'environments': 0.22; 'help.': 0.23; 'tried': 0.24; 'header:In-Reply-To:1': 0.24; 'module': 0.25; "i've": 0.25; "doesn't": 0.26; 'logging': 0.27; 'message- id:@mail.gmail.com': 0.27; "skip:' 50": 0.29; "skip:' 70": 0.29; 'skip:/ 40': 0.29; 'received:209.85.212': 0.29; "i'm": 0.30; 'creating': 0.30; 'folder': 0.30; 'problem': 0.33; 'source': 0.33; 'curious': 0.33; 'skip:~ 10': 0.33; 'though.': 0.33; 'tue,': 0.34; 'received:google.com': 0.35; 'nov': 0.35; 'something': 0.35; 'but': 0.36; 'there': 0.36; 'received:209.85': 0.36; 'to:addr :python-list': 0.36; 'pm,': 0.36; 'subject:: ': 0.37; 'things': 0.38; 'virtual': 0.38; 'received:209': 0.38; 'to:addr:python.org': 0.40; 'your': 0.60; 'different': 0.63; 'latest': 0.64; 'special': 0.73; 'cole': 0.84; 'everywhere.': 0.84; 'pip': 0.84; 'skip:/ 30': 0.84; 'to:name:python': 0.84 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=oY+7tJTObQ6iyKzBgzon6gUR1iHqtKPXmfVv8kOgQwE=; b=SbEJBjyVkeO5ESlTX9fBq7LFd/bwC6gMaNcV+vJywuxp4NBFM6mwnBmQayS77Z7HLy Ny0pLiPSnJMVuTcssonCJ8M1y67JrJa5Q9/sms8LGTVh1wL6+Z4CafdiVsCT7iEdwhd3 bNkyBU9g+vwVNb6UgwWBj469N+giTlszET20x4UkkHEiw69F9takHlUEn/isjYj351rC FD93ite8HXTxECMMD7CDEPrm/jz1XvpT5M3J+3pHCoKF5x6mXPY8glrkUSlUvX57AYvQ EISRP9jc28tsO/tPVCZp1gPK7ivyPg6Q1cB0Y8qSgMu9avEremzZnrHVpMrjJZW287lB wk3w== X-Received: by 10.194.77.174 with SMTP id t14mr29751394wjw.23.1446558467137; Tue, 03 Nov 2015 05:47:47 -0800 (PST) In-Reply-To: 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:98152 On Tue, Nov 3, 2015 at 12:27 PM, Wolfgang Maier wrote: > On 03.11.2015 11:32, 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. >> >> 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'] >> > > Is there something special about your /private/tmp folder? In other words, > do things work if you create a venv in a different place. > If you go to /private/tmp/testenv/lib/python3.5/site-packages is there a pip > folder and what are its permission settings? /private/tmp/testenv/lib/python3.5/site-packages is completely empty. There's nothing special about that folder, though. The problem exists everywhere.