numpyの親戚でしょ?うふふふって
$ pip install scipy
したら終わらねーorz
Pythonで数値計算を始める(with Homebrew and pip) - Qiitaによると、結構時間がかかるらしい。
裏でコンパイラが爆走。10分以上経過した気がする...。
$ pip install scipy Collecting scipy /usr/local/lib/python2.7/dist-packages/pip/_vendor/requests/packages/urllib3/util/ssl_.py:315: SNIMissingWarning: An HTTPS request has been made, but the SNI (Subject Name Indication) extension to TLS is not available on this platform. This may cause the server to present an incorrect TLS certificate, which can cause validation failures. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#snimissingwarning. SNIMissingWarning /usr/local/lib/python2.7/dist-packages/pip/_vendor/requests/packages/urllib3/util/ssl_.py:120: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#insecureplatformwarning. InsecurePlatformWarning Downloading scipy-0.17.0.tar.gz (12.4MB) 100% |????????????????????????????????| 12.4MB 23kB/s Building wheels for collected packages: scipy Running setup.py bdist_wheel for scipy ... done Stored in directory: /home/xxx/.cache/pip/wheels/76/aa/e2/031ee833b4abfd33d8620e4bc36f8178b95cfcf36ec550a6b9 Successfully built scipy Installing collected packages: scipy Exception: Traceback (most recent call last): File "/usr/local/lib/python2.7/dist-packages/pip/basecommand.py", line 209, in main status = self.run(options, args) File "/usr/local/lib/python2.7/dist-packages/pip/commands/install.py", line 317, in run prefix=options.prefix_path, File "/usr/local/lib/python2.7/dist-packages/pip/req/req_set.py", line 731, in install **kwargs File "/usr/local/lib/python2.7/dist-packages/pip/req/req_install.py", line 841, in install self.move_wheel_files(self.source_dir, root=root, prefix=prefix) File "/usr/local/lib/python2.7/dist-packages/pip/req/req_install.py", line 1040, in move_wheel_files isolated=self.isolated, File "/usr/local/lib/python2.7/dist-packages/pip/wheel.py", line 343, in move_wheel_files clobber(source, lib_dir, True) File "/usr/local/lib/python2.7/dist-packages/pip/wheel.py", line 314, in clobber ensure_dir(destdir) File "/usr/local/lib/python2.7/dist-packages/pip/utils/__init__.py", line 82, in ensure_dir os.makedirs(path) File "/usr/lib/python2.7/os.py", line 157, in makedirs mkdir(name, mode) OSError: [Errno 13] Permission denied: '/usr/local/lib/python2.7/dist-packages/scipy'
GYAAAAAAAA!!!!!!
sudo忘れてた...。もう一度 sudo pip したらビルド済みのが入ったみたい。
virtualenv を想定しているケースが多いのか、su前提なのか、結構 sudo 書いてないこと多いから、雰囲気でコピペするとこうなる。