Skip to content

Fix installation instructions for default extras in README - #7574

Merged
MridulS merged 1 commit into
networkx:mainfrom
johnthagen:patch-1
Jul 25, 2024
Merged

MridulS merged 1 commit into
networkx:mainfrom
johnthagen:patch-1

Conversation

@johnthagen

@johnthagen johnthagen commented Jul 25, 2024 •

Copy link
Copy Markdown
Contributor

The user guide prescribes installing

$ pip install networkx[default]

This matches the optional dependencies listed at

networkx/pyproject.toml

Lines 56 to 62 in 7d195ae

[project.optional-dependencies]
default = [
'numpy>=1.23',
'scipy>=1.9,!=1.11.0,!=1.11.1',
'matplotlib>=3.6',
'pandas>=1.4',
]

It seems like the README, which is also published to PyPI (https://pypi.org/project/networkx/3.3/), should use the same instructions.

Further, when trying to use the README instructions:

$ python -m pip install "networkx[all]"
Collecting networkx[all]
  Using cached networkx-3.3-py3-none-any.whl.metadata (5.1 kB)
WARNING: networkx 3.3 does not provide the extra 'all'

@johnthagen

Copy link
Copy Markdown
Contributor Author

It looks like this might have been an oversight in

@dschult dschult left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for reporting this -- and investigating the history. :)

@MridulS
MridulS merged commit 89718e0 into networkx:main Jul 25, 2024
@johnthagen
johnthagen deleted the patch-1 branch July 26, 2024 10:49
eriknw pushed a commit to eriknw/networkx that referenced this pull request Aug 25, 2024
…x#7574)

Fix installation instructions for default extras
rossbar pushed a commit to Peiffap/networkx that referenced this pull request Sep 6, 2024
…x#7574)

Fix installation instructions for default extras
jarrodmillman added a commit that referenced this pull request Oct 10, 2024
* Add config option to disable warning when using cached value

The warning was updated to show how to use the config setting.

* rename `field` to `element`

* Update list of env variables for config

* Give more gentle intro to caching conversions in warning

* Change `nx.config.warnings` to `nx.config.warnings_to_ignore`

* oops fix

* Update warning message

Co-authored-by: Dan Schult <[email protected]>

* Fix installation instructions for `default` extras in README (#7574)

Fix installation instructions for default extras

---------

Co-authored-by: Dan Schult <[email protected]>
Co-authored-by: johnthagen <[email protected]>
Co-authored-by: Jarrod Millman <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

3 participants