Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

File association not found for extension .py

I am having trouble executing my anaconda python

It seems python is not associated correctly or not at all

I do not have admin rights as this is a work computer and going through IT takes forever

My anaconda is located in the C:\Users\dean.lemcke-evans\AppData\Local\Continuum\anaconda3

Here is the error I am getting how do I fix it?

code

like image 372
DeanLE Avatar asked Nov 23 '17 16:11

DeanLE


1 Answers

To fix “File association not found for extension .py” on Windows, execute the following two commands in a cmd.exe with administrator privileges:

assoc .py=pyautofile
ftype pyautofile="C:\Anaconda2\python.exe" "%1" %*

Obviously edit the python.exe path above to where python.exe is found on your machine.

Reference: https://acloud.guru/forums/aws-dynamodb/discussion/-KWReio_6iBZoNMR4yoA/this-is-actually-an-answer-to-a-question-i-had-about-awscli-install-on-windows

like image 160
profnotime Avatar answered Sep 28 '22 09:09

profnotime