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 errors with pip #9

Open
azournas opened this issue Jul 10, 2023 · 0 comments
Open

Installation errors with pip #9

azournas opened this issue Jul 10, 2023 · 0 comments

Comments

@azournas
Copy link

Describe the bug
conda env create -f environment.yml does not work. I suspect that this is due to Anaconda removing support for any version <3.8. I tried the installation through pip. Here is the error I got.

Input:

pip install phoenics

Output:
Collecting phoenics
Using cached phoenics-0.2.0.tar.gz (177 kB)
Preparing metadata (setup.py) ... error
error: subprocess-exited-with-error

× python setup.py egg_info did not run successfully.
│ exit code: 1
╰─> [6 lines of output]
Traceback (most recent call last):
File "", line 2, in
File "", line 34, in
File "/private/var/folders/2z/b3nsqp4s48j2p8hgwhf1sj780000gp/T/pip-install-sezndou3/phoenics_6d2ab67fb8e44db9bcdf0f6d2eb4b991/setup.py", line 5, in
import numpy as np
ModuleNotFoundError: No module named 'numpy'
[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.

To Reproduce
try to install using

pip install phoenics

Expected behavior
Installation of phoenics through pip

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: MAcOS Monteray
  • This was tested on a fresh anaconda environment with python version 3.8 installed

Additional context
This was corrected by installing numpy prior to calling

pip install phoenics

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant