Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

error in activating virtualenv

I got this error when I tried to activate my virtual env i.e. source ~/edu-venv/bin/activate

-bash: /home/vagrant/edu-venv/bin/activate: No such file or directory

what should I do ?

few hours back when I did vagrant halt I got this error

c:\Django\sites\vagrant>vagrant halt
[default] Attempting graceful shutdown of VM...
There was an error while executing `VBoxManage`, a CLI used by Vagrant
for controlling VirtualBox. The command and stderr is shown below.

Command: ["showvminfo", "507b7f20-3a71-40bd-90e6-63ecde326ccd", "--machinereadable"]

Stderr: VBoxManage.exe: error: Details: code E_ACCESSDENIED (0x80070005), callee IUnknown
VBoxManage.exe: error: Context: "COMGETTER(RemoteUSBDevices)(ComSafeArrayAsOutParam(coll))" at line 1840 of fi
le VBoxManageInfo.cpp

But then I immediately did vagrant up and it started and did vagrant halt it stopped gracefully then I shut down my pc. Now its not working

like image 837
user2539745 Avatar asked May 30 '26 07:05

user2539745


1 Answers

If you already are in your virtual-env, then you need to come out of it, in order to activate your environment. If you are somewhere here-

 $-home/vagrant/edu-venv

Then,you need to come out of that directory. Go to this instead -

 $-home/vagrant/

and, then try running your command -

 $-home/vagrant source edu-venv/bin/activate

Hope, this helps!

like image 103
mbhambry Avatar answered May 31 '26 21:05

mbhambry



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!