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:

  1. install virtualenv pypi you've done ($ pip3 install virtualenv), calling module command line:

    $ python3 -m virtualenv /path/to/directory

  2. use 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-venv

    then can set virtual environment with

    $ pyvenv-3.4 /path/to/directory

    and activate environment with

    $ source /path/to/directory/bin/activate

you might @ this post, discusses differences between venv module , virtualenv. best of luck!


Comments

Popular posts from this blog

java - Spring Data JPA: Why findOne(id) executing delete query internally? -

python - Mongodb How to add addtional information when aggregating? -

java - Incorrect order of records in M-M relationship in hibernate -