Skip to content

Instantly share code, notes, and snippets.

@heyman
Last active October 30, 2019 18:47
Show Gist options
  • Save heyman/95ee0df663b2d4b9d6fb to your computer and use it in GitHub Desktop.
Save heyman/95ee0df663b2d4b9d6fb to your computer and use it in GitHub Desktop.
Installing Locust on Ubuntu 14.04
sudo apt-get update
sudo apt-get install -y python-pip
sudo apt-get install -y python-dev
sudo apt-get install -y libzmq-dev
sudo pip install virtualenv
virtualenv venv
source venv/bin/activate
pip install locustio
pip install pyzmq
@gmg182ro
Copy link

gmg182ro commented Sep 5, 2014

HeyMan,

I am trying to install locust.io on a fresh installation of ubuntu 14 x64.

But when I start to start virtualenv it gives me this error 👍
Traceback (most recent call last):
File "/usr/local/bin/virtualenv", line 11, in
sys.exit(main())
File "/usr/local/lib/python2.7/dist-packages/virtualenv.py", line 824, in main
symlink=options.symlink)
File "/usr/local/lib/python2.7/dist-packages/virtualenv.py", line 984, in create_environment
site_packages=site_packages, clear=clear, symlink=symlink))
File "/usr/local/lib/python2.7/dist-packages/virtualenv.py", line 1158, in install_python
mkdir(lib_dir)
File "/usr/local/lib/python2.7/dist-packages/virtualenv.py", line 447, in mkdir
os.makedirs(path)
File "/usr/lib/python2.7/os.py", line 150, in makedirs
makedirs(head, mode)
File "/usr/lib/python2.7/os.py", line 150, in makedirs
makedirs(head, mode)
File "/usr/lib/python2.7/os.py", line 157, in makedirs
mkdir(name, mode)
OSError: [Errno 13] Permission denied: 'venv'

Any idea on how to fix this ?

Thank you

@florin-dita
Copy link

Hello,

From the error I see, when you are executing the virtualenv venv you do not have the permission to make a new folder. Please try sudo virtualenv venv and tell me if it's working.

Have a nice day!
Florin Dita

@rafalf
Copy link

rafalf commented Nov 7, 2016

Is virtualenv necessary?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment