pandas 라이브러리를 설치하지 않고 모든 종속성이있는 클러스터 서버에서 소프트웨어를 실행하려면 pandas 라이브러리를 내 패키지에 포함해야합니다. 파이썬 패키지에 pandas 라이브러리를 포함시키는 방법은 무엇입니까?
나는 내 PC에 소스로부터 팬더 라이브러리 (. 버전 0.8.1) 구축하려고 :python setup.py build_ext --inplace
을 내가 움직이면 내가 가져올 수있는 사례 팬더는 내 PC에 다른 폴더에 어디 폴더 내 소프트웨어에 (예를 ./mySoftwareFolder/pandas)
그러나 판다는 클러스터 서버에서 libray로 내 소프트웨어를 이동할 때 그것은 나에게 오류 인상 : COM, 그렇지 않은 경우처럼
File "testPandas.py", line 9, in <module>
import pandas
File "/home/TEST/pandas/__init__.py", line 15, in <module>
raise ImportError('C extensions not built: if you installed already '
ImportError: C extensions not built: if you installed already verify that you are not importing from the source directory
을 쌓여있다.
라이브러리를 포함 시키려면 어떻게해야합니까?
감사합니다.
갱신 : 내가 서버를 클러스터에 복사 디렉토리에는 다음이 포함
-bash-4.2$ ll -a pandas
totale 11476
drwxr-xr-x. 14 francesco dottor 4096 1 set 13.37 .
drwxr-xr-x. 10 francesco dottor 8192 1 set 13.36 ..
-rwxr-xr-x. 1 francesco dottor 2648299 1 set 13.36 _algos.so
drwxr-xr-x. 2 francesco dottor 4096 1 set 13.36 compat
drwxr-xr-x. 2 francesco dottor 4096 1 set 13.36 core
-rw-r--r--. 1 francesco dottor 394 1 set 13.36 info.py
-rw-r--r--. 1 francesco dottor 557 1 set 13.36 info.pyc
-rw-r--r--. 1 francesco dottor 1269 1 set 13.36 __init__.py
-rw-r--r--. 1 francesco dottor 1643 1 set 13.37 __init__.pyc
drwxr-xr-x. 3 francesco dottor 4096 1 set 13.36 io
-rwxr-xr-x. 1 francesco dottor 7437108 1 set 13.36 lib.so
-rwxr-xr-x. 1 francesco dottor 474199 1 set 13.36 _period.so
drwxr-xr-x. 2 francesco dottor 4096 1 set 13.36 rpy
drwxr-xr-x. 3 francesco dottor 4096 1 set 13.36 sandbox
-rw-r--r--. 1 francesco dottor 844 1 set 13.36 setup.py
drwxr-xr-x. 3 francesco dottor 4096 1 set 13.36 sparse
-rwxr-xr-x. 1 francesco dottor 1065313 1 set 13.36 _sparse.so
drwxr-xr-x. 3 francesco dottor 4096 1 set 13.36 src
drwxr-xr-x. 3 francesco dottor 4096 1 set 13.36 stats
drwxr-xr-x. 3 francesco dottor 4096 1 set 13.36 tests
drwxr-xr-x. 3 francesco dottor 4096 1 set 13.36 tools
drwxr-xr-x. 3 francesco dottor 4096 1 set 13.36 tseries
drwxr-xr-x. 2 francesco dottor 4096 1 set 13.36 util
-rw-r--r--. 1 francesco dottor 42 1 set 13.36 version.py
-rw-r--r--. 1 francesco dottor 204 1 set 13.36 version.pyc
이유 : sudo apt- python-pandas'를 설치 하시겠습니까? –
나는 클러스터 서버의 관리자가 아닙니다. 그리고 팬더 모듈을 왜 내 패키지에 포함시킬 수 없는지 이해할 수 없습니다. – Francesco
이것이 [python이 so 파일을 찾는 곳]과 관련이 있는지 궁금합니다. (http://stackoverflow.com/a/1100016/1240268). –