Underc0de - La Casa de los Informáticos

Foros Generales => Dudas y pedidos generales => Mensaje iniciado por: TheJB en Octubre 23, 2019, 04:19:31 PM

Título: virtualenv python3 windows10
Publicado por: TheJB en Octubre 23, 2019, 04:19:31 PM
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
Título: Re:virtualenv python3 windows10
Publicado por: DtxdF en Octubre 23, 2019, 04:58:16 PM
@TheJB (https://underc0de.org/foro/index.php?action=profile;u=63695)

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) [Seleccionar]

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
Título: Re:virtualenv python3 windows10
Publicado por: blackdrake en Octubre 23, 2019, 05:17:48 PM
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) [Seleccionar]
virtualenv env -p C:/Python37/python.exe

De lo contrario prueba así:

Código (bash) [Seleccionar]
virtualenv --python=/usr/bin/python3

Un saludo.