Skip to content

Installation errors with pip #9

@azournas

Description

@azournas

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions