A
A
Alexey Sergeev2015-05-23 14:23:18
Django
Alexey Sergeev, 2015-05-23 14:23:18

How to create a django project under win10?

Hello!
Faced the following problem on win10, I give the order of actions on points:
1) I install python from the official site
2) Attempt to create a virtual environment An
virtualenv django
error is returned:

Fatal error in launcher: Job information querying failed

3) Google and understand what needs to be created with the -m key:
python -m virtualenv django
4) I go into the environment and activate it
5) Install django
pip install django
Answer:
Fatal error in launcher: Job information querying failed

6) I act according to the old scheme
python -m pip install django
. Everything is installed.
7) Creating a django project
django-admin.py startproject myproj

Job information querying failed

python -m django-admin.py startproject myproj

D:\Dev\django\Scripts\python.exe: Error while finding spec for 'django-admin.py' (<class 'AttributeError'>: 'module' object has no attribute '__path__')

What could be the problem and how to fix it?
PS This behavior is observed only on Windows 10.
On Win7,8; *nix, OS X is fine.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Stanislav Fateev, 2015-05-23
@SergeevAI

A cursory googling reveals a bug that appears when using 32bit python under 64bit Win10. Aleksey, how do you install vagrant under Windows with an ubunta image, and write calmly the code in the system you like, in the editor you like, without wasting time fixing compatibility bugs, using Autocad and MS Office in parallel. Under Windows, unexpected bugs can occur not only in pip, but also in django batteries, I came across.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question