![]() ![]() ![]()
#Usr/local/bin/virtualenvwrapper.sh no such file or directory installA video I am watching recommends installing virtualenvwrapper so I just tried this, following these instructions: and I first ran pip install virtualenvwrapper which seemed to work fine. I want to install Django but it first recommends a virtualenv / virtualenvwrapper. I'm a bit of a newbie to Python and definitely to virtual environments and Django. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. We use cookies for various purposes including analytics. Under PIP, VIRTUALENV + VIRTUALENVWRAPPER subtitle, it says And now setup. Also note that the file location of ~ is NOT the same as /home, that's one mistake I made.Apologies if this is a basic question: I have been trying to setup Python on my laptop by following the tutorial here. This will save you a lot of time and frustration. ![]() Your computer's file system may be set up slightly different from mine so don't blindly copy-paste the file paths I used. My advice to readers of this question who are stumped with similar problems: triple-check the paths you are using by cd-ing into the folders, and also check for spelling errors in what you are typing. After deleting the stray Python 3.8 I ran these commands and it finally worked!!!! On advice from my mentor I used the file manager to delete the stray Python 3.8, which may have helped with the virtualenvwrapper problem. #Usr/local/bin/virtualenvwrapper.sh no such file or directory codeI also had a stray installation of Python 3.8 that it seems I had installed in one of my folders that I use for code (my understanding is that Python installations should automatically go into one of the root folders like /usr/bin). I finally got it to work! I kept playing around with it and double-checking that all the paths were correct and I did everything in the right order. I am not an expert by any means in these matters, but avoiding side effects sounds good to me. I have also seen several articles warning that I should really use python -m pip install (or python3 -m pip install?) instead of plain pip install, because plain pip install can cause unintended side effects. Note: This article warns me not to use sudo with pip because "If you think you need to use sudo, you're probably trying to modify a distribution-owned file", which is apparently Very Bad. #Usr/local/bin/virtualenvwrapper.sh no such file or directory how toI don't understand why Bash is saying "No such file or directory" when it is in fact there (inexact error message that could be improved?), or more importantly how to fix this problem. (with the paths corrected for my filesystem setup.) But still No such file or directory.Įxport VIRTUALENVWRAPPER_PYTHON=/usr/local/bin/pythonĮxport VIRTUALENVWRAPPER_VIRTUALENV=/usr/local/bin/virtualenv ![]() #Usr/local/bin/virtualenvwrapper.sh no such file or directory updateSame result though - No such file or directory.Īlso tried sudo apt-get update and it successfully updated a bunch of stuff. I checked that this is in fact where my python3 installation lives. Searched StackOverflow, followed the instructions in Issue installing Virtualenvwrapper on Ubuntu 18.04?:Įxport VIRTUALENVWRAPPER_LOG_DIR="$WORKON_HOME"Įxport VIRTUALENVWRAPPER_HOOK_DIR="$WORKON_HOME"Įxport VIRTUALENVWRAPPER_PYTHON=/usr/bin/python3 Tried again with the new path: source /home/.local/bin/virtualenvwrapper.shīash: /home/.local/bin/virtualenvwrapper.sh: No such file or directoryĪgh, ok. Ok, so I went looking for virtualenvwrapper.sh. $ source /usr/local/bin/virtualenvwrapper.shĮrror: bash: /usr/local/bin/virtualenvwrapper.sh: No such file or directory I am installing virtualenvwrapper on Ubuntu 18.04. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |