I\'m trying to set up a virtualenv on Ubuntu 12.04 with Python 2.7 using vagrant but having same issues. it seems like this issues is seen only when \"vagrant up\" is issued
This error can be fixed if you create the virtual env outside the /vagrant/ shared folder...
If go to the home folder of your vagrant user, you can create the virtualenv in there without this problem!
Just the venv must be out of this /vagrant/ directory... after that you can go work as usually activating this venv and working with your sorce code in the usual /vagrat/ shared dir...
Use this
virtualenv --python= <#Python path for specific version#> <#Folder name#> --always-copy
Example:
virtualenv --python=/usr/local/bin/python3.7 venv --always-copy
I have had a similar problem. Just restarting the vagrant box was enough to solve it.
This worked for me:
sudo virtualenv venv
I found the issue and fixed it. Just start your git bash/cmd prompt console as an administrator. Then, vagrant up > setup your virtual env. It should be a cake walk.
Thanks Venkat
The solution is to use --always-copy
. See here for the gory details.