vectorbt icon indicating copy to clipboard operation
vectorbt copied to clipboard

Python 3.11

Open emersonroldao opened this issue 2 years ago • 4 comments

Vectorbt python 3.11 ?

emersonroldao avatar Jul 17 '23 02:07 emersonroldao

Python 3.11 requires many adjustments, it will be added once Python 3.12 comes out. Only the pro version supports it currently.

polakowo avatar Jul 19 '23 15:07 polakowo

it's a pity that I just found it and wanna take a try, looking forward to it with Python3.11...

Miguok avatar Sep 19 '23 11:09 Miguok

Try this guys : 1/ Download package (git clone, or download zip) 2/ Edit setup.py :

  • Line 24 : 'numpy>=1.23.2'
  • Line 30 : "numba>=0.58.1; python_version < '3.12'",
  • Line 31: "numba>=0.58.1; python_version >= '3.12'",
  • Line 62 : python_requires='>=3.6, <3.12',
  • Add at line 74 : 'Programming Language :: Python :: 3.11',

3/ Then run : pip install -e vectorbt

You're welcome 👍

Otnicka1 avatar Dec 29 '23 15:12 Otnicka1

@Otnicka1 I tried doing this for Python 3.12 but get an error during the wheel build

I took your changes and modified to:

Line 24 : 'numpy>=1.23.2'
Line 30 : "numba>=0.58.1; python_version < '3.13'",
Line 31: "numba>=0.58.1; python_version >= '3.12'",
Line 62 : python_requires='>=3.6, <3.13',
Add at line 74 : 'Programming Language :: Python :: 3.12',

But I get an error during the build:

Getting requirements to build wheel ... error error: subprocess-exited-with-error

× Getting requirements to build wheel did not run successfully. │ exit code: 1 ╰─> [21 lines of output] Traceback (most recent call last): File "C:\Users\vp\AppData\Local\Programs\Python\Python312\Lib\site-packages\pip_vendor\pyproject_hooks_in_process_in_process.py", line 353, in main() File "C:\Users\vp\AppData\Local\Programs\Python\Python312\Lib\site-packages\pip_vendor\pyproject_hooks_in_process_in_process.py", line 335, in main json_out['return_val'] = hook(**hook_input['kwargs']) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\vp\AppData\Local\Programs\Python\Python312\Lib\site-packages\pip_vendor\pyproject_hooks_in_process_in_process.py", line 118, in get_requires_for_build_wheel return hook(config_settings) ^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\vp\AppData\Local\Temp\pip-build-env-inog6tw6\overlay\Lib\site-packages\setuptools\build_meta.py", line 325, in get_requires_for_build_wheel return self._get_build_requires(config_settings, requirements=['wheel']) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\vp\AppData\Local\Temp\pip-build-env-inog6tw6\overlay\Lib\site-packages\setuptools\build_meta.py", line 295, in _get_build_requires self.run_setup() File "C:\Users\vp\AppData\Local\Temp\pip-build-env-inog6tw6\overlay\Lib\site-packages\setuptools\build_meta.py", line 480, in run_setup super(_BuildMetaLegacyBackend, self).run_setup(setup_script=setup_script) File "C:\Users\vp\AppData\Local\Temp\pip-build-env-inog6tw6\overlay\Lib\site-packages\setuptools\build_meta.py", line 311, in run_setup exec(code, locals()) File "", line 51, in File "", line 48, in _guard_py_ver RuntimeError: Cannot install on Python version 3.12.0; only versions >=3.8,<3.12 are supported. [end of output]

note: This error originates from a subprocess, and is likely not a problem with pip. error: subprocess-exited-with-error

× Getting requirements to build wheel did not run successfully. │ exit code: 1 ╰─> See above for output.

note: This error originates from a subprocess, and is likely not a problem with pip.

vpansare1 avatar Jan 13 '24 01:01 vpansare1