you can set the PYTHON env variable.


npm config set python c:\python36_64


set PYTHON=c:\python


set PATH=%PATH%;%PYTHON%



그러나... 다른 npm 애들을 installation 하는데 -f를 쓸 일이 많아졌고,


뭔가 점점 꼬여갔다.


일전에 구글 딥러닝 example 따라 해 볼 때도 안되서 결국 우분투 환경으로


했었는데...


이번에도 마음 편하게 우분투에서 하자고 마음 먹었다.


terminator install.

ssh key copy & modification config

apt-get install git

apt-get install nodejs

nodejs-legacy

vim

./webstorm.sh

git clone git@github.com:googleapis/nodejs-vision.git


Refusing to install @google-cloud/vision as a dependency of itself

-> vision API는 -f 로 설치


   27  # Create an environment variable for the correct distribution

   28  export CLOUD_SDK_REPO="cloud-sdk-$(lsb_release -c -s)"

   29  # Add the Cloud SDK distribution URI as a package source

   30  echo "deb http://packages.cloud.google.com/apt $CLOUD_SDK_REPO main" | sudo tee -a /etc/apt/sources.list.d/google-cloud-sdk.list

   31  # Import the Google Cloud Platform public key

   32  curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo apt-key add -

   33  # Update the package list and install the Cloud SDK

   34  sudo apt-get update && sudo apt-get install google-cloud-sdk

   35  sudo apt-get update && sudo apt-get install google-cloud-sdk -y

   36  sudo apt-get update && sudo apt-get install google-cloud-sdk -y --allow-unauthenticated



gcloud auth application-default login


Error: `gyp` failed with exit code: 1


을 거쳐... 이미지 분석기까지는 돌려봄.



'진행 프로젝트 > [진행] My tools.' 카테고리의 다른 글

swift 4.0 -> 4.2 가며 만난 에러님.  (0) 2019.04.08
:-1: Segmentation fault: 11  (0) 2019.04.03
StackView bug  (0) 2019.02.06
gitlab clone error  (0) 2019.02.05
리팩토링 중 만난 몇 가지 상황  (0) 2019.02.04

+ Recent posts