Virtualenv - Python 3 - Ubuntu 14.04 64 bit -
i trying install virtualenv python 3 on ubuntu 64bit 14.04.
i have installed pip python3 using:
pip3 install virtualenv and works fine. though trying use virtualenv command create environment , getting error not install (i guess because haven't installed python 2 , trying use)
how use virtualenv python 3? have searched documentation can't see says do.
i had same issue coming development environments on os x create python 3 virtual environments invoking virtualenv , path target directory. should able create python 3.x virtual environment in 1 of 2 ways:
install
virtualenvpypi you've done ($ pip3 install virtualenv), calling module command line:$ python3 -m virtualenv /path/to/directoryuse venv module, can install through
apt-get. (note python 3.3 when module introduced, answer assumes you're working @ least that):$ sudo apt-get install python3.4-venvthen can set virtual environment with
$ pyvenv-3.4 /path/to/directoryand activate environment with
$ source /path/to/directory/bin/activate
you might @ this post, discusses differences between venv module , virtualenv. best of luck!
Comments
Post a Comment