Install requirement.txt file dependencies
pip install -r requirements.txt
In addition to using the pip command to generate and install the requirement.txt file, you can also use the conda command to install.
conda install --yes --file requirements.txt
When you use conda to install, you often get the following error: PackagesNotFoundError: The following packages are not available from current channels
Collecting package metadata (current_repodata.json): ...working... done
Solving environment: ...working... failed with initial frozen solve. Retrying with flexible solve.
Collecting package metadata (repodata.json): ...working... done
Solving environment: ...working... failed with initial frozen solve. Retrying with flexible solve.
PackagesNotFoundError: The following packages are not available from current channels:
- igraph
Current channels:
- https://repo.anaconda.com/pkgs/main/win-64
- https://repo.anaconda.com/pkgs/main/noarch
- https://repo.anaconda.com/pkgs/r/win-64
- https://repo.anaconda.com/pkgs/r/noarch
- https://repo.anaconda.com/pkgs/msys2/win-64
- https://repo.anaconda.com/pkgs/msys2/noarch
To search for alternate channels that may provide the conda package you're
looking for, navigate to
https://anaconda.org
and use the search bar at the top of the page.
you need to goThe URL https://anaconda.org , search for other channels where you want to install this package on the search bar above, and the following shows how to find other channels of igraph
First enter the above URL, I search for igraph here, all package names will appear Packages that contain an "igraph" field in:
Then run any command provided on the page in your command line window or the path corresponding to the Anaconda Prompt window.