question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Install Requirements

See original GitHub issue

Hi,

Since trixi does not necessarily depend on PyTorch, would it be possible to leave it out of the dependencies inside the setup.py and on pip?

I’d like to use trixi in a project but don’t want a hard PyTorch dependency. From what I’ve seen, an optional dependency should be sufficient.

Greetings, Justus

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:6 (6 by maintainers)

github_iconTop GitHub Comments

2reactions
GregorKoehlercommented, Jan 8, 2019

@dzimmerer, @jenspetersen: maybe we could use requirements_base.txt in the setup to support this use case? https://github.com/MIC-DKFZ/trixi/blob/develop/setup.py#L33

1reaction
jenspetersencommented, Jan 18, 2019

There is now a trixi-slim package. Note that it is accessed via “trixi” in python and I have no idea what happens if you try to install it along with the regular trixi package (feel free to try and report 😃).

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to install Python packages with pip and requirements.txt
The following command will install the packages according to the configuration file requirements.txt . $ pip install -r requirements.txt. You ...
Read more >
python - How can I install packages using pip according to the ...
This works for everyone: pip install -r /path/to/requirements.txt. Explanation: -r, --requirement < filename >. Install from the given requirements file.
Read more >
How to use requirements.txt to install all dependencies in a ...
1 Answer · Firstly, remove matplotlib==1.3.1 from requirements.txt · After that try to install it with sudo apt-get install python-matplotlib · Run pip...
Read more >
install_requires vs requirements files
install_requires is a setuptools setup.py keyword that should be used to specify what a project minimally needs to run correctly. When the project...
Read more >
The Python Requirements File and How to Create it
Use the pip install -r requirements.txt command to install all of the Python modules and packages listed in your requirements.txt file. This ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found