We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7bf8748 commit da3f89fCopy full SHA for da3f89f
torchvision/prototype/datasets/__init__.py
@@ -1,11 +1,10 @@
1
try:
2
import torchdata
3
-except (ModuleNotFoundError, TypeError) as error:
+except ModuleNotFoundError:
4
raise ModuleNotFoundError(
5
"`torchvision.prototype.datasets` depends on PyTorch's `torchdata` (https://github.com/pytorch/data). "
6
- "You can install it with `pip install git+https://github.com/pytorch/data.git`. "
7
- "Note that you cannot install it with `pip install torchdata`, since this is another package."
8
- ) from error
+ "You can install it with `pip install --pre torchdata --extra-index-url https://download.pytorch.org/whl/nightly/cpu"
+ ) from None
9
10
from . import utils
11
from ._home import home
0 commit comments