Scorpi000/QuantStudio

安装报错

Opened this issue · 2 comments

frr717 commented

安装的时候一直报这个错:
Collecting QuantStudio
Using cached QuantStudio-0.0.9-py3-none-any.whl (1.1 MB)
Requirement already satisfied: numpy>=1.14.4+mkl in c:\users\administrator\appdata\local\programs\python\python310\lib\site-packages (from QuantStudio) (1.24.3)
Collecting numexpr>=2.6.1 (from QuantStudio)
Downloading numexpr-2.8.5-cp310-cp310-win_amd64.whl (94 kB)
---------------------------------------- 94.4/94.4 kB ? eta 0:00:00
Collecting pandas<0.24.0,>=0.19.0 (from QuantStudio)
Using cached pandas-0.23.4.tar.gz (10.5 MB)
Preparing metadata (setup.py) ... error
error: subprocess-exited-with-error

× python setup.py egg_info did not run successfully.
│ exit code: 1
╰─> [15 lines of output]
C:\Users\Administrator\AppData\Local\Temp\pip-install-9lsgsyo_\pandas_bc615cf02b5641b4b280639b341570a3\setup.py:12: DeprecationWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html
import pkg_resources
C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\site-packages\setuptools_init_.py:84: _DeprecatedInstaller: setuptools.installer and fetch_build_eggs are deprecated.
!!

          ********************************************************************************
          Requirements should be satisfied by a PEP 517 installer.
          If you are using pip, you can try `pip install --use-pep517`.
          ********************************************************************************

  !!
    dist.fetch_build_eggs(dist.setup_requires)
  error in pandas setup command: 'install_requires' must be a string or list of strings containing valid project/version requirement specifiers; Expected end or semicolon (after version specifier)
      pytz >= 2011k
           ~~~~~~~^
  [end of output]

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

× Encountered error while generating package metadata.
╰─> See above for output.

note: This is an issue with the package mentioned above, not pip.
hint: See above for details.

I also encountered the same problem. The issue is due to QuantStudio depending on specific versions of numpy and pandas, as detailed in the setup.py file under the package directory. These versions of the packages also depend on specific Python versions.

I tried reverting back to Python 3.6 and was able to install QuantStudio using pip directly. I hope this helps you.

Python 3.7 works as well.