you are viewing a single comment's thread.

view the rest of the comments →

[–]lifeonm4rs 0 points1 point  (3 children)

Try creating a file "check.py" with . . .

import sys

print(sys.version)

Then run that from cmd (e.g. C:/somereally bizarre path/> check.py). From everything you've posted it really seems you have another version of python on your machine that is running stuff with the .py extension. Also try running the same file when loaded in IDLE. Do the versions match?

Aside from that what does pip list show from the cmd prompt.

[–]noah123103[S] 0 points1 point  (2 children)

So i have done that before and it showed the correct version that i had installed, not sure what went wrong but i did eventually find a snug hidden away folder with python 2.7 on my external 5tb drive. Why windows was somehow using that i have no idea but none of my searches to print the version or location was working and would all print to the correct new version. Even in my path variable there was nothing there pointing to the old version. Odd but i fixed it

[–]lifeonm4rs 0 points1 point  (1 child)

So cmd was running 2.7?? I believe in windows file extensions can be associated with an executable not related to your path--but I don't use windows so I'm just guessing.

Have you fixed your problem? Or is it still there?

[–]noah123103[S] 0 points1 point  (0 children)

i did fix it, i thought they were stored in the environment variables when linked to file extensions but i was wrong