安装locust.io错误(退出状态2失败)

时间:2018-08-01 10:40:13

标签: python locust

我尝试了两个命令:

1- pip install locustio
2- easy_install locustio

两者的结果都与下面所示的相同:


Searching for locustio Best match: locustio 0.8.1 Processing locustio-0.8.1-
py3.7.egg locustio 0.8.1 is already the active version in easy-install.pth 
Installing locust-script.py script to c:\python37\Scripts Installing 
locust.exe script to c:\python37\Scripts Installing locust.exe.manifest script 
to c:\python37\Scripts Using c:\python37\lib\site-packages\locustio-0.8.1-
py3.7.egg Processing dependencies for locustio Searching for gevent>=1.2.2 
Reading https://pypi.python.org/simple/gevent/ c:\python37\lib\site-packages
\setuptools\pep425tags.py:89: RuntimeWarning: Config variable 'Py_DEBUG ' is 
unset, Python ABI tag may be incorrect warn=(impl == 'cp')): c:\python37
\lib\site-packages\setuptools\pep425tags.py:93: RuntimeWarning: Config 
variable 'WITH_PYM ALLOC' is unset, Python ABI tag may be incorrect warn=(impl
 == 'cp')): Downloading https://files.pythonhosted.org/packages/e6/0a
/fc345c6e6161f84484870dbcaa58e427c10bd9bdcd 08a69bed3d6b398bf1/gevent-
1.3.5.tar.gz#sha256=7f15861f3cc92f49663ca88c4774d26d8044783a65fbc28071a2bd 
1c7bf36ff0 Best match: gevent 1.3.5 Processing gevent-1.3.5.tar.gz Writing 
C:\Users\work\AppData\Local\Temp\easy_install-rysrp8s8\gevent-1.3.5\setup.cfg 
Running gevent-1.3.5\setup.py -q bdist_egg --dist-dir C:\Users\work\AppData
\Local\Temp\easy_install- rysrp8s8\gevent-1.3.5\egg-dist-tmp-q9s0ninv warning:
 no files found matching 'changelog.rst' warning: no files found matching 
'Makefile.ext' warning: no files found matching 'known_failures.py' warning: 
no files found matching '.pep8' no previously-included directories found 
matching '_pycache_' warning: no previously-included files matching '.so' 
found anywhere in distribution warning: no previously-included files matching 
'.o' found anywhere in distribution warning: no previously-included files
 matching '.lo' found anywhere in distribution warning: no previously-included 
files matching '.la' found anywhere in distribution warning: no previously-
included files matching 'config.log' found anywhere in distribution warning: 
no previously-included files matching 'config.status' found anywhere in 
distribution no previously-included directories found matching 'doc_build' 
warning: no previously-included files matching '.pyc' found anywhere in 
distribution warning: no previously-included files matching '.coverage' found 
under directory 'src\greentest' no previously-included directories found 
matching 'src\greentest\htmlcov' warning: no previously-included files 
matching 'stamp-h?' found under directory 'deps\c-ares' warning: no 
previously-included files matching 'ares_build.h.orig' found under directory 
'deps\c-are s' no previously-included directories found matching 
'deps\libev.deps' no previously-included directories found matching 
'deps\libuv.deps' warning: no previously-included files matching 'Makefile' 
found under directory 'deps\libev' warning: no previously-included files 
matching 'libtool' found under directory 'deps\libev' warning: no previously-
included files matching 'stamp-h?' found under directory 'deps\libev' warning: 
no previously-included files matching 'config.h' found under directory 
'deps\libev' warning: no previously-included files matching '_corecffi.c'
 found under directory 'src\gevent' warning: no previously-included files found matching 'Makefile' warning: no previously-included files found matching
 'configure-output' warning: no files found matching 'Makefile.ext' warning:
 no previously-included files matching '.deps' found under directory 'deps\c-
ares' warning: no previously-included files matching '.libs' found under 
directory 'deps\c-ares' warning: no previously-included files matching '.deps'
 found under directory 'deps\libuv' warning: no previously-included files 
matching '.libs' found under directory 'deps\libuv' warning: no previously-
included files matching '.deps' found under directory 'deps\libev' warning: no 
previously-included files matching '.libs' found under directory 'deps\libev'
 cl : Command line error D8003 : missing source filename error: Setup script 
exited with error: command 'C:\Program Files\Microsoft Visual Studio 14.0\VC
 \BIN\cl.exe' failed with exit status 2

3 个答案:

答案 0 :(得分:2)

来自蝗虫文档:

  

在Windows上,运行pip install locustio   您已经正确设置了构建环境。在这种情况下,   使蝗虫在Windows上运行的最简单方法是先安装   预先为pyzmq构建二进制软件包(可能还为gevent和   也是绿色的

     

您可以找到以下非官方的预构建python软件包集合:   此处的窗口:http://www.lfd.uci.edu/~gohlke/pythonlibs/

     

下载预构建的.whl文件后,可以使用以下命令进行安装:

pip install pyzmq‑16.0.2‑cp36‑cp36m‑win32.whl
     

完成后,您应该可以:   pip install locustio

答案 1 :(得分:0)

您可能安装了locustio不支持的python版本。到目前为止,Python 2.7、3.4、3.5和3.6支持locustio。如果您使用的是较新版本的python(例如python 3.7),则安装将失败。

答案 2 :(得分:0)

我遇到了类似的问题,但是运行时遇到了pyspark.sql.functions.round exit code 1

我可以确认在python 3.7.0上失败,但是在python 3.6.7上可以正常运行且没有错误,因此这只是版本兼容性问题

相关问题