Not being able to run pylint using windows (7) command prompt - python

I've just installed all the dependencies (asteroid and logilab-commons) and pylint, ran the tests for pylint and they all passed, but i just cant get pylint to work... i keep getting
'pylint' is not recognized as an internal or external command, operable program or batch file.
while running in the command prompt.
im not sure what im doing wrong and i cant seem to find any explanation anywhere

set PATH=%PATH%;C:\python27\scripts
is apparently what i needed to make it work... thanks for the path direction.

Related

Cannot run the python enumerate-markdown module

I want to run the python package described here: https://github.com/A4Vision/enumerate-markdown/blob/master/README.md
First, I installed python 3.10.4, then I installed pip 22.1, then I used pip to install "enumerate markdown". My terminal shows "Successfully installed enumerate-markdown-1.0.0 mistune-2.0.4
Now I try to run the package. In the terminal I enter the exact text shown in the example:
markdown-enum inputFile.md outputFile.md
However, it shows me an error message:
'markdown-enum' is not recognized as an internal or external command, operable program or batch file.
Even if I try pointing to an actual file (e.g markdown-enum "C:\Users\test.md" outputFile.md) it gives the same error.
I thought it might be something to do with the PATH system variable but I have entered all the paths I can think of:
C:\Users\EISAM\AppData\Local\Programs\Python\Python310
C:\Users\EISAM\AppData\Local\Programs\Python\Python310\Lib
C:\Users\EISAM\AppData\Local\Programs\Python\Python310\Lib\site-packages
C:\Users\EISAM\AppData\Local\Programs\Python\Python310\Lib\site-packages\pip
C:\Users\EISAM\AppData\Local\Programs\Python\Python310\Scripts\
(After adding these paths I restarted the cmd window and tried again but still no joy)
What am I doing wrong?
Thanks

Python.exe works with -v or -h but will not execute a file. What is wrong?

The python programs on Windows have stopped executing scripts.
It will run python. For example, I can check the version and get the help text.
I've tried running it from "c:/User/.../python.exe", `py -3, etc.
I've also installed all Windows updates and re-installed python. (from version 3.8 to 3.10.7; same issue for both.)
Also, I've tried it from both power-shell and cmd.
I have tried a variety of scripts, but I have a test.py which just prints something.
Also, I've tried py -3 -c 'print("Hi")'. It does not work either.
All of these do not print any diagnostics. I simply get the shell prompt on the next line. I can also tell that the script is not even loaded. For example, if I give a filename that does not exist it does the same thing; no error message. The same occurs if I add a syntax error to the file.
I am seriously stumped. What could cause this?

Why does my VS Code not recognize 'python' as an internal or external command

so I just considered using VS Code for writing python as i'm settling into programming. After following the full guide here: https://code.visualstudio.com/docs/python/python-tutorial and everything seemed ok.
But my code wont run, but runs well in my PyCharm but on VS Code it pops this error below:
"'python' is not recognized as an internal or external command,
operable program or batch file."
I have followed threads here advising reboot of computer and all but its not working for me, I would love to at least know what the problem is because my decision to use VSC is because i'd like to have one IDE that supports more languages so that write in one place or at least a few IDEs.
Any help will be appreciated.
Thanks in advance.
thanks, I've fixed it by uninstalling the existing python and reinstalling latest version, most importantly i realized i was adding a new path instead of editing the existing path. In recent windows clicking edit on the existing path will open a new dailog where you can then add a new path, that will be added to the existing path. Then I restarted my computer and then typed python --version at command prompt and there it was :) by the way this link (geek-university.com/python/add-python-to-the-windows-path) was most helpful but you have to do it as i described.

Trouble installing path for Python 3.7 on Windows 10

When I try to enter 'python' into my cmd window, I get back this error: "'python' is not recognized as an internal or external command,
operable program or batch file."
Any ideas how to get my cmd window working?
I tried going into environmental variables and adding my python path to the path system variables, however this is not working.
python
'python' is not recognized as an internal or external command,
operable program or batch file.
This might be what you are looking for
Running path can display the system path, and ensure things are configured correctly :)
Answered over here
Assuming you googled and found that (or something similar) yourself, then my guess is you're running into a different issue. For example, the semicolons in the path, especially the proper positioning of them, are very important, could your issue be that simple?
Try entering:
py
Some systems use this to function like mine. I had the same error but then I tried py and it worked. Maybe this will work for you

Reoccurring Python error that doesn't make much sense

I keep getting this error while working in a script:
'python' is not recognized as an internal or external command,
operable program or batch file.
Isn't this an error you'd see in terminal? I'm in Atom text editor. On top of that, it was working a few minutes ago (i.e. giving me errors about my actual code) and I've been working on it with no problem all day long.
Reinstall Python, and make sure you check the 'Add to Path' option.
You could also try adding Python to the path variable (Tutorial).

Categories