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


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

Re: venv issues

Started byNicholas Cole <nicholas.cole@gmail.com>
First post2015-11-03 14:06 +0000
Last post2015-11-03 14:06 +0000
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 Nicholas Cole <nicholas.cole@gmail.com> - 2015-11-03 14:06 +0000

#98157 — Re: venv issues

FromNicholas Cole <nicholas.cole@gmail.com>
Date2015-11-03 14:06 +0000
SubjectRe: venv issues
Message-ID<mailman.24.1446559585.8789.python-list@python.org>
On Tue, Nov 3, 2015 at 1:59 PM, Chris Angelico <rosuav@gmail.com> wrote:
> On Tue, Nov 3, 2015 at 9:32 PM, Nicholas Cole <nicholas.cole@gmail.com> wrote:
>> 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.
>
> What happens if you create a brand new user, then copy in all
> dot-files and directories from your current one? Does it exhibit the
> same problem?

No. And that helped me find the problem.  I had an old

.pydistutils.cfg

file with a line:

install_lib = ~/Library/Python/$py_version_short/lib/python/site-packages

That completely upset the venv.

(whether it should have done or not, I don't know. I would have
expected venv to ignore pydistutils.cfg)

Thank you both for your help!

Best,

N.

[toc] | [standalone]


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


csiph-web