1

After deliberating about this question here it looks like something is wrong with my command prompt.

Even the file called test.py containing the following code

 print("hi")

doesn't lead to any output being shown when called in my command prompt on windows 10

Output

C:\Users\Admin>python test.py

C:\Users\Admin>

Meaning nothing is printed.

As suggested in my original question I also tried running

python -u -c "print('hello')"

Which doesn't yield any output neither.

There is already a question concerned with the same problem, however doesn't have any answers yet.

Christian Singer
  • 295
  • 3
  • 5
  • 15

1 Answers1

0

Apparently using the command prompt doesn't work, however I've been using the anaconda distribution for python and using the anaconda command prompt instead of the windows 10 one solves the problem.

Output

(base) C:\Users\Admin>python test.py
hi

(base) C:\Users\Admin>
Christian Singer
  • 295
  • 3
  • 5
  • 15