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


Groups > comp.lang.python > #98157

Re: venv issues

From Nicholas Cole <nicholas.cole@gmail.com>
Newsgroups comp.lang.python
Subject Re: venv issues
Date 2015-11-03 14:06 +0000
Message-ID <mailman.24.1446559585.8789.python-list@python.org> (permalink)
References <CAAu18hcUPzeLNVziof_b-BRAv-29_M+hNa4SJnYsGTmfL0uLDQ@mail.gmail.com> <CAPTjJmq8wPdByPeG391X906E8AAREcz3u0y25Fv3qRz+xgB_=A@mail.gmail.com>

Show all headers | View raw


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.

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


Thread

Re: venv issues Nicholas Cole <nicholas.cole@gmail.com> - 2015-11-03 14:06 +0000

csiph-web