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.
Gnu/stubs-32.h: No Such File Or Directory
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.
It seems to be an error with the APT package on Debian/Ubuntu/Mint. I have installed virtualenvwrapper through APT first, then removed it and installed it via pip. Apt-get install virtualenvwrapper apt-get remove virtualenvwrapper pip install virtualenvwrapper The APT package has added the file /etc/bashcompletion.d/virtualenvwrapper but didn't remove it. This is the file that's causing problems. The recommended solution is to remove this file and the errors stop appearing. (Weirdly, simply renaming the file was not enough). Watch la mala educacion.
I can't figure out where the shell is trying to run /usr/bin/virtualenvwrapper.sh upon server login. Camfrog download cnet. I want virtualenvwrapper permanently uninstalled, not just removed from the shell instance. I thought I uninstalled it with pip uninstall virtualenvwrapper, but every time I log into the server I get the error -bash: /usr/bin/virtualenvwrapper.sh: No such file or directory, as if there is some sort of leftover artifact.
Stdio.h No Such File Or Directory
Yesterday I did a lot of tinkering and I can't remember all the changes I made or how I made this happen. Where is it executing the search for virtualenvwrapper.sh? SUPPLEMENTARY INFO $ echo $PATH /usr/lib64/qt-3.3/bin /usr/local/bin/ibm/lsf/9.1/linux2.6-glibc2.3-x8664/etc /usr/local/bin/ibm/lsf/9.1/linux2.6-glibc2.3-x8664/bin /usr/local/bin /bin /usr/bin /usr/local/sbin /usr/sbin /sbin/usr/local/bin/CASAVA-1.8.2/bin /usr/local/bin/blast /usr/local/bin/mirdeep2 /usr/local/bin/velvet $ sudo vim /.bashrc 1 #.bashrc 2 3 # Source global definitions 4 if -f /etc/bashrc ; then 5. /etc/bashrc 6 fi 7 8 # User specific aliases and functions.
Comments are closed.
|
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |