RJT1990 / pyflux

Open source time series library for Python
BSD 3-Clause "New" or "Revised" License
2.11k stars 240 forks source link

Installation Fails on Windows 7 #25

Closed JoshuaC3 closed 8 years ago

JoshuaC3 commented 8 years ago

I have pandas 18.0 and python 3.5 installed. As these are both fairly new could this be the issue?

Here is the full error

(py35) C:\Users\admin>pip install pyflux
Collecting pyflux
  Downloading pyflux-0.3.6.tar.gz (869kB)
    100% |################################| 870kB 1.1MB/s
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "C:\Users\admin\AppData\Local\Temp\pip-build-3sckmt1h\pyflux\setup.py
", line 92, in <module>
        setup_package()
      File "C:\Users\admin\AppData\Local\Temp\pip-build-3sckmt1h\pyflux\setup.py
", line 53, in setup_package
        from numpy.distutils.core import setup
      File "C:\Anaconda\envs\py35\lib\site-packages\numpy\__init__.py", line 180
, in <module>
        from . import add_newdocs
      File "C:\Anaconda\envs\py35\lib\site-packages\numpy\add_newdocs.py", line
13, in <module>
        from numpy.lib import add_newdoc
      File "C:\Anaconda\envs\py35\lib\site-packages\numpy\lib\__init__.py", line
 8, in <module>
        from .type_check import *
      File "C:\Anaconda\envs\py35\lib\site-packages\numpy\lib\type_check.py", li
ne 11, in <module>
        import numpy.core.numeric as _nx
      File "C:\Anaconda\envs\py35\lib\site-packages\numpy\core\__init__.py", lin
e 34, in <module>
        from . import function_base
      File "C:\Anaconda\envs\py35\lib\site-packages\numpy\core\function_base.py"
, line 6, in <module>
        from .numeric import result_type, NaN, shares_memory, MAY_SHARE_BOUNDS,
TooHardError
    ImportError: cannot import name 'shares_memory'

    ----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in C:\Users\admin\Ap
pData\Local\Temp\pip-build-3sckmt1h\pyflux\
RJT1990 commented 8 years ago

Hi Josh, it looks like you may have to reinstall numpy (or actually, your conda environment) judging from the comments here: http://stackoverflow.com/questions/37526730/error-while-importing-matplotlib-pyplot-python. Let me know if this works out for you.

JoshuaC3 commented 8 years ago

I reinstalled numpy and have used and installed numpy dependent modules as a test. It gets past this first stage but now stops with LINK : fatal error LNK1181: cannot open input file 'Files.obj' and ends with

Command "C:\Anaconda\envs\py35\python.exe -u -c "import setuptools, tokenize;__f
ile__='C:\\Users\\admin\\AppData\\Local\\Temp\\pip-build-lnmexo0i\\pyflux\\setup
.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n
', '\n'), __file__, 'exec'))" install --record C:\Users\admin\AppData\Local\Temp
\pip-c473l0qm-record\install-record.txt --single-version-externally-managed --co
mpile" failed with error code 1 in C:\Users\admin\AppData\Local\Temp\pip-build-l
nmexo0i\pyflux\

I can paste in the rest of the error but it is very long.

RJT1990 commented 8 years ago

This might help: http://stackoverflow.com/questions/10481193/errors-when-compiling-library-in-command-line. It looks like it's an issue with your compiler or your paths. Might be a bit fiddly to get things rectified.

RJT1990 commented 8 years ago

Am now closing this issue as it is not a library-specific issue.