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.

Creation of environment from scratch from single `requirements.txt` file not possible if Py_G included

See original GitHub issue

πŸ“š Installation

I piped my current running environment into a requirements.txt file and then try to set up a new virtualenv with pip install -r requirements.txt --no-cache-dir. The installation fails with the following error

Collecting torch==1.1.0 (from -r requirements.txt (line 77))
  Downloading https://files.pythonhosted.org/packages/c9/e2/40f7f017437139e5dc076ea5ad4207da61250cc078bceef7d6f333c1d05c/torch-1.1.0-cp37-none-macosx_10_7_x86_64.whl (88.9MB)
     |β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 88.9MB 11.4MB/s
Collecting torch-cluster==1.2.4 (from -r requirements.txt (line 78))
  Downloading https://files.pythonhosted.org/packages/32/c8/9b3af10be647326dd807bb2fe7ced8ae4c3fd74178dba884621749afc4d7/torch_cluster-1.2.4.tar.gz
    ERROR: Complete output from command python setup.py egg_info:
    ERROR: Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/private/var/folders/76/0yn0ft0n6f31w321p7j7xf840000gn/T/pip-install-3ibm08fr/torch-cluster/setup.py", line 2, in <module>
        import torch
    ModuleNotFoundError: No module named 'torch'
    ----------------------------------------
ERROR: Command "python setup.py egg_info" failed with error code 1 in /private/var/folders/76/0yn0ft0n6f31w321p7j7xf840000gn/T/pip-install-3ibm08fr/torch-cluster/

I saw that you require to manually install some of your other packages before installing pytorch-geometric, however, it would be nice if you could spell out the dependencies such that it is possible to install the entire environment from a single requirements file.

Environment

  • OS: macOS 10.13.6
  • Python version: 3.7.3
  • PyTorch version: 1.1.0
  • CUDA/cuDNN version: None, cpu-only
  • GCC version: using Clang, Apple LLVM version 10.0.0 (clang-1000.11.45.5)
  • How you tried to install PyTorch Geometric and its extensions (pip, source): pip

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
Whadupcommented, Dec 4, 2019

Usecase: Run in AWS / Azure Serverless Setups. The Environments seem to be built solely based on a single requirements.txt

0reactions
rusty1scommented, Dec 9, 2019

Looks promising, thank you πŸ˜ƒ

Read more comments on GitHub >

github_iconTop Results From Across the Web

Creation of environment from scratch from single requirements ...
Installation I piped my current running environment into a requirements.txt file and then try to set up a new virtualenv with pip install...
Read more >
Why and How to make a Requirements.txt - Robert Boscacci
When I say Python environment, I mean: The ecosystem consisting of your particular installed version of python, plus all the third-party packages (β€œlibraries”)Β ......
Read more >
python - Automatically create requirements.txt - Stack Overflow
If there is no requirements.txt file I have to create it by hands. The question is: Given the python source code directory is...
Read more >
Python Dev Environment Part 3: dependencies with ...
Dependencies you the developer want in order to build your software go in requirements.txt . Such as pytest. Of course, if you are...
Read more >
The Python Requirements File and How to Create it
If you created a Python requirements.txt file at one point but have failed to maintain it for some reason, fear not!
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