레이블이 Python인 게시물을 표시합니다. 모든 게시물 표시
레이블이 Python인 게시물을 표시합니다. 모든 게시물 표시

2019년 3월 20일 수요일

[Python] ModuleNotFoundError: No module named 'fbprophet'

env - Mac OS + anaconda

from fbprophet import Prophet

아래와 같은 오류가 발생하는 경우
" ModuleNotFoundError: No module named 'fbprophet'  "


해당 모듈을 로드 한 경우에 모듈 설치가 되었는지 확인이 필요 하다
아래와 같이 설치 추가 설치 하여 해결 한다.

pip install fbprophet

간혹 권한 오류 또는 gcc 오류가 발생하는 경우가 있다.

conda install - c conda-forge fbprophet



2017년 5월 3일 수요일

[Python] Oracle Client Install & cx_Oracle Install on Mac


1. Download Instant Client - Oracle Web Site :

instantclient-basic-macos.x64-11.2.0.4.0.zip
instantclient-sdk-macos.x64-11.2.0.4.0.zip
instantclient-sqlplus-macos.x64-11.2.0.4.0.zip

Unzip and move to /Library/Oracle

1.1 .bash_profile Files Modify
export DYLD_LIBRARY_PATH="/Library/Oracle/instantclient_11_2"
export TNS_ADMIN="/Library/Oracle/instantclient_11_2"
export ORACLE_HOME="/Library/Oracle/instantclient_11_2"
export OCI_LIB="/Library/Oracle/instantclient_11_2"
export OCI_INCLUDE_DIR="/Library/Oracle/instantclient_11_2/sdk/include"

export PATH=$DYLD_LIBRARY_PATH:$PATH

2. Create symlink

 $ cd /Library/Oracle/instantclient_11_2/
 $ ln -s libclntsh.dylib.11.1 libclntsh.dylib

[ This step might not be needed ]

3. Copy files:

 sudo cp /Library/Oracle/instantclient_11_2/sdk/include/*.h /usr/include/
 sudo cp /Library/Oracle/instantclient_11_2/*.dylib /usr/lib
 sudo cp /Library/Oracle/instantclient_11_2/sqlplus /usr/bin

If it needs root permission, sudo to root first.

Make sure you do this rather than sudo because you need to set the environment variable in the correct shell

if Mac OS - Operation not Permitted
Refenece - http://macnews.tistory.com/3408


4. Run pip install cx_Oracle

Installl Complete

언제 부터 였던가 생각해보니 아르바이트 겸 외부 컨설팅을 의뢰 받고 맥북 프로를 처음 써봤을 때 부터 였던 것 같다. 지금은 거의 대부분의 작업을 맥으로 작업을 하다 보니 윈도우에서만 실행되는 일부 프로그램들 때문과 회사 내부 ERP프로그램이 윈도우 ...