terminal
1[DeepLearning] python3 compare_time.py 20:05:19 2Traceback (most recent call last): 3 File "compare_time.py", line 3, in <module> 4 import numpy as np 5ModuleNotFoundError: No module named 'numpy' 6[DeepLearning] pip3 install numpy 20:05:36 7Requirement already satisfied: numpy in /System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python 8[DeepLearning] pip3 install numpy --ignore-installed 20:06:24 9Collecting numpy 10 Using cached numpy-1.14.0-cp27-cp27m-macosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl 11Installing collected packages: numpy 12Exception: 13Traceback (most recent call last): 14 File "/Library/Python/2.7/site-packages/pip/basecommand.py", line 215, in main 15 16 status = self.run(options, args) 17 File "/Library/Python/2.7/site-packages/pip/commands/install.py", line 342, in run 18 prefix=options.prefix_path, 19 File "/Library/Python/2.7/site-packages/pip/req/req_set.py", line 784, in install 20 **kwargs 21 File "/Library/Python/2.7/site-packages/pip/req/req_install.py", line 851, in install 22 self.move_wheel_files(self.source_dir, root=root, prefix=prefix) 23 File "/Library/Python/2.7/site-packages/pip/req/req_install.py", line 1064, in move_wheel_files 24 isolated=self.isolated, 25 File "/Library/Python/2.7/site-packages/pip/wheel.py", line 345, in move_wheel_files 26 clobber(source, lib_dir, True) 27 File "/Library/Python/2.7/site-packages/pip/wheel.py", line 316, in clobber 28 ensure_dir(destdir) 29 File "/Library/Python/2.7/site-packages/pip/utils/__init__.py", line 83, in ensure_dir 30 os.makedirs(path) 31 File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/os.py", line 157, in makedirs 32 mkdir(name, mode) 33OSError: [Errno 13] Permission denied: '/Library/Python/2.7/site-packages/numpy' 34[DeepLearning
このようなエラーが出て解決できず困っています。一度インストールしたのですが使えなくなったのでサイドインストールしようとしたのですがうまく行きませんでした。MacOs High Sierraを使っています。
jupyternotebookのインストールも同様のエラーでインストールできず困っています。一度インストールしたのですが、bashをやめてzshに変えてからうまくいかなくなり、もう一度インストールしようとしています。
[~] pip3 show numpy 20:34:04
Name: numpy
Version: 1.14.0
Summary: NumPy: array processing for numbers, strings, records, and objects.
Home-page: http://www.numpy.org
Author: NumPy Developers
Author-email: numpy-discussion@python.org
License: BSD
Location: /Library/Python/2.7/site-packages
Requires:
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。