Posted  by  admin

Usr/local/bin/virtualenvwrapper.sh No Such File Or Directory

As I'm starting to learn Python programming, I installed virtualenvwrapper via these commands:

I've been getting this error every time I open a terminal (via guake)

I'm using Linux Mint 10 64bit GNOME.

Is there any way to solve this error I see in the terminal?

I've tried searching via google but none of them seems to fix this problem.

Thank you in advance.

Edit

This is what is written in /home/user/.bashrc

Please help :(

kohrime
kohrimekohrime

7 Answers

According to this, 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.

The APT package has added the file /etc/bash_completion.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).

rahmurahmu

For those who come afterwards, I had the same problem on Ubuntu 12 and solved this way:

  1. Switch to correct user:

  2. Make sure your WORKON_HOME variable is set to the path you want it to be (defaults to ~/.virtualenv)

  3. Then add these two lines before your source command:

  4. Then save and re-source your bashrc:

x - yx - y

I had similar issues. I removed any settings in my ~/.bashrc related to virtualenv, eg:

That fixed the errors.

MartlarkMartlark

For complete removal under debian remove following:

That worked for me

Also delete files from python's dist-packages (depends on distro and python version)

Lu.nemecLu.nemec

You need to set the VIRTUALENVWRAPPER_LOG_DIR environment variable. Add this to your .bashrc file:

John KeyesJohn Keyes

I've had a similar problem while trying to make it work on Debian. I needed to run it as a user other than the X user, but it used the ~/.virtualenvs directory of the X user for WORKON_HOME, VIRTUALENVWRAPPER_LOG_DIR and VIRTUALENVWRAPPER_HOOK_DIR.

It works now that I set those variables to a proper directory in ~/.bashrc.

AleksejAleksej

Try and use the export command like this:

In my case, the hook.log was created in the same path that my virtualenvwrapper config where in /home/my_user/.virtualenvs, so what I did was to export the variable like this

Andy
user2971029user2971029

Not the answer you're looking for? Browse other questions tagged pythonlinux or ask your own question.

Join GitHub today

GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.

Sign up New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Comments

Contributor

commented Aug 29, 2017
edited

@victorneo, I got problem running this script

The installation of virtualenvwrapper was removed in 7fe0e16#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 easy_install pip it.

So here is what works for me:

If it's okay, I'd make the PR.

Member

commented Aug 29, 2017

Hey Achi,Please feel free to fix it and send the PR!
On Tue, Aug 29, 2017, 13:01 Achi Chen ***@***.***> wrote: @victorneo <https://github.com/victorneo>, 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 7fe0e16 #diff-140c1f12feeb2c52dfbeb2da6066a73a <7fe0e16#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 easy_install pip it. So here is what works for me: sudo easy_install --upgrade pip sudo pip install virtualenvwrapper source '$HOMEBREW_PREFIX/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 <#6>, or mute the thread <https://github.com/notifications/unsubscribe-auth/AAo9lNVsZeZtp5GEGqxWMasBIT0BmGlaks5sc5slgaJpZM4PFYiC> .

referenced this issue Aug 29, 2017

Merged

Install/Upgrade system pip and install virtualenv and virtualenvwrapper #7

Contributor Author

commented Aug 29, 2017

Got it, @victorneo !!
PR is created.

Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment