osx - virtualenvwrapper seemingly ignoring VIRTUALENVWRAPPER_PYTHON -


i python / virtualenv n00b, , tried follow instructions installing virtualenv / virtualenvwrapper.sh.

i installed both virtualenv , virtualenvwrapper.sh via:

pip install virtualenv pip install virtualenvwrapper 

i have python3.5 , python2.7 installed on system (mac os x el capitan 10.11.4)

when search python, python3, virtualenv , virtualenvwrapper.sh via bash following:

which python ==> /usr/local/bin/python python3 ==> /usr/local/bin/python3 virtualenv ==> /usr/local/bin/virtualenv virtualenvwrapper.sh ==> /usr/local/bin/virtualenvwrapper.sh 

i add following lines .bash_profile:

export path=/usr/local/bin:$path export virtualenvwrapper_python=/usr/local/bin/python3.5 export workon_home=$home/.virtualenvs export project_home=$home/devel 

source /usr/local/bin/virtualenvwrapper.sh

my .bashrc file empty, , .profile sources .bash_profile.

when try use virtualenvwrapper.sh commands (e.g., 'mkvirtualenv' , 'lsvirtualenv'), work, default python still python 2.7.

when run mkvirtualenv -p python3.5 [name], default python works correctly (i.e., python 3.5).

what doing wrong? why virtualenvwrapper recognizing specified virtualenvwrapper_python?

thanks in advance help. appreciate it

~~~~ tried: pip3 install virtualenv , got following error:

traceback (most recent call last): file "/usr/local/bin/pip3", line 5, in <module> pkg_resources import load_entry_point file "/usr/local/lib/python2.7/site-packages/pkg_resources/__init__.py", line 3138, in <module> @_call_aside file "/usr/local/lib/python2.7/site-packages/pkg_resources/__init__.py", line 3124, in _call_aside f(*args, **kwargs) file "/usr/local/lib/python2.7/site-packages/pkg_resources/__init__.py", line 3151, in _initialize_master_working_set working_set = workingset._build_master() file "/usr/local/lib/python2.7/site-packages/pkg_resources/__init__.py", line 663, in _build_master return cls._build_from_requirements(__requires__) file "/usr/local/lib/python2.7/site-packages/pkg_resources/__init__.py", line 676, in _build_from_requirements dists = ws.resolve(reqs, environment()) file "/usr/local/lib/python2.7/site-packages/pkg_resources/__init__.py", line 849, in resolve raise distributionnotfound(req, requirers) pkg_resources.distributionnotfound: 'pip==8.0.2' distribution   not found , required application 

if there python3 command, there should pip3 command. if there no pip3, pip might installed python 2.x. pip3 install python3, pip install python.

try installing virtualenv , virtualenvwrapper pip3.


Comments

Popular posts from this blog

java - nested exception is org.hibernate.exception.SQLGrammarException: could not extract ResultSet Hibernate+SpringMVC -

sql - Postgresql tables exists, but getting "relation does not exist" when querying -

asp.net mvc - breakpoint on javascript in CSHTML? -