최근에 Enthought Canopy 32 비트 및 Canopy 버전 1.1.0 (64 비트) 설치가 잘된 작업 복사본을 제거했습니다. 나는 모델 내 커널 충돌에 맞게 sklearn를 사용하려고, 나는 다음과 같은 오류가 발생하는 경우 : 동일한 코드는 숲의 32 비트에서 잘 실행중인sklearn OMP : 모델 번호 맞추기 중 오류 15 번.
The kernel (user Python environment) has terminated with error code 3. This may be due to a bug in your code or in the kernel itself.
Output captured from the kernel process is shown below.
OMP: Error #15: Initializing libiomp5md.dll, but found mk2iomp5md.dll already initialized.
OMP: Hint: This means that multiple copies of the OpenMP runtime have been linked into the program. That is dangerous, since it can degrade performance or cause incorrect results. The best thing to do is to ensure that only a single OpenMP runtime is linked into the process, e.g. by avoiding static linking of the OpenMP runtime in any library. As an unsafe, unsupported, undocumented workaround you can set the environment variable KMP_DUPLICATE_LIB_OK=TRUE to allow the program to continue to execute, but that may cause crashes or silently produce incorrect results. For more information, please see http://www.intel.com/software/products/support/.
. 이 코드는 실제로 linear_model.SGDClassifier (loss = 'log')의 단순한 적합입니다 (Logistic Regression에 대한 동일한 오류, 다른 모델을 시도하지 않았습니다.)
어떻게 수정합니까?
"import os; os.environ [ 'PATH']. split (';')"에서 무엇을 얻습니까? (외부 따옴표 생략) –