Skip to content

[Bug]: Pip Install Does not Work on Mac #5853

@ThilakShekharShriyan

Description

@ThilakShekharShriyan

Describe the bug

While trying out the pip install from the toml file.

Steps/Code to Reproduce

(env) spartan@MLK-SCS-C02GL3N6Q05N FlowerHackathon % flwr new flower-tutorial --framework pytorch --username flwrlabs
/Users/spartan/Desktop/Projects/FlowerHackathon/env/lib/python3.9/site-packages/urllib3/init.py:35: NotOpenSSLWarning: urllib3 v2 only supports OpenSSL 1.1.1+, currently the 'ssl' module is compiled with 'LibreSSL 2.8.3'. See: urllib3/urllib3#3020
warnings.warn(

🔨 Creating Flower App flower-tutorial...
🎊 Flower App creation successful.

To run your Flower App, first install its dependencies:

    cd flower-tutorial && pip install -e .

then, run the app:

    flwr run .

💡 Check the README in your app directory to learn how to
customize it and how to run it using the Deployment Runtime.

(env) spartan@MLK-SCS-C02GL3N6Q05N FlowerHackathon % cd flower-tutorial
pip install -e .
ERROR: File "setup.py" or "setup.cfg" not found. Directory cannot be installed in editable mode: /Users/spartan/Desktop/Projects/FlowerHackathon/flower-tutorial
(A "pyproject.toml" file was found, but editable mode currently requires a setuptools-based build.)
WARNING: You are using pip version 21.2.4; however, version 25.2 is available.
You should consider upgrading via the '/Users/spartan/Desktop/Projects/FlowerHackathon/env/bin/python3 -m pip install --upgrade pip' command.
(env) spartan@MLK-SCS-C02GL3N6Q05N flower-tutorial % pip install .
Processing /Users/spartan/Desktop/Projects/FlowerHackathon/flower-tutorial
DEPRECATION: A future pip version will change local packages to be built in-place without first copying to a temporary directory. We recommend you use --use-feature=in-tree-build to test your packages with this new behavior before it becomes the default.
pip 21.3 will remove support for this functionality. You can find discussion regarding this at pypa/pip#7555.
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing wheel metadata ... done
Collecting torchvision==0.22.1
Downloading torchvision-0.22.1-cp39-cp39-macosx_11_0_arm64.whl (1.9 MB)
|████████████████████████████████| 1.9 MB 7.2 MB/s
Collecting flwr-datasets[vision]>=0.5.0
Downloading flwr_datasets-0.5.0-py3-none-any.whl (87 kB)
|

Expected Results

Install Successfully

Actual Results

Errors out

ERROR: File "setup.py" or "setup.cfg" not found. Directory cannot be installed in editable mode: /Users/spartan/Desktop/Projects/FlowerHackathon/flower-tutorial
(A "pyproject.toml" file was found, but editable mode currently requires a setuptools-based build.)
WARNING: You are using pip version 21.2.4; however, version 25.2 is available.
You should consider upgrading via the '/Users/spartan/Desktop/Projects/FlowerHackathon/env/bin/python3 -m pip install --upgrade pip' command.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions