Python in the Command line (CMD) | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

Python in the Command line (CMD)

When I try to run Python in the command line to bring me the Python environment, it gives an error. What do you think is the problem? Someone said you have a problem installing Python, but I repeated it but it didn't work. I also have windows7

1st Oct 2021, 7:02 AM
Aydin
Aydin - avatar
19 Answers
+ 8
One reason for that might be that your python is not in PATH. Here is how to add python to path on windows: https://www.educative.io/edpresso/how-to-add-python-to-path-variable-in-windows
1st Oct 2021, 7:07 AM
Aleksei Radchenkov
Aleksei Radchenkov - avatar
+ 8
iTech , true however some people's computers are so old they can't run Windows 10... But I mean who even uses Windows? Linux is 100 times better 😉
1st Oct 2021, 9:57 AM
Aleksei Radchenkov
Aleksei Radchenkov - avatar
+ 3
Windows 7 was the last good OS before windows goes mainstream with their "simplicity" and their headache updates, heck they gone too far as to require the user to sign-in on windows 11(iirc public beta and even a leaked bulid), at least you can sign-in offline, but the OS literally haunts you to sign-in.
1st Oct 2021, 2:00 PM
Rellot's screwdriver
Rellot's screwdriver - avatar
+ 3
iTech , You say your opinion about Windows and maybe many like me can not change their Windows for financial or economic reasons, or maybe Windows 7 looks simpler and easier than other Windows because they use Windows 7 a lot, unlike Those who have a strong system. Remember to experience all the big moneyless people, so it should not be said that money is everything.
1st Oct 2021, 3:37 PM
Aydin
Aydin - avatar
+ 2
Thanks ♥️
1st Oct 2021, 7:35 AM
Aydin
Aydin - avatar
+ 2
iTech, In addition to everything that has been said, Windows 7 allows more customizable experience in some areas, e.g. No matter how hard you try to prevent it, windows 10 might update without warning you at any time, which was not the case in Windows 7. And regarding security... Online security and protection against viruses could be achieved with many different free software, and it will be same or even better than Windows security. And regarding the security of the system itself (how hard it is to get in without password), windows does not encode its files, unlike Linux, and because of that any person could easily get in any windows computer with neither a password or direct access to computer's hardware (in case of laptop) in under a minute, by simple manipulations with registry....
1st Oct 2021, 3:48 PM
Aleksei Radchenkov
Aleksei Radchenkov - avatar
+ 1
Martin Taylor , "hand punch paper tape to write code" lmao
1st Oct 2021, 12:42 PM
Aleksei Radchenkov
Aleksei Radchenkov - avatar
+ 1
in Linux it comes already installed, only type "python3" and you're ready to go
1st Oct 2021, 7:02 PM
Kiwwi#
Kiwwi# - avatar
+ 1
Aleksei Radchenkov First of all, I guess you are talking about encryption not encoding. "You will get filesystem error" This has never happened to me. I have used many Linux distributions like mint, ubuntu, Kali, parrot, slax, bodhi and many more. I never got any error. I can access easily every file using live USB. Sometimes I need files which are located in Linux and I need them in Windows. So I just use a software to read ext4 partition in Windows and transfer files. "Linux ask you to encrypt your system" You can also do that in Windows.
2nd Oct 2021, 4:55 AM
🌀 Shail Murtaza شعیل مرتضیٰ
🌀 Shail Murtaza شعیل مرتضیٰ - avatar
+ 1
I would advise you tried out linux from live usb and if you like it then do a Hardware install and it aint that hard according to the Linux distro your using. Linux comes with python3 installed thus saving you alot of time I personally use LXLE linux its light weight and works very well with my old hand me down from my mom (is the best for hell old PCS without good specs) In brief i would recommend u to try linux cause it'll save you a lot of time,is made for developers and is frequently updated Happy Coding 🙂
2nd Oct 2021, 8:26 AM
Programmado
Programmado - avatar
0
Aleksei Radchenkov give you the right solution, I just want to add why you still using windows 7?? its very vulnerable and outdated, you should go to windows 10 asap. A developer should be always using maximum possible security precautions with last updates.
1st Oct 2021, 9:14 AM
iTech
iTech - avatar
0
You should use right version of python at first (for your os). You should carefully check your system bitness: 32 or 64 bit. After you should check you PATH. Before win10 and win8 and win8.1 was win7 which was normally for python win devops. I think, that's all your problems in right installation.
1st Oct 2021, 11:12 PM
Oleksii Mospan
Oleksii Mospan - avatar
0
Aleksei Radchenkov You can use bitlocker in windows
2nd Oct 2021, 6:08 AM
🌀 Shail Murtaza شعیل مرتضیٰ
🌀 Shail Murtaza شعیل مرتضیٰ - avatar
- 1
Aleksei Radchenkov Linux encode the files ?? I don't think so And which encoding and what is the purpose. And where did you find that out ??
1st Oct 2021, 7:55 PM
🌀 Shail Murtaza شعیل مرتضیٰ
🌀 Shail Murtaza شعیل مرتضیٰ - avatar
- 1
Aydin Cyber Which error ??
1st Oct 2021, 7:56 PM
🌀 Shail Murtaza شعیل مرتضیٰ
🌀 Shail Murtaza شعیل مرتضیٰ - avatar
- 1
🌀 Shail Murtaza شعیل مرتضیٰ , You can prove it for yourself, just take the drive with Linux installed on it and connect it through USB to another computer. You will see all the folders, but ones you will try to open any you will get an error.(Not just filesystem error but access error, also if you are doing it from another Linux machine, it might even ask you root password for the system on your drive to access its directories.) Also many Linux destributions ask you whether you want to encode your system on installing(Im quite sure my Linux Mint asked me on installation) (default is yes) (Often Linux just encodes the system directories)
2nd Oct 2021, 2:07 AM
Aleksei Radchenkov
Aleksei Radchenkov - avatar
- 1
🌀 Shail Murtaza شعیل مرتضیٰ , Yes sorry I was talking about encryption... And every single Linux I worked with, encrypted it's system. And I'm pretty sure you can't do that with Windows, without additional software. If you know how to encrypt the system on Windows without additional software, please tell me.
2nd Oct 2021, 5:47 AM
Aleksei Radchenkov
Aleksei Radchenkov - avatar
- 1
🌀 Shail Murtaza شعیل مرتضیٰ , oh right, I didn't know about that feature, thanks bro
2nd Oct 2021, 6:13 AM
Aleksei Radchenkov
Aleksei Radchenkov - avatar