Install virtualenv and virtualenvwrapper on MacOS

To install virtualenv and virtualenvwrapper for repetitive use you need a correctly configured Python (this example uses Python 3.x but process is identical for Python 2.x). Although you can get python installer from Python website I strongly advice against it. The most convenient and future-proof method to install Python on MacOS is brew. Main difference … Read more

Installed virtualenv and virtualenvwrapper: Python says no module named virtualenvwrapper

I’ve managed to get this working after having the same problem you’ve described here by editing my ~/.bash_profile and adding this: export WORKON_HOME=$HOME/code/.virtualenvs export PROJECT_HOME=$HOME/code export VIRTUALENVWRAPPER_PYTHON=/usr/local/bin/python export VIRTUALENVWRAPPER_VIRTUALENV=/usr/local/bin/virtualenv export VIRTUALENVWRAPPER_VIRTUALENV_ARGS=’–no-site-packages’ source /usr/local/bin/virtualenvwrapper.sh Save, close. then: $ source ~/.bash_profile and: $ mkvirtualenv test

Can’t install virtualenvwrapper on OSX 10.11 El Capitan

You can manually install the dependencies that don’t exist on a stock 10.11 install, then install the other packages with –no-deps to ignore the dependencies. That way it will skip six (and argparse which is also already installed). This works on my 10.11 beta 6 install: sudo pip install pbr sudo pip install –no-deps stevedore … Read more

ERROR: virtualenvwrapper could not find virtualenv in your path

Re-installling virtualenv fixed my problem. I had the same issue. $ mkvirtualenv mysite ERROR: virtualenvwrapper could not find virtualenv in your path After a lot of time consuming efforts, I decided to re-install virtualenv. sudo apt install virtualenv This fixed my issues. I already had virtualenv installed. But I think it got broken or met … Read more

virtualenvwrapper functions unavailable in shell scripts

Just source the virtualenvwrapper.sh script in your script to import the virtualenvwrapper’s functions. You should then be able to use the workon function in your script. And maybe better, you could create a shell script (you could name it venv-run.sh for example) to run any Python script into a given virtualenv, and place it in … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)