virtualenv python3 windows10

Iniciado por TheJB, Octubre 23, 2019, 04:19:31 PM

Tema anterior - Siguiente tema

0 Miembros y 2 Visitantes están viendo este tema.

Octubre 23, 2019, 04:19:31 PM Ultima modificación: Octubre 23, 2019, 04:24:59 PM por HATI
Hola, estoy realizando un curso y no encuentro solución a la hora de crear un entorno virtual

Al ejecutar el comando: "virtualenv --python=python3 venv"
Me sale lo siguiente: The path python3 (from --python=python3) does not exist

La versión que utilizo de python es python 3.7

@You are not allowed to view links. You are not allowed to view links. Register or Login or You are not allowed to view links. Register or Login

No lo tienes instalado o no tienes la ruta agregada en el PATH (Qué es lo más probable).

Ésto te ayudará, pero no tendrá persistencia, por eso mejor busca un «tutorial» mejor sobre ello. Código:

Código: dos

REM primero verifica tu «PATH»

echo %path%

REM se vería algo así: PATH=C:\Python27\;C:\Python27\Scripts;C:\windows\system32;C:\windows;C:\windows\system32\wbem

REM Ahora tienes que agregar la ruta donde se encuentra «python.exe», mayormente en: "C:\Python27", aunque éste es para python2.7, lo único que debes hacer, es cambiar el 27 por la versión, que si no me equivoco, quedaria así: "C:\Python37".

REM Por último lo agregas al path. Es importante si es al principio o al final, para que la búsqueda sea más rapida o lenta.

set path=C:\Python37\;%path%

REM Verificamos

echo %path%

REM Listo.


Espero que te haya funcionado ...

- DtxdF
PGP :: <D82F366940155CB043147178C4E075FC4403BDDC>

~ DtxdF

You are not allowed to view links. You are not allowed to view links. Register or Login or You are not allowed to view links. Register or Login
Hola, estoy realizando un curso y no encuentro solución a la hora de crear un entorno virtual

Al ejecutar el comando: "virtualenv --python=python3 venv"
Me sale lo siguiente: The path python3 (from --python=python3) does not exist

La versión que utilizo de python es python 3.7

Estás usando windows?

En caso afirmativo, prueba de esta forma:

Código: dos
virtualenv env -p C:/Python37/python.exe


De lo contrario prueba así:

Código: bash
virtualenv --python=/usr/bin/python3


Un saludo.