I had same problem when tried rename directory which was set for virtualenv. The only solution for me was making another virtual environment again and moving everything in it.