-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Successfully installed but locust command not found on macOS Sierra 10.12 #568
Comments
pip --version virtualenv --version |
Hi! Have you created, and activated, a virtualenv when you're doing this? I think one could get that error if Locust were installed system globally while the system global python bin path wasn't on the $PATH environment variable. |
I first tried to install the Locust on virtualenv and it failed due to the same error "error: could not create '/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7/greenlet': Operation not permitted". Then I used command "pip install --user locustio" to install. After run: $which -a python echo $PATH Should I add "/usr/bin/python" to my path? Thank you very much! |
I'd recommend installing Locust in a virtualenv. To do this, you need to:
See the virtualenv docs for more info. |
just for clarity.... the "Operation not permitted" error means you are trying to install locust into your system site-packages without sudo access. You could |
@heyman I have tried your way, it works! Thanks very much~~ |
@cgoldberg I have tried "sudo pip install locustio", not work for me. Then I tried "sudo -H pip install locustio", not work either. I don't know why...... |
try this pip install --user locustio |
ln ~/Library/Python/2.7/bin/locust /usr/local/bin |
I had the same problem and I found /Users//Library/Python was owned by root. chown -R :staff /Users//Library/Python |
combined what @AnastasyaHutasoi and @RogerGan said and it worked. I think it's because the default install of python on a mac needs to be replaced. Guess this could have been done by adding it to your |
just use a virtualenv |
I use
|
I have the same problem, except I also have the same problem for virtualenv. Should I use virtualenv for virtualenv? ;) |
reboot your machine may it will fix in my case it worked.I have python 3.6.9 in my machine |
@kevalRPansuriya solution worked for me. Thank you very much. |
Rebooting the system worked for me too. |
Rebooting worked foe me, thanks for the help |
Works for me, and don't forget to run |
On windows, you need to add |
Hi,
I use python version 2.7.10 on OSX 10.12.
I first installed the locustio using the command "pip install locustio" then I got an error of " error: could not create '/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7/greenlet': Operation not permitted"
Then I tried to use command "pip install --user locustio", it says lucustio installed successfully!
"Collecting locustio
Using cached locustio-0.7.5.tar.gz
Collecting gevent==1.1.1 (from locustio)
Using cached gevent-1.1.1-cp27-cp27m-macosx_10_6_intel.whl
Collecting flask>=0.10.1 (from locustio)
Using cached Flask-0.12-py2.py3-none-any.whl
Collecting requests>=2.9.1 (from locustio)
Using cached requests-2.13.0-py2.py3-none-any.whl
Collecting msgpack-python>=0.4.2 (from locustio)
Using cached msgpack-python-0.4.8.tar.gz
Collecting greenlet>=0.4.9 (from gevent==1.1.1->locustio)
Using cached greenlet-0.4.12.tar.gz
Collecting itsdangerous>=0.21 (from flask>=0.10.1->locustio)
Using cached itsdangerous-0.24.tar.gz
Collecting Werkzeug>=0.7 (from flask>=0.10.1->locustio)
Using cached Werkzeug-0.12.1-py2.py3-none-any.whl
Collecting Jinja2>=2.4 (from flask>=0.10.1->locustio)
Using cached Jinja2-2.9.5-py2.py3-none-any.whl
Collecting click>=2.0 (from flask>=0.10.1->locustio)
Using cached click-6.7-py2.py3-none-any.whl
Collecting MarkupSafe>=0.23 (from Jinja2>=2.4->flask>=0.10.1->locustio)
Using cached MarkupSafe-1.0.tar.gz
Installing collected packages: greenlet, gevent, itsdangerous, Werkzeug, MarkupSafe, Jinja2, click, flask, requests, msgpack-python, locustio
Running setup.py install for greenlet ... done
Running setup.py install for itsdangerous ... done
Running setup.py install for MarkupSafe ... done
Running setup.py install for msgpack-python ... done
Running setup.py install for locustio ... done
Successfully installed Jinja2-2.9.5 MarkupSafe-1.0 Werkzeug-0.12.1 click-6.7 flask-0.12 gevent-1.1.1 greenlet-0.4.12 itsdangerous-0.24 locustio-0.7.5 msgpack-python-0.4.8 requests-2.13.0
"
However, when I type locust I get an error of "command not found"?
Please does someone know what is going on?
Thank you!
The text was updated successfully, but these errors were encountered: