Level : WORDPRESS BOOK LINKEDIN PATENT Send Mail 동냥하기 hajunho.com

반응형

/AI/models-master/research  sudo chown -R $(whoami):admin /Library/Python/

python setup.py install


  File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/setuptools/sandbox.py", line 250, in run_setup
    _execfile(setup_script, ns)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/setuptools/sandbox.py", line 44, in _execfile
    code = compile(script, filename, 'exec')
  File "/var/folders/tl/fj2bb8c16_j3wp9r8770v8380000gn/T/easy_install-NWJPJ0/matplotlib-3.2.0rc1/setup.py", line 136
    raise IOError(f"Failed to download jquery-ui.  Please download "
                                                                   ^

models-master/research  sudo easy_install pip
Searching for pip
Reading https://pypi.org/simple/pip/
Downloading https://files.pythonhosted.org/packages/00/b6/9cfa56b4081ad13874b0c6f96af8ce16cfbc1cb06bedf8e9164ce5551ec1/pip-19.3.1-py2.py3-none-any.whl#sha256=6917c65fc3769ecdc61405d3dfd97afdedd75808d200b2838d7d961cebc0c2c7
Best match: pip 19.3.1
Processing pip-19.3.1-py2.py3-none-any.whl
Installing pip-19.3.1-py2.py3-none-any.whl to /Library/Python/2.7/site-packages
Adding pip 19.3.1 to easy-install.pth file
Installing pip script to /usr/local/bin
Installing pip3.7 script to /usr/local/bin
Installing pip3 script to /usr/local/bin

Installed /Library/Python/2.7/site-packages/pip-19.3.1-py2.7.egg
Processing dependencies for pip
Finished processing dependencies for pip

AI/models-master/research  pip install --verbose --no-binary :all: 'matplotlib==2.2.4'

Removed build tracker '/private/var/folders/tl/fj2bb8c16_j3wp9r8770v8380000gn/T/pip-req-tracker-r2EEVh'
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.

Downloading https://files.pythonhosted.org/packages/07/32/78676432117f2e0a40daa5f676233aa4914da5cc36126826a49f3c77b02b/matplotlib-3.2.0rc1.tar.gz#sha256=077b17f4bd73d322ee7322f6f029f5805e8a8db3ad972cb4a875ac40300ee842
Best match: matplotlib 3.2.0rc1
Processing matplotlib-3.2.0rc1.tar.gz
Writing /var/folders/tl/fj2bb8c16_j3wp9r8770v8380000gn/T/easy_install-85gP6h/matplotlib-3.2.0rc1/setup.cfg
Running matplotlib-3.2.0rc1/setup.py -q bdist_egg --dist-dir /var/folders/tl/fj2bb8c16_j3wp9r8770v8380000gn/T/easy_install-85gP6h/matplotlib-3.2.0rc1/egg-dist-tmp-sATGuT
Traceback (most recent call last):
  File "setup.py", line 15, in 
    description='Tensorflow Object Detection Library',
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/setuptools/__init__.py", line 145, in setup
    return distutils.core.setup(**attrs)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/core.py", line 151, in setup
    dist.run_commands()



REQUIRED_PACKAGES = ['Pillow>=1.0', 'Matplotlib>=2.1', 'Cython>=0.28.1']

deleting Matolotlib 




Installed /Library/Python/2.7/site-packages/Pillow-6.2.1-py2.7-macosx-10.15-x86_64.egg
Searching for Cython==0.29.14
Best match: Cython 0.29.14
Processing Cython-0.29.14-py2.7-macosx-10.15-x86_64.egg
Cython 0.29.14 is already the active version in easy-install.pth
Installing cython script to /usr/local/bin
Installing cygdb script to /usr/local/bin
Installing cythonize script to /usr/local/bin

Using /Library/Python/2.7/site-packages/Cython-0.29.14-py2.7-macosx-10.15-x86_64.egg
Finished processing dependencies for object-detection==0.1



from absl.testing import parameterized
ImportError: No module named absl.testing
 ✘ junhoha  AI/models-master/research  sudo pip install absl-py


AI/models-master/research  pip install --upgrade tensorflow


Building wheels for collected packages: gast, wrapt, keras-applications, functools32, opt-einsum, termcolor
  WARNING: Building wheel for gast failed: [Errno 13] Permission denied: '/Users/junhoha/Library/Caches/pip/wheels/5c'
  WARNING: Building wheel for wrapt failed: [Errno 13] Permission denied: '/Users/junhoha/Library/Caches/pip/wheels/d7'
  WARNING: Building wheel for keras-applications failed: [Errno 13] Permission denied: '/Users/junhoha/Library/Caches/pip/wheels/dd'
  WARNING: Building wheel for functools32 failed: [Errno 13] Permission denied: '/Users/junhoha/Library/Caches/pip/wheels/b5'
  WARNING: Building wheel for opt-einsum failed: [Errno 13] Permission denied: '/Users/junhoha/Library/Caches/pip/wheels/51'
  WARNING: Building wheel for termcolor failed: [Errno 13] Permission denied: '/Users/junhoha/Library/Caches/pip/wheels/7c'
Failed to build gast wrapt keras-applications functools32 opt-einsum termcolor
ERROR: matplotlib 1.3.1 requires nose, which is not installed.
ERROR: matplotlib 1.3.1 requires tornado, which is not installed.
Installing collected packages: numpy, funcsigs, mock, gast, futures, grpcio, keras-preprocessing, wrapt, protobuf, h5py, keras-applications, tensorflow-estimator, functools32, opt-einsum, backports.weakref, google-pasta, oauthlib, chardet, idna, urllib3, certifi, requests, requests-oauthlib, pyasn1, pyasn1-modules, rsa, cachetools, google-auth, google-auth-oauthlib, werkzeug, markdown, tensorboard, termcolor, astor, tensorflow
  Found existing installation: numpy 1.8.0rc1
ERROR: Cannot uninstall 'numpy'. It is a distutils installed project and thus we cannot accurately determine which files belong to it which would lead to only a partial uninstall.
 ✘ junhoha  ~/Desktop/AI/models-master/research  history | grep chown
 1141  sudo chown -R $USER:admin /usr/local /Library/Caches/Homebrew
 1142  sudo chown -R junhoha:admin /usr/local /Library/Caches/Homebrew
 1143  sudo chown -R junhoha:junhoha /usr/local /Library/Caches/Homebrew
 1144  sudo chown -R junhoha:junhohOBa /usr/local /Library/Caches/Homebrew
 1147  sudo chown -R root:root /usr/local /Library/Caches/Homebrew
 1148  sudo chown -R root:admin /usr/local /Library/Caches/Homebrew
 1166  sudo chown -R $(whoami):admin /usr/local/Library/Taps/*/**/.git
 1167  sudo chown -R $(whoami):admin /usr/local/Homebrew/.git
 1169  sudo chown -R $(whoami):admin /usr/local/Homebrew/
 1176  sudo chown -R $(whoami):admin /usr/local/etc
 1177  sudo chown -R $(whoami):admin /usr/local/share
 1197  sudo chown -R $(whoami):admin /Library/Python/
 junhoha  ~/Desktop/AI/models-master/research  !1148
 junhoha  ~/Desktop/AI/models-master/research  sudo chown -R $(whoami):admin /Users/junhoha/Library/


pip install nose
pip install tornado


AI/models-master/research  python object_detection/builders/model_builder_test.py
Traceback (most recent call last):
  File "object_detection/builders/model_builder_test.py", line 20, in 
    import tensorflow as tf
ImportError: No module named tensorflow

AI/models-master/research  python -c "import tensorflow as tf;print(tf.reduce_sum(tf.random.normal([1000, 1000])))"
Traceback (most recent call last):
  File "", line 1, in 
ImportError: No module named tensorflow

export TF_BINARY_URL=https://storage.googleapis.com/tensorflow/mac/tensorflow-0.9.0-py2-none-any.whl

sudo pip install --upgrade $TF_BINARY_URL

AI/models-master/research  sudo pip install --upgrade $TF_BINARY_URL
DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won't be maintained after that date. A future version of pip will drop support for Python 2.7. More details about Python 2 support in pip, can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support
WARNING: The directory '/Users/junhoha/Library/Caches/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
WARNING: The directory '/Users/junhoha/Library/Caches/pip' or its parent directory is not owned by the current user and caching wheels has been disabled. check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
Collecting tensorflow==0.9.0
  Downloading https://storage.googleapis.com/tensorflow/mac/tensorflow-0.9.0-py2-none-any.whl (25.8MB)
     |████████████████████████████████| 25.8MB 8.7MB/s
Requirement already satisfied, skipping upgrade: six>=1.10.0 in /System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python (from tensorflow==0.9.0) (1.12.0)
Collecting protobuf==3.0.0b2
  Downloading https://files.pythonhosted.org/packages/00/8e/9a3feb39d464eb7aacc108e6e6e1f2368ec741821486964c4cd0f41baabb/protobuf-3.0.0b2-py2.py3-none-any.whl (326kB)
     |████████████████████████████████| 327kB 149kB/s
Collecting numpy>=1.10.1
  Downloading https://files.pythonhosted.org/packages/51/67/8907005262f493e356195bcbd61b41988eecf63cb1d97ea2f6e55fe24205/numpy-1.16.5-cp27-cp27m-macosx_10_9_x86_64.whl (13.9MB)
     |████████████████████████████████| 13.9MB 1.5MB/s
Requirement already satisfied, skipping upgrade: wheel in /System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python (from tensorflow==0.9.0) (0.33.1)
Requirement already satisfied, skipping upgrade: setuptools in /System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python (from protobuf==3.0.0b2->tensorflow==0.9.0) (41.0.1)
Installing collected packages: protobuf, numpy, tensorflow
  Found existing installation: numpy 1.8.0rc1
ERROR: Cannot uninstall 'numpy'. It is a distutils installed project and thus we cannot accurately determine which files belong to it which would lead to only a partial uninstall.

AI/models-master/research  python -c "import tensorflow as tf;print(tf.reduce_sum(tf.random.normal([1000, 1000])))"
Traceback (most recent call last):
  File "", line 1, in 
ImportError: No module named tensorflow

AI/models-master/research  python --version
Python 2.7.16

AI/models-master/research  export TF_BINARY_URL=https://storage.googleapis.com/tensorflow/mac/cpu/tensorflow-2.0.0-py2-none-any.whl
 junhoha  ~/Desktop/AI/models-master/research  sudo pip install --upgrade $TF_BINARY_URL
DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won't be maintained after that date. A future version of pip will drop support for Python 2.7. More details about Python 2 support in pip, can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support
WARNING: The directory '/Users/junhoha/Library/Caches/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
WARNING: The directory '/Users/junhoha/Library/Caches/pip' or its parent directory is not owned by the current user and caching wheels has been disabled. check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
Collecting tensorflow==2.0.0
  ERROR: HTTP error 404 while getting https://storage.googleapis.com/tensorflow/mac/cpu/tensorflow-2.0.0-py2-none-any.whl
  ERROR: Could not install requirement tensorflow==2.0.0 from https://storage.googleapis.com/tensorflow/mac/cpu/tensorflow-2.0.0-py2-none-any.whl because of error 404 Client Error: Not Found for url: https://storage.googleapis.com/tensorflow/mac/cpu/tensorflow-2.0.0-py2-none-any.whl
ERROR: Could not install requirement tensorflow==2.0.0 from https://storage.googleapis.com/tensorflow/mac/cpu/tensorflow-2.0.0-py2-none-any.whl because of HTTP error 404 Client Error: Not Found for url: https://storage.googleapis.com/tensorflow/mac/cpu/tensorflow-2.0.0-py2-none-any.whl for URL https://storage.googleapis.com/tensorflow/mac/cpu/tensorflow-2.0.0-py2-none-any.whl


 pip install tensorflow-gpu
DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won't be maintained after that date. A future version of pip will drop support for Python 2.7. More details about Python 2 support in pip, can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support
Collecting tensorflow-gpu
  Downloading https://files.pythonhosted.org/packages/d3/84/87cd052ffdb04c50985cdf23ac18fa6d479b916bc7048a05096eb2c522a0/tensorflow_gpu-1.1.0-cp27-cp27m-macosx_10_11_x86_64.whl (80.5MB)
     |████████████▎                   | 30.9MB 1.6MB/s eta 0:00:32


junhoha  ~/Desktop/hajunho/AI/models-master/research  python -c "import tensorflow as tf;print(tf.reduce_sum(tf.random.normal([1000, 1000])))"
dyld: warning, LC_RPATH $ORIGIN/../../_solib_darwin/_U@local_Uconfig_Ucuda_S_Scuda_Ccublas___Uexternal_Slocal_Uconfig_Ucuda_Scuda_Slib in /Users/junhoha/Library/Python/2.7/lib/python/site-packages/tensorflow/python/_pywrap_tensorflow_internal.so being ignored in restricted program because it is a relative path
dyld: warning, LC_RPATH $ORIGIN/../../_solib_darwin/_U@local_Uconfig_Ucuda_S_Scuda_Ccuda_Udriver___Uexternal_Slocal_Uconfig_Ucuda_Scuda_Slib in /Users/junhoha/Library/Python/2.7/lib/python/site-packages/tensorflow/python/_pywrap_tensorflow_internal.so being ignored in restricted program because it is a relative path
dyld: warning, LC_RPATH $ORIGIN/../../_solib_darwin/_U@local_Uconfig_Ucuda_S_Scuda_Ccudnn___Uexternal_Slocal_Uconfig_Ucuda_Scuda_Slib in /Users/junhoha/Library/Python/2.7/lib/python/site-packages/tensorflow/python/_pywrap_tensorflow_internal.so being ignored in restricted program because it is a relative path
dyld: warning, LC_RPATH $ORIGIN/../../_solib_darwin/_U@local_Uconfig_Ucuda_S_Scuda_Ccufft___Uexternal_Slocal_Uconfig_Ucuda_Scuda_Slib in /Users/junhoha/Library/Python/2.7/lib/python/site-packages/tensorflow/python/_pywrap_tensorflow_internal.so being ignored in restricted program because it is a relative path
dyld: warning, LC_RPATH $ORIGIN/../../_solib_darwin/_U@local_Uconfig_Ucuda_S_Scuda_Ccurand___Uexternal_Slocal_Uconfig_Ucuda_Scuda_Slib in /Users/junhoha/Library/Python/2.7/lib/python/site-packages/tensorflow/python/_pywrap_tensorflow_internal.so being ignored in restricted program because it is a relative path
dyld: warning, LC_RPATH $ORIGIN/../../_solib_darwin/_U@local_Uconfig_Ucuda_S_Scuda_Ccudart___Uexternal_Slocal_Uconfig_Ucuda_Scuda_Slib in /Users/junhoha/Library/Python/2.7/lib/python/site-packages/tensorflow/python/_pywrap_tensorflow_internal.so being ignored in restricted program because it is a relative path
dyld: warning, LC_RPATH ../local_config_cuda/cuda/lib in /Users/junhoha/Library/Python/2.7/lib/python/site-packages/tensorflow/python/_pywrap_tensorflow_internal.so being ignored in restricted program because it is a relative path
dyld: warning, LC_RPATH ../local_config_cuda/cuda/extras/CUPTI/lib in /Users/junhoha/Library/Python/2.7/lib/python/site-packages/tensorflow/python/_pywrap_tensorflow_internal.so being ignored in restricted program because it is a relative path
Traceback (most recent call last):
  File "", line 1, in 
  File "/Users/junhoha/Library/Python/2.7/lib/python/site-packages/tensorflow/__init__.py", line 24, in 
    from tensorflow.python import *
  File "/Users/junhoha/Library/Python/2.7/lib/python/site-packages/tensorflow/python/__init__.py", line 51, in 
    from tensorflow.python import pywrap_tensorflow
  File "/Users/junhoha/Library/Python/2.7/lib/python/site-packages/tensorflow/python/pywrap_tensorflow.py", line 52, in 
    raise ImportError(msg)
ImportError: Traceback (most recent call last):
  File "/Users/junhoha/Library/Python/2.7/lib/python/site-packages/tensorflow/python/pywrap_tensorflow.py", line 41, in 
    from tensorflow.python.pywrap_tensorflow_internal import *
  File "/Users/junhoha/Library/Python/2.7/lib/python/site-packages/tensorflow/python/pywrap_tensorflow_internal.py", line 28, in 
    _pywrap_tensorflow_internal = swig_import_helper()
  File "/Users/junhoha/Library/Python/2.7/lib/python/site-packages/tensorflow/python/pywrap_tensorflow_internal.py", line 24, in swig_import_helper
    _mod = imp.load_module('_pywrap_tensorflow_internal', fp, pathname, description)
ImportError: dlopen(/Users/junhoha/Library/Python/2.7/lib/python/site-packages/tensorflow/python/_pywrap_tensorflow_internal.so, 10): Library not loaded: @rpath/libcublas.8.0.dylib
  Referenced from: /Users/junhoha/Library/Python/2.7/lib/python/site-packages/tensorflow/python/_pywrap_tensorflow_internal.so
  Reason: image not found


Failed to load the native TensorFlow runtime.


brew install python


python3
Python 3.7.3 (default, Nov 15 2019, 04:04:52)
[Clang 11.0.0 (clang-1100.0.33.16)] on darwin
Type "help", "copyright", "credits" or "license" for more information.


sudo ln -s /usr/libexec/locate.updatedb /usr/local/bin/updatedb


buy paralles
install ubuntu 18.04.3

.
.
.
quit doing on mac

18.04.3 깔고...
sudo apt install python3-pip
pip3 install --user --upgrade tensorflow

단 2줄에 설치 끝.

python3 -c "import tensorflow as tf;print(tf.reduce_sum(tf.random.normal([1000, 1000])))"
/home/joe/.local/lib/python3.6/site-packages/tensorflow/python/framework/dtypes.py:516: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.



반응형

'살며 생각하며,' 카테고리의 다른 글

개 발 일 지 060  (0) 2019.12.13
개 발 일 지 059  (0) 2019.12.13
개 발 일 지 057  (0) 2019.12.13
개 발 일 지 056  (0) 2019.12.12
개 발 일 지 055  (0) 2019.12.11
  • 네이버 블러그 공유하기
  • 네이버 밴드에 공유하기
  • 페이스북 공유하기
  • 카카오스토리 공유하기