Blog Details

img
Data Science

How do I fix Python command not found

Spoke Right / 17 Nov, 2023

In previous topic we have tried few bash commands, some times you may get “command not found error”. Here we will discuss how to troubleshoot this problem.

  1. This error may cause because you might have not selected ADD TO PATH option during installation
  2. To troubleshoot this issue you need to check the system variables path on your computer.

Follow the following steps

By clicking on  Environment variables a new pop window will open.  You need to check Path option. There must be a path variable for python as you can see in below screen.

If python’s path is not there then select the path option and click on edit button, a new screen will open and then click on new button.

Now go to c-drive>users>(your present pc name)>appData>Local>Programs>Python>Python37-32>Scripts
and copy the address  as highlighted below.


Paste the copied address into the path option and save & apply. Do the same for system variable option also.

Note (By clicking on environment variables, Two options comes, one for “your username” and another is for “system variables”. This means that you are setting variables for your account name of your PC)

Now restart your pc and open vscode

  • Press “cntrl+shift+p” and write In test box as “python: select interpreter.
  • Now select your interpreter of python 32 bit or 64 bit as you have installed and reload vscode.
  • By restarting vscode your problem will be fixed

0 comments

Warning: PHP Startup: Unable to load dynamic library 'imagick.so' (tried: /usr/local/lib/php/extensions/no-debug-non-zts-20210902/imagick.so (/usr/local/lib/php/extensions/no-debug-non-zts-20210902/imagick.so: cannot open shared object file: No such file or directory), /usr/local/lib/php/extensions/no-debug-non-zts-20210902/imagick.so.so (/usr/local/lib/php/extensions/no-debug-non-zts-20210902/imagick.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0