Python - Configuração do Turbo Gears

0

Estou tentando configurar um ambiente Turbogears para Python, seguindo o guia link link

Estou preso na etapa virtualenv tgnev, tendo tentado a solução sugerida na mensagem de exceção e algumas outras coisas, e preciso de algumas dicas.

C:\WINDOWS\system32>virtualenv tgenv
Using base prefix 'c:\program files (x86)\python 3.5'
New python executable in tgenv\Scripts\python.exe
ERROR: The executable tgenv\Scripts\python.exe is not functioning
ERROR: It thinks sys.prefix is 'c:\windows\syswow64\tgenv' (should be 'c:\windows\system32\tgenv')
ERROR: virtualenv is not compatible with this system or executable
Note: some Windows users have reported this error when they installed Python for "Only this user" or have multiple versions of Python installed. Copying the appropriate PythonXX.dll to the virtualenv Scripts/ directory may fix this problem.

Sou completamente novo no Python e no virtualenv, então, por favor, não assuma que eu sei de alguma coisa!

Curiosamente, system32 \ tgenv não existe, mas syswow64 faz, então parece que virtualenv está cometendo um erro?

    
por nineofclubs 10.10.2015 / 15:54

1 resposta

0

link

This tutorial takes for granted that you have a working Python environment with Python2.6 or Python2.7, with pip installed and you have a working browser to look at the web application you are developing.

Você tem o Python 3.5 - este pode ser o culpado. Existem várias diferenças que podem causar scripts / programas em python destinados a falhas na versão anterior.

link :

Guido van Rossum (the original creator of the Python language) decided to clean up Python 2.x properly, with less regard for backwards compatibility than is the case for new releases in the 2.x range. The most drastic improvement is the better Unicode support (with all text strings being Unicode by default) as well as saner bytes/Unicode separation.

Besides, several aspects of the core language (such as print and exec being statements, integers using floor division) have been adjusted to be easier for newcomers to learn and to be more consistent with the rest of the language, and old cruft has been removed (for example, all classes are now new-style, "range()" returns a memory efficient iterable, not a list as in 2.x).

    
por 10.10.2015 / 20:37