Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #98148

Re: venv issues

Path csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail
From Wolfgang Maier <wolfgang.maier@biologie.uni-freiburg.de>
Newsgroups comp.lang.python
Subject Re: venv issues
Date Tue, 3 Nov 2015 13:27:14 +0100
Lines 30
Message-ID <mailman.16.1446553652.8789.python-list@python.org> (permalink)
References <CAAu18hcUPzeLNVziof_b-BRAv-29_M+hNa4SJnYsGTmfL0uLDQ@mail.gmail.com>
Mime-Version 1.0
Content-Type text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding 7bit
X-Trace news.uni-berlin.de iIAFsbPO6RCwPjVQl1SnmQOcimQTYo7ToOE37hS+Kbkg==
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.005
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; '(but': 0.15; 'nicholas': 0.16; 'received:80.91.229.3': 0.16; 'received:io': 0.16; 'received:plane.gmane.org': 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; 'permission': 0.20; 'machine': 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; 'header:User- Agent:1': 0.26; "doesn't": 0.26; 'header:X-Complaints-To:1': 0.26; 'logging': 0.27; 'received:132': 0.29; "skip:' 50": 0.29; "skip:' 70": 0.29; 'skip:/ 40': 0.29; "i'm": 0.30; 'creating': 0.30; 'folder': 0.30; 'source': 0.33; 'curious': 0.33; 'skip:~ 10': 0.33; 'something': 0.35; 'but': 0.36; 'there': 0.36; 'to:addr :python-list': 0.36; 'subject:: ': 0.37; 'received:org': 0.37; 'things': 0.38; 'virtual': 0.38; 'to:addr:python.org': 0.40; 'your': 0.60; 'different': 0.63; 'latest': 0.64; 'special': 0.73; 'cole': 0.84; 'pip': 0.84; 'skip:/ 30': 0.84
X-Injected-Via-Gmane http://gmane.org/
X-Gmane-NNTP-Posting-Host 132.230.194.41
User-Agent Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0
In-Reply-To <CAAu18hcUPzeLNVziof_b-BRAv-29_M+hNa4SJnYsGTmfL0uLDQ@mail.gmail.com>
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.20+
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <https://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 <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Xref csiph.com comp.lang.python:98148

Show key headers only | View raw


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?

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

Re: venv issues Wolfgang Maier <wolfgang.maier@biologie.uni-freiburg.de> - 2015-11-03 13:27 +0100

csiph-web