mincong-h / finance-toolkit

Finance Toolkit
3 stars 1 forks source link

ModuleNotFoundError: No module named 'numpy' #26

Closed mincong-h closed 10 months ago

mincong-h commented 3 years ago
python3 setup.py install
Running pandas-1.2.0/setup.py -q bdist_egg --dist-dir /var/folders/dh/hj25ypn97tn8qhsm0k58hpn00000gn/T/easy_install-yxb39pyh/pandas-1.2.0/egg-dist-tmp-z2uj35gt
Traceback (most recent call last):
  File "/Users/minconghuang/github/finance-toolkit/venv/lib/python3.7/site-packages/setuptools/sandbox.py", line 154, in save_modules
    yield saved
  File "/Users/minconghuang/github/finance-toolkit/venv/lib/python3.7/site-packages/setuptools/sandbox.py", line 195, in setup_context
    yield
  File "/Users/minconghuang/github/finance-toolkit/venv/lib/python3.7/site-packages/setuptools/sandbox.py", line 250, in run_setup
    _execfile(setup_script, ns)
  File "/Users/minconghuang/github/finance-toolkit/venv/lib/python3.7/site-packages/setuptools/sandbox.py", line 45, in _execfile
    exec(code, globals, locals)
  File "/var/folders/dh/hj25ypn97tn8qhsm0k58hpn00000gn/T/easy_install-yxb39pyh/pandas-1.2.0/setup.py", line 20, in <module>
ModuleNotFoundError: No module named 'numpy'
mincong-h commented 3 years ago

https://stackoverflow.com/a/61762525/4381330

If you have all your dependencies and other metadata defined in setup.cfg, just create a minimal setup.py file in the same directory that looks like this:

from setuptools import setup
setup()

This is what we did 🤔

mincong-h commented 3 years ago

And setup.cfg contains

[options]
packages = finance_toolkit
install_requires =
    docopt == 0.6.2
    numpy == 1.19.4
    pandas == 1.2.0
    pyyaml == 5.1.2