Can't use mkvirtualenv, "site-packages/_markerlib" permission denied

Edit, this seems to be a general permissions issue:

The installation directory you specified (via --install-dir, --prefix, or the distutils default setting) was:
Perhaps your account does not have write access to this directory?

I found this questions, which is exactly my problem, but I don't have a ~/.pydistutils.cfg file:

virtualenv: could not create '/lib/python2.7': Permission denied

I also definitely have setuptools and command line tools installed as mentioned here: Error when ex mkvirtualenv in Mountain Lion

I installed everything with sudo, but I can't use sudo here:

sudo: mkvirtualenv: command not found


mkvirtualenv myenv
......stuff here......

running install_lib
creating /Library/Python/2.7/site-packages/_markerlib
error: could not create '/Library/Python/2.7/site-packages/_markerlib': Permission denied
...Installing Setuptools...done.
Traceback (most recent call last):
  File "/usr/local/bin/virtualenv", line 8, in <module>
    load_entry_point('virtualenv==1.10.1', 'console_scripts', 'virtualenv')()
  File "/Library/Python/2.7/site-packages/", line 821, in main
  File "/Library/Python/2.7/site-packages/", line 961, in create_environment
    install_sdist('Setuptools', 'setuptools-*.tar.gz', py_executable, search_dirs)
  File "/Library/Python/2.7/site-packages/", line 932, in install_sdist
  File "/Library/Python/2.7/site-packages/", line 899, in call_subprocess
    % (cmd_desc, proc.returncode))
OSError: Command /Users/cbron/.virtualenvs/sam/bin/python install --single-version-externally-managed --record record failed with error code 1


sudo chown -R your-username:wheel /Library/Python/2.7/site-packages

You may need to chmod the permissions of the dir and/or uninstall and re-install virtualenv:

sudo pip uninstall virtualenv
sudo pip uninstall virtualenvwrapper
sudo pip install virtualenv 
sudo pip install virtualenvwrapper
echo "source `which`" >> ~/.bash_profile 
. ~/.bash_profile

Need Your Help

Calling an object from another class (java, javafx)

java xmpp javafx

I'm already working on this for weeks to get it working but without success. I'm using Javafx and java for implementing a small chat programm using the smack API (xmpp). The problem is how to get the

how to get $(foot,'> .t') in my code, i using jquery


var foot = document.createElement("div");