I've had many properly working virtualenvs, but from today, they give me an error. I've tried reinstalling pip and virtualenvwrapper with easyinstall -U, but the error remained. $ mkvirtualenv django sh: 0: getcwd failed: No such file or directory New python executable in django/bin/python Installing setuptools.done. Installing pip.done.
- Usr/local/bin/virtualenvwrapper.sh No Such File Or Directory
- Error /usr/local/bin/virtualenvwrapper.sh No Such File Or Directory
I'm trying to setup virtualenvwrapper on OSX, and all the instructions and tutorials I've found tell me to add a source command to.profile, pointing towards virtualenvwrapper.sh. I've checked all the python and site-packages directories, and I can't find any virtualenvwrapper.sh. Is this something I need to download separately? Is pip not installing correctly? This is the contents of /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/virtualenvwrapper: hookloader.py hookloader.pyc project.py project.pyc userscripts.py userscripts.pyc As you can see, no virtualenvwrapper.sh. The exact path where virtualenvwrapper.sh is stored/located varies from OS to OS. Even with in same OS, it varies from version to version.
So we need a generic solution that works for all OS versions. Easiest way I have found to find its path is: Do pip uninstall virtualenvwrapper This will prompt a confirmation. Tropical ecology kricher pdf creator. Say 'No' But first line of confirmation shows the path of virtualenvwrapper.sh (Prompt gives a list of files it will delete, if you say Yes. Download lagu karaoke mp4 indonesia. First entry in this list contains path to virtualenvwrapper.sh in your machine).
In OSx EI captain, I installed the virtualenvwrapper as sudo pip3 install virtualenvwrapper, however I cannot find the virtualenvwrapper.sh in /user/local/bin, it was finally found at /Library/Frameworks/Python.framework/Versions/3.4/bin/virtualenvwrapper.sh, and you can make an soft link to /usr/local/bin as ln -s /Library/Frameworks/Python.framework/Versions/3.4/bin/virtualenvwrapper.sh /usr/local/bin/virtualenvwrapper.sh, and everything you can just follow the setup guide as the official document does.
After I ran sudo pip install virtualenv I received this 'The directory '/Users/me/Library/Logs/pip' or its parent directory is not owned by the current user and the debug log has been disabled. Please check the permissions and owner of that directory.
If executing pip with sudo, you may want sudo's -H flag.' , it then says the same about my cache.
I have installed virtualenv using pip command: $ pip install -user virtualenv and virtualenwrapper $ pip install -user virtualenvwrapper everything worked fine: $ pip show virtualenvwrapper Name: virtualenvwrapper Version: 4.3.2 Location: /home/mukesh/.local/lib/python2.7/site-packages Requires: virtualenv, virtualenv-clone, stevedore I made two directories '.virtenvs' and 'Project-Active'. I am doing this by following a blog post. Then I have changed my.bashrc file by adding following lines: export WORKONHOME=$HOME/.virtenvs export PROJECTHOME=$HOME/Projects-Active source $HOME/.local/bin/virtualenvwrapper.sh After saving the changes, I sourced the file to make the changes active: $ source /.bashrc When I am trying to make a new virtual environment by using following command: $ mkvirtualenv testenv01 I am getting error: ERROR: virtualenvwrapper could not find virtualenv in your path Don't know what should I do now. From my experience, following the instructions on some sites will land you in problem.
Here's how i did it but first the common mistakes: pip install virtualenv pip install virtualenvwrapper export WORKONHOME=/Envs source /usr/local/bin/virtualenvwrapper.sh now that's not gonna work for you especially now with 16.04 comes with virtualenv as one of her packages. Some pitfalls is now trying to uninstall it with: sudo pip uninstall virtualenv when you never installed it with admin rights. Instead do: pip uninstall virtualenv then now install it with the Ubuntu repo (recommended) using: sudo apt-get install virtualenv sudo apt install virtualenvwrapper virtualwrapper (user friendly wrappers for the functionality of virtualenv) The reason we are also installing is because it offers nice and simple commands to manage your virtual environments. Echo 'source /usr/share/virtualenvwrapper/virtualenvwrapper.sh' /.bashrc Source virtualenvwrapper in.bashrc or open your.bashrc file and add: export WORKONHOME=$HOME/.virtualenvs export PROJECTHOME=$HOME/PyProj source /usr/share/virtualenvwrapper/virtualenvwrapper.sh this will set the location where the virtual environments should live, the location of your development project directories, and the location of the script installed with this package.
Now run workon if this is your first time it won't show anything, don't panic. If not, a list of environments, empty, is printed. Run mkvirtualenv temp new environment, temp is created and activated.
Then run workon again This time, the temp environment is included. Now have fun.
I got problem running this script $ sh mac -dev (ignored.) mac: line 110: /usr/local/bin/virtualenvwrapper.sh: No such file or directory The installation of virtualenvwrapper was removed in. It seems that pip install virtualenvwrapper is still required. Should we add it back?
Usr/local/bin/virtualenvwrapper.sh No Such File Or Directory
BTW, my environment is even worse. The built-in python 2.7.10 on MacOS is not with pip. I need sudo easyinstall pip it. So here is what works for me: sudo easyinstall -upgrade pip sudo pip install virtualenvwrapper source '$HOMEBREWPREFIX/bin/virtualenvwrapper.sh' If it's okay, I'd make the PR. On Tue, Aug 29, 2017, 13:01 Achi Chen.@. wrote:, I got problem running this script $ sh mac -dev (ignored.) mac: line 110: /usr/local/bin/virtualenvwrapper.sh: No such file or directory The installation of virtualenvwrapper was removed in #diff-140c1f12feeb2c52dfbeb2da6066a73a.
Error /usr/local/bin/virtualenvwrapper.sh No Such File Or Directory
It seems that pip install virtualenvwrapper is still required. Should we add it back? BTW, my environment is even worse. English to bengali calendar converter.
The built-in python 2.7.10 on MacOS is not with pip. I need sudo easyinstall pip it. So here is what works for me: sudo easyinstall -upgrade pip sudo pip install virtualenvwrapper source '$HOMEBREWPREFIX/bin/virtualenvwrapper.sh' If it's okay, I'd make the PR. — You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or mute the thread. On Tue, Aug 29, 2017, 13:01 Achi Chen.@.
wrote:, I got problem running this script $ sh mac -dev (ignored.) mac: line 110: /usr/local/bin/virtualenvwrapper.sh: No such file or directory The installation of virtualenvwrapper was removed in #diff-140c1f12feeb2c52dfbeb2da6066a73a. It seems that pip install virtualenvwrapper is still required. Should we add it back? BTW, my environment is even worse. The built-in python 2.7.10 on MacOS is not with pip. I need sudo easyinstall pip it.
So here is what works for me: sudo easyinstall -upgrade pip sudo pip install virtualenvwrapper source '$HOMEBREWPREFIX/bin/virtualenvwrapper.sh' If it's okay, I'd make the PR. — You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or mute the thread.