dimanche 12 août 2018

Python - Installing Torch not working . - SourceFileLoader

i tried to adopt the code from a video (https://www.youtube.com/watch?v=v9E7Wg0dHiU) which can be found here (https://github.com/llSourcell/Neural_Arithmetic_Logic_Units).

Python (i am using Anaconda3) won't let me use torch, because the module is not installed yet, so far ok. But whenever i'm trying to install torch, this is what it throws at me:

D:\Programs\Anaconda3\Scripts>pip install torch
Collecting torch
  Downloading https://files.pythonhosted.org/packages/5f/e9/bac4204fe9cb1a002ec6140b47f51affda1655379fe302a1caef421f9846/torch-0.1.2.post1.tar.gz
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "d:\programs\anaconda3\lib\site-packages\setuptools\__init__.py", line 12, in <module>
        from setuptools.extension import Extension
      File "d:\programs\anaconda3\lib\site-packages\setuptools\extension.py", line 7, in <module>
        from setuptools.dist import _get_unpatched
      File "d:\programs\anaconda3\lib\site-packages\setuptools\dist.py", line 16, in <module>
        import pkg_resources
      File "d:\programs\anaconda3\lib\site-packages\pkg_resources.py", line 1479, in <module>
        register_loader_type(importlib_bootstrap.SourceFileLoader, DefaultProvider)
    AttributeError: module 'importlib._bootstrap' has no attribute 'SourceFileLoader'

What is the problem here? Am i missing other modules? I played installing some examples ("SourceFileLoader") but i couldn't get any further.

Aucun commentaire:

Enregistrer un commentaire