擅长:python、mysql、java
<p><strong>这里有个窍门:</strong></p>
<ol>
<li>在控制台中编写这个命令<code>pip uninstall locustio</code></li>
<li><p>这是将在控制台中返回的内容</p>
<p><code>Uninstalling locustio-0.12.2:
Would remove:
/home/elta/.local/bin/locust
/home/elta/.local/lib/python2.7/site-packages/locust/*
/home/elta/.local/lib/python2.7/site-packages/locustio-0.12.2.dist-info/*
Proceed (y/n)?</code></p></li>
<li><p>写<code>n</code>,并复制第一个目录,在我的例子中
<code>/home/elta/.local/bin/locust</code></p></li>
<li><p>现在这是您每次调用rocast命令时要使用的目录,例如</p></li>
</ol>
<p><code>/home/elta/.local/bin/locust version</code></p>
<p>。。。。不是最好的解决办法,但在工作完美,并做到了这一点</p>