Pytorch-lightning: AttributeError: module 'pytorch_lightning' has no attribute 'LightningDataModule'

Created on 28 Jul 2020  路  6Comments  路  Source: PyTorchLightning/pytorch-lightning

Name: pytorch-lightning
Version: 0.8.5

Screenshot 2020-07-28 at 11 13 38

following latest doc: https://pytorch-lightning.readthedocs.io/_/downloads/en/latest/pdf/

bug / fix help wanted

Most helpful comment

To use LightningDataModule, you have to use latest master or RC release.
You can install RC release with pip install pytorch-lightning==0.9.0rc2
https://pypi.org/project/pytorch-lightning/0.9.0rc2/

All 6 comments

Hi! thanks for your contribution!, great first issue!

To use LightningDataModule, you have to use latest master or RC release.
You can install RC release with pip install pytorch-lightning==0.9.0rc2
https://pypi.org/project/pytorch-lightning/0.9.0rc2/

Closing, as this is a version issue.

I suggest adding version description at datamodules page

Is this version also available on conda somehow?

@samiede, I'm not sure if this 100% meets your needs (and I apologize if this is something you already know), but I was able to use conda to work around (but not truly solve) the problem of using conda to install pytorch-lightning by using pip inside my conda environment.

In particular, I ran conda env create in a directory with an environment.yml that looked like this:

name: myenv
dependencies:
  - python=3.7
  - more-itertools
  - conda-forge::typing_extensions
  - pandas
  - matplotlib
  - pytorch==1.4.0
  - pip
  - pip:
    - transformers
    - pandarallel
    - pytorch-lightning==0.9.0rc2
Was this page helpful?
0 / 5 - 0 ratings

Related issues

williamFalcon picture williamFalcon  路  3Comments

DavidRuhe picture DavidRuhe  路  3Comments

srush picture srush  路  3Comments

iakremnev picture iakremnev  路  3Comments

Vichoko picture Vichoko  路  3Comments