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


Groups > comp.lang.python > #98156 > unrolled thread

Re: venv issues

Started byPeter Otten <__peter__@web.de>
First post2015-11-03 15:04 +0100
Last post2015-11-03 15:04 +0100
Articles 1 — 1 participant

Back to article view | Back to comp.lang.python

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: venv issues Peter Otten <__peter__@web.de> - 2015-11-03 15:04 +0100

#98156 — Re: venv issues

FromPeter Otten <__peter__@web.de>
Date2015-11-03 15:04 +0100
SubjectRe: venv issues
Message-ID<mailman.23.1446559510.8789.python-list@python.org>
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

[toc] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web