venv doesn't create activate script python3 venv doesn't create activate script python3 python python

venv doesn't create activate script python3


Looks like you are using Ubuntu 14.04. It was shipped with a broken pyvenv. There is a simple work around to create venv using Python 3

1. Create venv without pip

python3 -m venv --without-pip test4

or

pyvenv-3.4 --without-pip test4

2. Get pip in your env

source test4/bin/activatecurl https://bootstrap.pypa.io/get-pip.py | pythondeactivatesource test4/bin/activate

or

pyvenv-3.4 --without-pip myvenvsource ./myvenv/bin/activatewget https://pypi.python.org/packages/source/s/setuptools/setuptools-3.4.4.tar.gztar -vzxf setuptools-3.4.4.tar.gzcd setuptools-3.4.4python setup.py installcd ..wget https://pypi.python.org/packages/source/p/pip/pip-1.5.6.tar.gztar -vzxf pip-1.5.6.tar.gzcd pip-1.5.6python setup.py installcd ..deactivatesource ./myvenv/bin/activate

Source: HackerNews, AskUbuntu


Anaconda involucred.

If you are using Anaconda or Miniconda this solution may help:

Conda manages python itself as a package, so that conda update python is possible, in contrast to pip, which only manages Python packages. Conda is available in Anaconda and Miniconda (an easy-to-install download with just Python and conda).

So, this command would help:

conda update python

very disturbing for me but well, hands to the keyboard in a terminal window: (click here, see the picture)

Thanks for your attention, have a nice day!


The command:

python3 -m virtualenv env

works for me, whereas:

python3 -m venv env

does not.