Off-topic - venv problem in Windows 8.1

26 views
Skip to first unread message

Mike Dewhirst

unread,
Dec 5, 2017, 1:39:50 AM12/5/17
to Django users
I did a pip freeze in a virtualenv and saw packages I should not have
seen. So I checked sys.path as follows ...

C:\Users\mike\envs\xxct3\train>..\Scripts\activate

(xxct3) C:\Users\mike\envs\xxct3\train>python

Python 3.6.1 (v3.6.1:69c0db5, Mar 21 2017, 18:41:36) [MSC v.1900 64 bit
(AMD64)] on win32

Type "help", "copyright", "credits" or "license" for more information.

>>> import sys

>>> sys.path

['', 'C:\\Python36\\python36.zip', 'C:\\Python36\\DLLs',
'C:\\Python36\\lib', 'C:\\Python36', 'C:\\Python36\\lib\\site-packages']

>>>


... and it doesn't have C:\Users\mike\envs\xxct3\Lib\site-packages in
the path!

Anyone know what I'm doing wrong?

Thanks

Mike

Jason

unread,
Dec 5, 2017, 8:04:14 AM12/5/17
to Django users
How did you create the virtualenv in the first place?

Mike Dewhirst

unread,
Dec 5, 2017, 6:04:15 PM12/5/17
to django...@googlegroups.com, Jason
On 6/12/2017 12:04 AM, Jason wrote:
> How did you create the virtualenv in the first place?

C:\Python36\python -m venv C:\Users\mike\envs\xxct3

or

C:\Python27\Scripts\virtualenv C:\Users\mike\envs\xxct




> --
> You received this message because you are subscribed to the Google
> Groups "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to django-users...@googlegroups.com
> <mailto:django-users...@googlegroups.com>.
> To post to this group, send email to django...@googlegroups.com
> <mailto:django...@googlegroups.com>.
> Visit this group at https://groups.google.com/group/django-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/5cf3c5f9-1c88-4b7b-bace-b09bd160a2ff%40googlegroups.com
> <https://groups.google.com/d/msgid/django-users/5cf3c5f9-1c88-4b7b-bace-b09bd160a2ff%40googlegroups.com?utm_medium=email&utm_source=footer>.
> For more options, visit https://groups.google.com/d/optout.

Langton Chikukwa

unread,
Dec 5, 2017, 6:39:47 PM12/5/17
to django...@googlegroups.com
I didn't create a virtual environment


On Wed, Dec 6, 2017 at 1:03 AM, Mike Dewhirst <mi...@dewhirst.com.au> wrote:
On 6/12/2017 12:04 AM, Jason wrote:
How did you create the virtualenv in the first place?

C:\Python36\python -m venv C:\Users\mike\envs\xxct3

or

C:\Python27\Scripts\virtualenv C:\Users\mike\envs\xxct
--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com <mailto:django-users+unsubscrib...@googlegroups.com>.
To post to this group, send email to django...@googlegroups.com <mailto:django-users@googlegroups.com>.
--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django...@googlegroups.com.

Mike Dewhirst

unread,
Dec 5, 2017, 11:05:10 PM12/5/17
to django...@googlegroups.com
On 6/12/2017 10:03 AM, Mike Dewhirst wrote:
> On 6/12/2017 12:04 AM, Jason wrote:
>> How did you create the virtualenv in the first place?
>
> C:\Python36\python -m venv C:\Users\mike\envs\xxct3

I have completely re-venved and it is now working. I can't explain it. I
always use a batch file to create my venvs and write out the base
requirements text files. Same as previously because I like repeatable
reliability. I'm going to reinstall Python 3.6 so I get a clean
site-packages. That might provide early warning if it happens again.

Thanks for your time responding.

Mike
Reply all
Reply to author
Forward
0 new messages