Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I run a program installed with pip in windows?

I installed a program with pip (e.g. simple-plotter) in windows using the following command:

py -m pip install simple-plotter

How do I run the program I installed? In Linux, I can just type the command in a terminal, but if I type in windows, I get a "not recognized as an internal or external command" or if I run in Python I get a "No module named" error.

like image 941
Ralff Avatar asked Apr 29 '20 04:04

Ralff


1 Answers

I think the error occurs because the Scripts folder is not on PATH in the environment variables, while in Linux it probably is (I don't know a lot of Linux so I don't know how environment variables work there, anyway):

the best way to solve this is by adding the Scripts python folder to PATH: In my case it is C:\Users\MyUser\AppData\Local\Programs\Python\Python37-32\Scripts

So, press WIN(windows key) + PAUSE_BREAK(near print screen key) something like this should open

Then click on Advanced System Configuration (Sorry if it's not accurate, my system is in portuguese)

enter image description here

After that click in Environment Variables

click on path and then edit

Then, select Path and click edit

enter image description here

Click in new, add the path and hit the OKs

enter image description here

like image 124
n.qber Avatar answered Sep 17 '22 06:09

n.qber