RJT1990 / pyflux

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

pip install pyflux==0.4.13 on mac os failed #75

Closed vnnw closed 7 years ago

vnnw commented 7 years ago

I am running Anaconda distributed python 3 on mac and tried to pip install -U pyflux but failed. Here is the failure info:

My-MacBook-Pro:~ yuanlinwu$ pip install -U pyflux Collecting pyflux Using cached pyflux-0.4.13.tar.gz Requirement already up-to-date: numpy in ./anaconda3/lib/python3.5/site-packages (from pyflux) Requirement already up-to-date: pandas in ./anaconda3/lib/python3.5/site-packages (from pyflux) Requirement already up-to-date: scipy in ./anaconda3/lib/python3.5/site-packages (from pyflux) Collecting numdifftools (from pyflux) Downloading numdifftools-0.9.20-py2.py3-none-any.whl (3.2MB) 100% |████████████████████████████████| 3.2MB 108kB/s Requirement already up-to-date: patsy in ./anaconda3/lib/python3.5/site-packages (from pyflux) Collecting python-dateutil>=2 (from pandas->pyflux) Downloading python_dateutil-2.6.0-py2.py3-none-any.whl (194kB) 100% |████████████████████████████████| 194kB 201kB/s Collecting pytz>=2011k (from pandas->pyflux) Downloading pytz-2016.10-py2.py3-none-any.whl (483kB) 100% |████████████████████████████████| 491kB 181kB/s Collecting setuptools>=9.0 (from numdifftools->pyflux) Downloading setuptools-32.3.1-py2.py3-none-any.whl (479kB) 100% |████████████████████████████████| 481kB 197kB/s Requirement already up-to-date: algopy>=0.4 in ./anaconda3/lib/python3.5/site-packages (from numdifftools->pyflux) Requirement already up-to-date: six in ./anaconda3/lib/python3.5/site-packages (from patsy->pyflux) Building wheels for collected packages: pyflux Running setup.py bdist_wheel for pyflux ... done Stored in directory: /Users/yuanlinwu/Library/Caches/pip/wheels/e8/fa/52/266ee11592454972ee33d419e2fd746363be9c0ee17e6de25d Successfully built pyflux Installing collected packages: setuptools, numdifftools, pyflux, python-dateutil, pytz Found existing installation: setuptools 27.2.0 Uninstalling setuptools-27.2.0: Successfully uninstalled setuptools-27.2.0 Rolling back uninstall of setuptools Exception: Traceback (most recent call last): File "/Users/yuanlinwu/anaconda3/lib/python3.5/site-packages/setuptools-27.2.0-py3.5.egg/pkg_resources/init.py", line 2603, in get_entry_map ep_map = self._ep_map File "/Users/yuanlinwu/anaconda3/lib/python3.5/site-packages/setuptools-27.2.0-py3.5.egg/pkg_resources/init.py", line 2574, in getattr raise AttributeError(attr) AttributeError: _ep_map

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "/Users/yuanlinwu/anaconda3/lib/python3.5/site-packages/pip/basecommand.py", line 215, in main status = self.run(options, args) File "/Users/yuanlinwu/anaconda3/lib/python3.5/site-packages/pip/commands/install.py", line 342, in run prefix=options.prefix_path, File "/Users/yuanlinwu/anaconda3/lib/python3.5/site-packages/pip/req/req_set.py", line 784, in install **kwargs File "/Users/yuanlinwu/anaconda3/lib/python3.5/site-packages/pip/req/req_install.py", line 851, in install self.move_wheel_files(self.source_dir, root=root, prefix=prefix) File "/Users/yuanlinwu/anaconda3/lib/python3.5/site-packages/pip/req/req_install.py", line 1064, in move_wheel_files isolated=self.isolated, File "/Users/yuanlinwu/anaconda3/lib/python3.5/site-packages/pip/wheel.py", line 247, in move_wheel_files prefix=prefix, File "/Users/yuanlinwu/anaconda3/lib/python3.5/site-packages/pip/locations.py", line 140, in distutils_scheme d = Distribution(dist_args) File "/Users/yuanlinwu/anaconda3/lib/python3.5/site-packages/setuptools-27.2.0-py3.5.egg/setuptools/dist.py", line 316, in init for ep in pkg_resources.iter_entry_points('distutils.setup_keywords'): File "/Users/yuanlinwu/anaconda3/lib/python3.5/site-packages/setuptools-27.2.0-py3.5.egg/pkg_resources/init.py", line 731, in iter_entry_points entries = dist.get_entry_map(group) File "/Users/yuanlinwu/anaconda3/lib/python3.5/site-packages/setuptools-27.2.0-py3.5.egg/pkg_resources/init.py", line 2606, in get_entry_map self._get_metadata('entry_points.txt'), self File "/Users/yuanlinwu/anaconda3/lib/python3.5/site-packages/setuptools-27.2.0-py3.5.egg/pkg_resources/init.py", line 2336, in parse_map for group, lines in data: File "/Users/yuanlinwu/anaconda3/lib/python3.5/site-packages/setuptools-27.2.0-py3.5.egg/pkg_resources/init.py", line 2935, in split_sections for line in yield_lines(s): File "/Users/yuanlinwu/anaconda3/lib/python3.5/site-packages/setuptools-27.2.0-py3.5.egg/pkg_resources/init.py", line 2202, in yield_lines for ss in strs: File "/Users/yuanlinwu/anaconda3/lib/python3.5/site-packages/setuptools-27.2.0-py3.5.egg/pkg_resources/init.py", line 2531, in _get_metadata if self.has_metadata(name): File "/Users/yuanlinwu/anaconda3/lib/python3.5/site-packages/setuptools-27.2.0-py3.5.egg/pkg_resources/init.py", line 1463, in has_metadata return self.egg_info and self._has(self._fn(self.egg_info, name)) File "/Users/yuanlinwu/anaconda3/lib/python3.5/site-packages/setuptools-27.2.0-py3.5.egg/pkg_resources/init.py", line 1823, in _has return zip_path in self.zipinfo or zip_path in self._index() File "/Users/yuanlinwu/anaconda3/lib/python3.5/site-packages/setuptools-27.2.0-py3.5.egg/pkg_resources/init.py", line 1703, in zipinfo return self._zip_manifests.load(self.loader.archive) File "/Users/yuanlinwu/anaconda3/lib/python3.5/site-packages/setuptools-27.2.0-py3.5.egg/pkg_resources/init.py", line 1643, in load mtime = os.stat(path).st_mtime FileNotFoundError: [Errno 2] No such file or directory: '/Users/yuanlinwu/anaconda3/lib/python3.5/site-packages/setuptools-27.2.0-py3.5.egg'

vnnw commented 7 years ago

It seems the bug is related to some changes on setuptools. If I use "pip install pyflux==0.4.12", everything is OK.

RJT1990 commented 7 years ago

Can you try again, think should be fixed now (version 0.4.14 that is)

vnnw commented 7 years ago

Thanks you, @RJT1990 ! I can pip installed version 0.4.14 successfully now.