问题安装 Locustio(0.7.5) 包

如何解决问题安装 Locustio(0.7.5) 包

macOS == 10.15.7 || Django 项目 || Python 3.6.7

当我尝试从 pip 安装 locustio 0.7.5 版软件包时,它给出了错误。我已经尝试了所有版本的答案中提到的修复,这些修复在任何地方都与此类似,但没有任何进展。

当我运行以下命令时:- pip install locustio==0.7.5

Collecting locustio==0.7.5
  Using cached locustio-0.7.5-py3-none-any.whl
Requirement already satisfied: requests>=2.9.1 in /Users/anantkrishanjoshi/.virtualenvs/envdoconpy/lib/python3.9/site-packages (from locustio==0.7.5) (2.25.1)
Collecting flask>=0.10.1
  Using cached Flask-1.1.2-py2.py3-none-any.whl (94 kB)
Requirement already satisfied: msgpack-python>=0.4.2 in /Users/anantkrishanjoshi/.virtualenvs/envdoconpy/lib/python3.9/site-packages (from locustio==0.7.5) (0.5.6)
Collecting gevent==1.1.1
  Using cached gevent-1.1.1.tar.gz (2.0 MB)
Requirement already satisfied: greenlet>=0.4.9 in /Users/anantkrishanjoshi/.virtualenvs/envdoconpy/lib/python3.9/site-packages (from gevent==1.1.1->locustio==0.7.5) (1.0.0)
Requirement already satisfied: Werkzeug>=0.15 in /Users/anantkrishanjoshi/.virtualenvs/envdoconpy/lib/python3.9/site-packages (from flask>=0.10.1->locustio==0.7.5) (1.0.1)
Requirement already satisfied: click>=5.1 in /Users/anantkrishanjoshi/.virtualenvs/envdoconpy/lib/python3.9/site-packages (from flask>=0.10.1->locustio==0.7.5) (7.1.2)
Requirement already satisfied: itsdangerous>=0.24 in /Users/anantkrishanjoshi/.virtualenvs/envdoconpy/lib/python3.9/site-packages (from flask>=0.10.1->locustio==0.7.5) (1.1.0)
Requirement already satisfied: Jinja2>=2.10.1 in /Users/anantkrishanjoshi/.virtualenvs/envdoconpy/lib/python3.9/site-packages (from flask>=0.10.1->locustio==0.7.5) (2.11.3)
Requirement already satisfied: MarkupSafe>=0.23 in /Users/anantkrishanjoshi/.virtualenvs/envdoconpy/lib/python3.9/site-packages (from Jinja2>=2.10.1->flask>=0.10.1->locustio==0.7.5) (1.1.1)
Requirement already satisfied: certifi>=2017.4.17 in /Users/anantkrishanjoshi/.virtualenvs/envdoconpy/lib/python3.9/site-packages (from requests>=2.9.1->locustio==0.7.5) (2020.12.5)
Requirement already satisfied: urllib3<1.27,>=1.21.1 in /Users/anantkrishanjoshi/.virtualenvs/envdoconpy/lib/python3.9/site-packages (from requests>=2.9.1->locustio==0.7.5) (1.26.4)
Requirement already satisfied: idna<3,>=2.5 in /Users/anantkrishanjoshi/.virtualenvs/envdoconpy/lib/python3.9/site-packages (from requests>=2.9.1->locustio==0.7.5) (2.10)
Requirement already satisfied: chardet<5,>=3.0.2 in /Users/anantkrishanjoshi/.virtualenvs/envdoconpy/lib/python3.9/site-packages (from requests>=2.9.1->locustio==0.7.5) (4.0.0)
Building wheels for collected packages: gevent
  Building wheel for gevent (setup.py) ... error
  ERROR: Command errored out with exit status 1:
   command: /Users/anantkrishanjoshi/.virtualenvs/envdoconpy/bin/python -u -c 'import sys,setuptools,tokenize; sys.argv[0] = '"'"'/private/var/folders/jl/3rfnlg653b59kb51g4xm_msm0000gp/T/pip-install-cznfaibp/gevent_7a86cd903b4e4364b7265e8b69a43703/setup.py'"'"'; __file__='"'"'/private/var/folders/jl/3rfnlg653b59kb51g4xm_msm0000gp/T/pip-install-cznfaibp/gevent_7a86cd903b4e4364b7265e8b69a43703/setup.py'"'"';f=getattr(tokenize,'"'"'open'"'"',open)(__file__);code=f.read().replace('"'"'\r\n'"'"','"'"'\n'"'"');f.close();exec(compile(code,__file__,'"'"'exec'"'"'))' bdist_wheel -d /private/var/folders/jl/3rfnlg653b59kb51g4xm_msm0000gp/T/pip-wheel-7no23idl
       cwd: /private/var/folders/jl/3rfnlg653b59kb51g4xm_msm0000gp/T/pip-install-cznfaibp/gevent_7a86cd903b4e4364b7265e8b69a43703/
  Complete output (197 lines):
  running bdist_wheel
  running build
  running build_py
  creating build
  creating build/lib.macosx-10.15-x86_64-3.9
  creating build/lib.macosx-10.15-x86_64-3.9/gevent
  copying gevent/queue.py -> build/lib.macosx-10.15-x86_64-3.9/gevent
  copying gevent/greenlet.py -> build/lib.macosx-10.15-x86_64-3.9/gevent
  ....
  running build_ext
  Running '(cd  "/private/var/folders/jl/3rfnlg653b59kb51g4xm_msm0000gp/T/pip-install-cznfaibp/gevent_7a86cd903b4e4364b7265e8b69a43703/libev"  && /bin/sh ./configure   && cp config.h "$OLDPWD" ) > configure-output.txt' in /private/var/folders/jl/3rfnlg653b59kb51g4xm_msm0000gp/T/pip-install-cznfaibp/gevent_7a86cd903b4e4364b7265e8b69a43703/build/temp.macosx-10.15-x86_64-3.9/libev
  building 'gevent.corecext' extension
  creating build/temp.macosx-10.15-x86_64-3.9/gevent
  clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk -U__llvm__ -DLIBEV_EMBED=1 -DEV_COMMON= -DEV_CLEANUP_ENABLE=0 -DEV_EMBED_ENABLE=0 -DEV_PERIODIC_ENABLE=0 -Ibuild/temp.macosx-10.15-x86_64-3.9/libev -Ilibev -I/usr/local/include -I/usr/local/opt/openssl@1.1/include -I/usr/local/opt/sqlite/include -I/usr/local/opt/tcl-tk/include -I/Users/anantkrishanjoshi/.virtualenvs/envdoconpy/include -I/usr/local/Cellar/python@3.9/3.9.2_1/Frameworks/Python.framework/Versions/3.9/include/python3.9 -c gevent/gevent.corecext.c -o build/temp.macosx-10.15-x86_64-3.9/gevent/gevent.corecext.o
  In file included from gevent/gevent.corecext.c:241:
  In file included from gevent/libev.h:2:
  libev/ev.c:483:48: warning: '/*' within block comment [-Wcomment]
  /*#define MIN_INTERVAL  0.00000095367431640625 /* 1/2**20,good till 2200 */
                                                 ^
  libev/ev.c:1692:31: warning: 'extern' variable has an initializer [-Wextern-initializer]
    EV_API_DECL struct ev_loop *ev_default_loop_ptr = 0; /* needs to be initialised to make it a definition despite extern */
                                ^
  libev/ev.c:1801:19: warning: comparison of integers of different signs: 'int' and 'unsigned long' [-Wsign-compare]
    if (elem * ncur > MALLOC_ROUND - sizeof (void *) * 4)
        ~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  libev/ev.c:3715:34: warning: '&' within '|' [-Wbitwise-op-parentheses]
    fd_change (EV_A_ fd,w->events & EV__IOFDSET | EV_ANFD_REIFY);
                         ~~~~~~~~~~^~~~~~~~~~~~~ ~
  libev/ev.c:3715:34: note: place parentheses around the '&' expression to silence this warning
    fd_change (EV_A_ fd,w->events & EV__IOFDSET | EV_ANFD_REIFY);
                                   ^
                         (                      )
  gevent/gevent.corecext.c:2276:138: warning: code will never be executed [-Wunreachable-code]
          __pyx_t_1 = PyTuple_GET_ITEM(__pyx_t_2,__pyx_t_3); __Pyx_INCREF(__pyx_t_1); __pyx_t_3++; if (unlikely(0 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 121; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
                                                                                                                                           ^~~~~~~
  gevent/gevent.corecext.c:2268:137: warning: code will never be executed [-Wunreachable-code]
          __pyx_t_1 = PyList_GET_ITEM(__pyx_t_2,__pyx_t_3); __Pyx_INCREF(__pyx_t_1); __pyx_t_3++; if (unlikely(0 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 121; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
                                                                                                                                          
  gevent/gevent.corecext.c:3440:97: warning: comparison of integers of different signs: 'unsigned int' and 'int' [-Wsign-compare]
    __pyx_t_1 = __pyx_f_6gevent_8corecext__flags_to_int(__pyx_v_flags,0); if (unlikely(__pyx_t_1 == -1 && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 161; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
                                                                                        ~~~~~~~~~ ^  ~~
  gevent/gevent.corecext.c:435:43: note: expanded from macro 'unlikely'
    #define unlikely(x) __builtin_expect(!!(x),0)
                                            ^
  gevent/gevent.corecext.c:3713:140: warning: code will never be executed [-Wunreachable-code]
            __pyx_t_2 = PyTuple_GET_ITEM(__pyx_t_4,__pyx_t_5); __Pyx_INCREF(__pyx_t_2); __pyx_t_5++; if (unlikely(0 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 194; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
                                                                                                                                             ^~~~~~~
  gevent/gevent.corecext.c:3705:139: warning: code will never be executed [-Wunreachable-code]
            __pyx_t_2 = PyList_GET_ITEM(__pyx_t_4,__pyx_t_5); __Pyx_INCREF(__pyx_t_2); __pyx_t_5++; if (unlikely(0 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 194; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
                                                                                                                                            ^~~~~~~
  gevent/gevent.corecext.c:3927:138: warning: code will never be executed [-Wunreachable-code]
          __pyx_t_1 = PyTuple_GET_ITEM(__pyx_t_2,__pyx_t_3); __Pyx_INCREF(__pyx_t_1); __pyx_t_3++; if (unlikely(0 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 201; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
                                                                                                                                           ^~~~~~~
  gevent/gevent.corecext.c:3919:137: warning: code will never be executed [-Wunreachable-code]
          __pyx_t_1 = PyList_GET_ITEM(__pyx_t_2,__pyx_t_3); __Pyx_INCREF(__pyx_t_1); __pyx_t_3++; if (unlikely(0 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 201; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
                                                                                                                                          ^~~~~~~
  gevent/gevent.corecext.c:4678:99: warning: comparison of integers of different signs: 'unsigned int' and 'int' [-Wsign-compare]
      __pyx_t_2 = __pyx_f_6gevent_8corecext__flags_to_int(__pyx_v_flags,0); if (unlikely(__pyx_t_2 == -1 && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 260; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
                                                                                          ~~~~~~~~~ ^  ~~
  gevent/gevent.corecext.c:435:43: note: expanded from macro 'unlikely'
    #define unlikely(x) __builtin_expect(!!(x),0)
                                            ^
  gevent/gevent.corecext.c:5161:140: warning: code will never be executed [-Wunreachable-code]
            __pyx_t_6 = PyTuple_GET_ITEM(__pyx_t_3,__pyx_t_4); __Pyx_INCREF(__pyx_t_6); __pyx_t_4++; if (unlikely(0 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 294; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
                                                                                                                                             ^~~~~~~
  gevent/gevent.corecext.c:5153:139: warning: code will never be executed [-Wunreachable-code]
            __pyx_t_6 = PyList_GET_ITEM(__pyx_t_3,__pyx_t_4); __Pyx_INCREF(__pyx_t_6); __pyx_t_4++; if (unlikely(0 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 294; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
                                                                                                                                            ^~~~~~~
  gevent/gevent.corecext.c:8323:138: warning: code will never be executed [-Wunreachable-code]
          __pyx_t_2 = PyTuple_GET_ITEM(__pyx_t_3,__pyx_t_4); __Pyx_INCREF(__pyx_t_2); __pyx_t_4++; if (unlikely(0 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 465; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
                                                                                                                                           ^~~~~~~
  gevent/gevent.corecext.c:8315:137: warning: code will never be executed [-Wunreachable-code]
          __pyx_t_2 = PyList_GET_ITEM(__pyx_t_3,__pyx_t_4); __Pyx_INCREF(__pyx_t_2); __pyx_t_4++; if (unlikely(0 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 465; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
                                                                                                                                          ^~~~~~~
  gevent/gevent.corecext.c:43678:44: error: no member named 'tp_print' in 'struct _typeobject'
    __pyx_type_6gevent_8corecext__EVENTSType.tp_print = 0;
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^
  gevent/gevent.corecext.c:43685:21: error: no member named 'tp_print' in 'struct _typeobject'
    PyGeventLoop_Type.tp_print = 0;
    ~~~~~~~~~~~~~~~~~~ ^
  gevent/gevent.corecext.c:43748:21: error: no member named 'tp_print' in 'struct _typeobject'
    PyGeventStat_Type.tp_print = 0;
    ~~~~~~~~~~~~~~~~~ ^
  gevent/gevent.corecext.c:43752:60: error: no member named 'tp_print' in 'struct _typeobject'
    __pyx_type_6gevent_8corecext___pyx_scope_struct__genexpr.tp_print = 0;
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^
  gevent/gevent.corecext.c:45511:21: error: no member named 'exc_type' in 'struct _ts'
      *type = tstate->exc_type;
              ~~~~~~  ^
  gevent/gevent.corecext.c:45512:22: error: no member named 'exc_value' in 'struct _ts'; did you mean 'curexc_value'?
      *value = tstate->exc_value;
                       ^~~~~~~~~
                       curexc_value
  /usr/local/Cellar/python@3.9/3.9.2_1/Frameworks/Python.framework/Versions/3.9/include/python3.9/cpython/pystate.h:80:15: note: 'curexc_value' declared here
      PyObject *curexc_value;
                ^
  gevent/gevent.corecext.c:45513:19: error: no member named 'exc_traceback' in 'struct _ts'; did you mean 'curexc_traceback'?
      *tb = tstate->exc_traceback;
                    ^~~~~~~~~~~~~
                    curexc_traceback
  /usr/local/Cellar/python@3.9/3.9.2_1/Frameworks/Python.framework/Versions/3.9/include/python3.9/cpython/pystate.h:81:15: note: 'curexc_traceback' declared here
      PyObject *curexc_traceback;
                ^
  gevent/gevent.corecext.c:45525:24: error: no member named 'exc_type' in 'struct _ts'
      tmp_type = tstate->exc_type;
                 ~~~~~~  ^
  fatal error: too many errors emitted,stopping now [-ferror-limit=]
  20 warnings and 20 errors generated.
  error: command '/usr/bin/clang' failed with exit code 1
  ----------------------------------------
  ERROR: Failed building wheel for gevent
  Running setup.py clean for gevent
Failed to build gevent
Installing collected packages: gevent,flask,locustio
  Attempting uninstall: gevent
    Found existing installation: gevent 21.1.2
    Uninstalling gevent-21.1.2:
      Successfully uninstalled gevent-21.1.2
    Running setup.py install for gevent ... error
    ERROR: Command errored out with exit status 1:
     command: /Users/anantkrishanjoshi/.virtualenvs/envdoconpy/bin/python -u -c 'import sys,'"'"'exec'"'"'))' install --record /private/var/folders/jl/3rfnlg653b59kb51g4xm_msm0000gp/T/pip-record-9h82uty_/install-record.txt --single-version-externally-managed --compile --install-headers /Users/anantkrishanjoshi/.virtualenvs/envdoconpy/include/site/python3.9/gevent
         cwd: /private/var/folders/jl/3rfnlg653b59kb51g4xm_msm0000gp/T/pip-install-cznfaibp/gevent_7a86cd903b4e4364b7265e8b69a43703/
    Complete output (148 lines):
    running install
    running build
    running build_py
    running build_ext
    Running '(cd  "/private/var/folders/jl/3rfnlg653b59kb51g4xm_msm0000gp/T/pip-install-cznfaibp/gevent_7a86cd903b4e4364b7265e8b69a43703/libev"  && /bin/sh ./configure   && cp config.h "$OLDPWD" ) > configure-output.txt' in /private/var/folders/jl/3rfnlg653b59kb51g4xm_msm0000gp/T/pip-install-cznfaibp/gevent_7a86cd903b4e4364b7265e8b69a43703/build/temp.macosx-10.15-x86_64-3.9/libev
    building 'gevent.corecext' extension
    creating build/temp.macosx-10.15-x86_64-3.9/gevent
    clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk -U__llvm__ -DLIBEV_EMBED=1 -DEV_COMMON= -DEV_CLEANUP_ENABLE=0 -DEV_EMBED_ENABLE=0 -DEV_PERIODIC_ENABLE=0 -Ibuild/temp.macosx-10.15-x86_64-3.9/libev -Ilibev -I/usr/local/include -I/usr/local/opt/openssl@1.1/include -I/usr/local/opt/sqlite/include -I/usr/local/opt/tcl-tk/include -I/Users/anantkrishanjoshi/.virtualenvs/envdoconpy/include -I/usr/local/Cellar/python@3.9/3.9.2_1/Frameworks/Python.framework/Versions/3.9/include/python3.9 -c gevent/gevent.corecext.c -o build/temp.macosx-10.15-x86_64-3.9/gevent/gevent.corecext.o
    In file included from gevent/gevent.corecext.c:241:
    In file included from gevent/libev.h:2:
    libev/ev.c:483:48: warning: '/*' within block comment [-Wcomment]
    /*#define MIN_INTERVAL  0.00000095367431640625 /* 1/2**20,good till 2200 */
                                                   ^
    libev/ev.c:1692:31: warning: 'extern' variable has an initializer [-Wextern-initializer]
      EV_API_DECL struct ev_loop *ev_default_loop_ptr = 0; /* needs to be initialised to make it a definition despite extern */
                                  ^
    libev/ev.c:1801:19: warning: comparison of integers of different signs: 'int' and 'unsigned long' [-Wsign-compare]
      if (elem * ncur > MALLOC_ROUND - sizeof (void *) * 4)
          ~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    libev/ev.c:3715:34: warning: '&' within '|' [-Wbitwise-op-parentheses]
      fd_change (EV_A_ fd,w->events & EV__IOFDSET | EV_ANFD_REIFY);
                           ~~~~~~~~~~^~~~~~~~~~~~~ ~
    libev/ev.c:3715:34: note: place parentheses around the '&' expression to silence this warning
      fd_change (EV_A_ fd,w->events & EV__IOFDSET | EV_ANFD_REIFY);
                                     ^
                           (                      )
    gevent/gevent.corecext.c:2276:138: warning: code will never be executed [-Wunreachable-code]
            __pyx_t_1 = PyTuple_GET_ITEM(__pyx_t_2,__pyx_t_3); __Pyx_INCREF(__pyx_t_1); __pyx_t_3++; if (unlikely(0 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 121; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
                                                                                                                                             ^~~~~~~
    gevent/gevent.corecext.c:2268:137: warning: code will never be executed [-Wunreachable-code]
            __pyx_t_1 = PyList_GET_ITEM(__pyx_t_2,__pyx_t_3); __Pyx_INCREF(__pyx_t_1); __pyx_t_3++; if (unlikely(0 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 121; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
                                                                                                                                            ^~~~~~~
    gevent/gevent.corecext.c:2664:138: warning: code will never be executed [-Wunreachable-code]
            __pyx_t_1 = PyTuple_GET_ITEM(__pyx_t_2,__pyx_t_3); __Pyx_INCREF(__pyx_t_1); __pyx_t_3++; if (unlikely(0 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 144; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
                                                                                                                                             ^~~~~~~
    gevent/gevent.corecext.c:2656:137: warning: code will never be executed [-Wunreachable-code]
            __pyx_t_1 = PyList_GET_ITEM(__pyx_t_2,__pyx_t_3); __Pyx_INCREF(__pyx_t_1); __pyx_t_3++; if (unlikely(0 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 144; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
                                                                                                                                            ^~~~~~~
    gevent/gevent.corecext.c:3141:142: warning: code will never be executed [-Wunreachable-code]
                __pyx_t_3 = PyTuple_GET_ITEM(__pyx_t_8,__pyx_t_9); __Pyx_INCREF(__pyx_t_3); __pyx_t_9++; if (unlikely(0 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 171; __pyx_clineno = __LINE__; goto __pyx_L5_error;}
                                                                                                                                                 ^~~~~~~
    gevent/gevent.corecext.c:3133:141: warning: code will never be executed [-Wunreachable-code]
                __pyx_t_3 = PyList_GET_ITEM(__pyx_t_8,__pyx_t_9); __Pyx_INCREF(__pyx_t_3); __pyx_t_9++; if (unlikely(0 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 171; __pyx_clineno = __LINE__; goto __pyx_L5_error;}
                                                                                                                                                ^~~~~~~
    gevent/gevent.corecext.c:3440:97: warning: comparison of integers of different signs: 'unsigned int' and 'int' [-Wsign-compare]
      __pyx_t_1 = __pyx_f_6gevent_8corecext__flags_to_int(__pyx_v_flags,0); if (unlikely(__pyx_t_1 == -1 && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 161; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
                                                                                          ~~~~~~~~~ ^  ~~
    gevent/gevent.corecext.c:435:43: note: expanded from macro 'unlikely'
      #define unlikely(x) __builtin_expect(!!(x),0)
                                              ^
    gevent/gevent.corecext.c:3713:140: warning: code will never be executed [-Wunreachable-code]
              __pyx_t_2 = PyTuple_GET_ITEM(__pyx_t_4,__pyx_t_5); __Pyx_INCREF(__pyx_t_2); __pyx_t_5++; if (unlikely(0 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 194; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
                                                                                                                                               ^~~~~~~
    gevent/gevent.corecext.c:3705:139: warning: code will never be executed [-Wunreachable-code]
              __pyx_t_2 = PyList_GET_ITEM(__pyx_t_4,__pyx_t_5); __Pyx_INCREF(__pyx_t_2); __pyx_t_5++; if (unlikely(0 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 194; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
                                                                                                                                              ^~~~~~~
    gevent/gevent.corecext.c:3927:138: warning: code will never be executed [-Wunreachable-code]
            __pyx_t_1 = PyTuple_GET_ITEM(__pyx_t_2,__pyx_t_3); __Pyx_INCREF(__pyx_t_1); __pyx_t_3++; if (unlikely(0 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 201; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
                                                                                                                                             ^~~~~~~
    gevent/gevent.corecext.c:3919:137: warning: code will never be executed [-Wunreachable-code]
            __pyx_t_1 = PyList_GET_ITEM(__pyx_t_2,__pyx_t_3); __Pyx_INCREF(__pyx_t_1); __pyx_t_3++; if (unlikely(0 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 201; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
                                                                                                                                            ^~~~~~~
    gevent/gevent.corecext.c:4678:99: warning: comparison of integers of different signs: 'unsigned int' and 'int' [-Wsign-compare]
        __pyx_t_2 = __pyx_f_6gevent_8corecext__flags_to_int(__pyx_v_flags,0); if (unlikely(__pyx_t_2 == -1 && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 260; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
                                                                                            ~~~~~~~~~ ^  ~~
    gevent/gevent.corecext.c:435:43: note: expanded from macro 'unlikely'
      #define unlikely(x) __builtin_expect(!!(x),0)
                                              ^
    gevent/gevent.corecext.c:5161:140: warning: code will never be executed [-Wunreachable-code]
              __pyx_t_6 = PyTuple_GET_ITEM(__pyx_t_3,__pyx_t_4); __Pyx_INCREF(__pyx_t_6); __pyx_t_4++; if (unlikely(0 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 294; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
                                                                                                                                              
    gevent/gevent.corecext.c:43678:44: error: no member named 'tp_print' in 'struct _typeobject'
      __pyx_type_6gevent_8corecext__EVENTSType.tp_print = 0;
      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^
    gevent/gevent.corecext.c:43685:21: error: no member named 'tp_print' in 'struct _typeobject'
      PyGeventLoop_Type.tp_print = 0;
      ~~~~~~~~~~~~~~~~~ ^
      __pyx_type_6gevent_8corecext___pyx_scope_struct__genexpr.tp_print = 0;
      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^
    gevent/gevent.corecext.c:45511:21: error: no member named 'exc_type' in 'struct _ts'
        *type = tstate->exc_type;
                ~~~~~~  ^
    gevent/gevent.corecext.c:45512:22: error: no member named 'exc_value' in 'struct _ts'; did you mean 'curexc_value'?
        *value = tstate->exc_value;
                         ^~~~~~~~~
                         curexc_value
    /usr/local/Cellar/python@3.9/3.9.2_1/Frameworks/Python.framework/Versions/3.9/include/python3.9/cpython/pystate.h:80:15: note: 'curexc_value' declared here
        PyObject *curexc_value;
                  ^
    gevent/gevent.corecext.c:45513:19: error: no member named 'exc_traceback' in 'struct _ts'; did you mean 'curexc_traceback'?
        *tb = tstate->exc_traceback;
                      ^~~~~~~~~~~~~
                      curexc_traceback
    /usr/local/Cellar/python@3.9/3.9.2_1/Frameworks/Python.framework/Versions/3.9/include/python3.9/cpython/pystate.h:81:15: note: 'curexc_traceback' declared here
        PyObject *curexc_traceback;
                  ^
    gevent/gevent.corecext.c:45525:24: error: no member named 'exc_type' in 'struct _ts'
        tmp_type = tstate->exc_type;
                   ~~~~~~  ^
    fatal error: too many errors emitted,stopping now [-ferror-limit=]
    20 warnings and 20 errors generated.
    error: command '/usr/bin/clang' failed with exit code 1
    ----------------------------------------
  Rolling back uninstall of gevent
  Moving to /Users/anantkrishanjoshi/.virtualenvs/envdoconpy/lib/python3.9/site-packages/gevent-21.1.2.dist-info/
   from /Users/anantkrishanjoshi/.virtualenvs/envdoconpy/lib/python3.9/site-packages/~event-21.1.2.dist-info
  Moving to /Users/anantkrishanjoshi/.virtualenvs/envdoconpy/lib/python3.9/site-packages/gevent/
   from /Users/anantkrishanjoshi/.virtualenvs/envdoconpy/lib/python3.9/site-packages/~event
ERROR: Command errored out with exit status 1: /Users/anantkrishanjoshi/.virtualenvs/envdoconpy/bin/python -u -c 'import sys,'"'"'exec'"'"'))' install --record /private/var/folders/jl/3rfnlg653b59kb51g4xm_msm0000gp/T/pip-record-9h82uty_/install-record.txt --single-version-externally-managed --compile --install-headers /Users/anantkrishanjoshi/.virtualenvs/envdoconpy/include/site/python3.9/gevent Check the logs for full command output.

我也尝试过单独安装 gevent,但它也卡住了。有人可以为此提出一些修复建议吗。

解决方法

您应该安装 locust 包,它不再是 locustio:

pip install locust

Locust 软件包已从“locustio”移至“locust”。请更新 您的参考(或者如果您不想将您的版本固定到 0.14.6 更新到 1.0)

,

根据 Vova 的回答,问题很可能是您使用的是带有非常旧软件包的当前版本的 Python。 gevent 1.1.1 页面(您尝试安装的版本)说它支持 Python 3.3 和 3.4;您使用的是 3.9 (/Users/anantkrishanjoshi/.virtualenvs/envdoconpy/lib/python3.9/site-packages),而不是您认为的 3.6.7。

您需要降级 Python 版本或使用更新版本的 gevent/Locust。

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。

相关推荐


使用本地python环境可以成功执行 import pandas as pd import matplotlib.pyplot as plt # 设置字体 plt.rcParams[&#39;font.sans-serif&#39;] = [&#39;SimHei&#39;] # 能正确显示负号 p
错误1:Request method ‘DELETE‘ not supported 错误还原:controller层有一个接口,访问该接口时报错:Request method ‘DELETE‘ not supported 错误原因:没有接收到前端传入的参数,修改为如下 参考 错误2:cannot r
错误1:启动docker镜像时报错:Error response from daemon: driver failed programming external connectivity on endpoint quirky_allen 解决方法:重启docker -&gt; systemctl r
错误1:private field ‘xxx‘ is never assigned 按Altʾnter快捷键,选择第2项 参考:https://blog.csdn.net/shi_hong_fei_hei/article/details/88814070 错误2:启动时报错,不能找到主启动类 #
报错如下,通过源不能下载,最后警告pip需升级版本 Requirement already satisfied: pip in c:\users\ychen\appdata\local\programs\python\python310\lib\site-packages (22.0.4) Coll
错误1:maven打包报错 错误还原:使用maven打包项目时报错如下 [ERROR] Failed to execute goal org.apache.maven.plugins:maven-resources-plugin:3.2.0:resources (default-resources)
错误1:服务调用时报错 服务消费者模块assess通过openFeign调用服务提供者模块hires 如下为服务提供者模块hires的控制层接口 @RestController @RequestMapping(&quot;/hires&quot;) public class FeignControl
错误1:运行项目后报如下错误 解决方案 报错2:Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.8.1:compile (default-compile) on project sb 解决方案:在pom.
参考 错误原因 过滤器或拦截器在生效时,redisTemplate还没有注入 解决方案:在注入容器时就生效 @Component //项目运行时就注入Spring容器 public class RedisBean { @Resource private RedisTemplate&lt;String
使用vite构建项目报错 C:\Users\ychen\work&gt;npm init @vitejs/app @vitejs/create-app is deprecated, use npm init vite instead C:\Users\ychen\AppData\Local\npm-
参考1 参考2 解决方案 # 点击安装源 协议选择 http:// 路径填写 mirrors.aliyun.com/centos/8.3.2011/BaseOS/x86_64/os URL类型 软件库URL 其他路径 # 版本 7 mirrors.aliyun.com/centos/7/os/x86
报错1 [root@slave1 data_mocker]# kafka-console-consumer.sh --bootstrap-server slave1:9092 --topic topic_db [2023-12-19 18:31:12,770] WARN [Consumer clie
错误1 # 重写数据 hive (edu)&gt; insert overwrite table dwd_trade_cart_add_inc &gt; select data.id, &gt; data.user_id, &gt; data.course_id, &gt; date_format(
错误1 hive (edu)&gt; insert into huanhuan values(1,&#39;haoge&#39;); Query ID = root_20240110071417_fe1517ad-3607-41f4-bdcf-d00b98ac443e Total jobs = 1
报错1:执行到如下就不执行了,没有显示Successfully registered new MBean. [root@slave1 bin]# /usr/local/software/flume-1.9.0/bin/flume-ng agent -n a1 -c /usr/local/softwa
虚拟及没有启动任何服务器查看jps会显示jps,如果没有显示任何东西 [root@slave2 ~]# jps 9647 Jps 解决方案 # 进入/tmp查看 [root@slave1 dfs]# cd /tmp [root@slave1 tmp]# ll 总用量 48 drwxr-xr-x. 2
报错1 hive&gt; show databases; OK Failed with exception java.io.IOException:java.lang.RuntimeException: Error in configuring object Time taken: 0.474 se
报错1 [root@localhost ~]# vim -bash: vim: 未找到命令 安装vim yum -y install vim* # 查看是否安装成功 [root@hadoop01 hadoop]# rpm -qa |grep vim vim-X11-7.4.629-8.el7_9.x
修改hadoop配置 vi /usr/local/software/hadoop-2.9.2/etc/hadoop/yarn-site.xml # 添加如下 &lt;configuration&gt; &lt;property&gt; &lt;name&gt;yarn.nodemanager.res