Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Installation with pip : "ModuleNotFoundError: No module named 'numpy'" #13

Closed
Walz opened this issue Oct 14, 2018 · 2 comments
Closed
Labels
Installation Anything happening during building/installation of Pyfhel

Comments

@Walz
Copy link

Walz commented Oct 14, 2018

Hello,

When installing Pyfhel with pip I got the following error :

Collecting Pyfhel
  Downloading https://files.pythonhosted.org/packages/36/ff/dddccc7f782acb14f62f2cd66bf54b90269fd7a30e9771a1378df2ffca9a/Pyfhel-2.0.0a4.tar.gz (745kB)
    100% |████████████████████████████████| 747kB 2.8MB/s 
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/tmp/pip-install-e3lbn659/Pyfhel/setup.py", line 7, in <module>
        import numpy
    ModuleNotFoundError: No module named 'numpy'
    
    ----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-install-e3lbn659/Pyfhel/

I think, it means that numpy should be moved from install_requires to setup_requires in setup.py.

@ibarrond
Copy link
Owner

ibarrond commented Oct 15, 2018

You're right! It is also required in the package (thus I'm leaving it in the install_requires), but I added it to the setup_requires. It is wonderful to have such short errors with such clearly proposed solutions. Thanks!

69dd3ae

@ibarrond
Copy link
Owner

Clossing the issue, since both the setup.py and the newly created requirements.txt include numpy.

@ibarrond ibarrond added the Installation Anything happening during building/installation of Pyfhel label Oct 10, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Installation Anything happening during building/installation of Pyfhel
Projects
None yet
Development

No branches or pull requests

2 participants