python - Setting up a virtural enviroment (venv) with no system site packages -
i want create virtual environment using enthought's canopy distribution, no site packages.
following: https://support.enthought.com/entries/21802240-use-venv-not-virtualenv-with-canopy-python
i set environment, leaving off -s not install site packages:
$ venv path/to/virtual_environment_dir $ source path/to/virtual_environment_dir/bin/activate and uses correct python, still uses system easy_install , pip
(env) $ python path/to/virtual_environment_dir/bin/python (env) $ easy_install /usr/bin/easy_install (env) $ pip /usr/local/bin/pip so if try install anything, installs globally.
is there way install pip virtual environment?
you have install setuptools , pip manually environment. venv in canopy backported venv in python 3, unlike virtualenv, has no special support pre-installing these packages new environment. follow standard installation instructions setuptools , pip using new environment's python executable.
Comments
Post a Comment