What stops the execution of the python statements after import section in this script?

0

This may be a petty question, but I am struggling with this since morning.

I do understand that there must be something with the 'import' statements here, but the console does not print any error or warning. It just does not execute any statement after the import statements. I am not even sure if it executes the import statements. However, I am sure that I installed all three packages.

print('print shit')

import pandas as pd
import numpy as np
from sklearn.naive_bayes import MultinomialNB

print('print shit again')

# data = pd.read_csv('radiologyReports.csv').as_matrix()

The print statement before the imports is executed, but not the one after the import statements. I understand that the process finishes before even executing the import statements. But why? I cannot understand this because it doesn't even print an error or a warning.

print shit

Process finished with exit code -1073741819 (0xC0000005)

Details:

  • Python: Python 3.7
  • IDE: PyCharm Community 2018.3
  • Numpy version: 1.16.2 (latest)
  • Pandas version: 0.24.1 (latest)
  • Sklearn version: 0.0
  • OS: Windows 10
python-3.x
import
asked on Stack Overflow Feb 27, 2019 by ftTomAndJerry

0 Answers

Nobody has answered this question yet.


User contributions licensed under CC BY-SA 3.0